Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix redirect OGNL error, Unable to set param?
    primarykey
    data
    text
    <p>I am not sure if this is me or if this is a bug.</p> <p>I got the following error</p> <pre><code>11:52:01,623 ERROR ObjectFactory:27 - Unable to set parameter [dest] in result of type [org.apache.struts2.dispatcher.ServletRedirectResult] Caught OgnlException while setting property 'dest' on type 'org.apache.struts2.dispatcher.ServletRedirectResult'. - Class: ognl.ObjectPropertyAccessor File: ObjectPropertyAccessor.java Method: setProperty Line: 132 - ognl/ObjectPropertyAccessor.java:132:-1 at com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:392) </code></pre> <p>And my config is pretty minimal</p> <pre><code>&lt;package name="esupport" namespace="/esupport" extends="struts-default"&gt; &lt;action name="old-esupport" class="com.my.MyRedirectAction"&gt; &lt;result type="redirect"&gt; &lt;param name="location"&gt;http://some.server.com/init.asp&lt;/param&gt; &lt;param name="dest"&gt;${dest}&lt;/param&gt; &lt;/result&gt; &lt;/action&gt; &lt;/package&gt; </code></pre> <p>And my class has a pair of get/set method. And that's it. Nothing Fancy</p> <p>I have found <a href="http://markmail.org/message/qij4ys4xfzklo7u3#query:Caught%20OgnlException%20while%20setting%20property%20on%20type%20%27org.apache.struts2.dispatcher.ServletRedirectResult%27+page:1+mid:c3vpmj7x3ydyzbx2+state:results" rel="nofollow noreferrer">this</a> thread in the forum. But it doesn't solve my problem</p> <p>I am using </p> <p>Struts 2.1.16 Spring 2 Spring Security + CAS</p> <p>(The funny behavior is it sends me to the CAS server after the error, but I guess it will be corrected after the redirect issue got fixed)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload