Struts2 如何修复重定向OGNL错误,无法设置参数?

Struts2 如何修复重定向OGNL错误,无法设置参数?,struts2,ognl,Struts2,Ognl,我不确定这是我还是一个bug 我犯了以下错误 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.dispatc

我不确定这是我还是一个bug

我犯了以下错误

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)
我的配置非常简单

<package name="esupport" namespace="/esupport" extends="struts-default">
        <action name="old-esupport" class="com.my.MyRedirectAction">
            <result type="redirect">
            <param name="location">http://some.server.com/init.asp</param>
            <param name="dest">${dest}</param>
            </result>
        </action>
    </package>

论坛中的线程。但这并不能解决我的问题

我正在使用

Struts 2.1.16 春天2 Spring Security+CAS


(有趣的是,它在错误发生后将我发送到CAS服务器,但我想在重定向问题得到修复后,它会得到纠正)

这似乎是Struts2的一个错误。他们建议……通过以下方式隐藏错误:

<category name="com.opensymphony.xwork2.ObjectFactory">
   <priority value="fatal"/>
</category>


在WAS 7服务器中部署应用程序后,我遇到了这个问题。这是一个现有的应用程序,没有代码更改

在服务器启动日志中发现以下异常

Failed to write out object: ext___405722372
com.ibm.wkplc.extensionregistry.util.XmlUtilException: Unable to write to the given file
刚刚清除了服务器缓存并重新启动,问题就解决了