struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JOSE L MARTINEZ-AVIAL <jlm...@gmail.com>
Subject Struts 2 WW-1714: "Using the Redirect Action Result with parameters to the target action causes an OGNL warning" still fails
Date Wed, 07 Sep 2011 13:56:05 GMT
Hi,
  I'm having some issues with this bug. Apparently it was fixed on 2.1.8,
but I've tested both with 2.1.8 and 2.2.3, and it still givin an error
message when I use a result like the following:

            <result name="enroll" type="redirectAction">
                <param name="actionName">NavigateTo</param>
                <param name="navigateTo">Enroll</param>
             </result>

It gives the following error:

2011-09-07 09:51:42,408 DEBUG
org.apache.struts2.dispatcher.ServletRedirectResult  - Caught OgnlException
while setting property 'navigateTo' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
Caught OgnlException while setting property 'navigateTo' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'. - Class:
ognl.ObjectPropertyAccessor
File: ObjectPropertyAccessor.java
Method: setProperty
Line: 166 - ognl/ObjectPropertyAccessor.java:166:-1
        at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:412)
        at
com.opensymphony.xwork2.ognl.OgnlUtil.setProperty(OgnlUtil.java:160)
        at
com.opensymphony.xwork2.ognl.OgnlReflectionProvider.setProperty(OgnlReflectionProvider.java:91)
        at
com.opensymphony.xwork2.ObjectFactory.buildResult(ObjectFactory.java:232)
        at
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:220)
        at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:367)
        at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:277)
        at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
[...]
        at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
        at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
        at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
Caused by: ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.navigateTo
        at
ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:166)
        at
com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27)
        at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2245)
        at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
        at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
        at ognl.SimpleNode.setValue(SimpleNode.java:301)
        at ognl.Ognl.setValue(Ognl.java:737)
        at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:209)
        at
com.opensymphony.xwork2.ognl.OgnlUtil.internalSetProperty(OgnlUtil.java:405)
        ... 67 more


Any idea?

TIA

Jose Luis

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message