PARAMを設定できません、OGNLエラーをリダイレクト修正する方法は?
質問
私はこれが私であるか、これはバグである場合かどうかわからないです。
私が得た次のエラー
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>
そして、私のクラスは、get / setメソッドのペアを持っています。以上です。何もファンシー
私が発見した<のhref = "http://markmail.org/message/qij4ys4xfzklo7u3#query:Caught%20OgnlException%20while%20setting%20property%20on%20type%20%27org.apache.struts2.dispatcher.ServletRedirectResult %27 +ページ:1 +中旬:c3vpmj7x3ydyzbx2 +状態:フォーラムでの結果」のrel = "nofollowをnoreferrer">こののスレッド。しかし、それは私の問題を解決していません。
私が使用しています。
のStruts 2.1.16 春2 春のセキュリティ+ CAS
(変な行動は、それがエラーの後にCASサーバーに私を送信しているが、私は、リダイレクトの問題が修正しまった後に、それが修正されると思います)。
他のヒント
私は7 WASサーバーにアプリケーションをデプロイした後に、この問題に直面していました。これは、既存のアプリケーションだったと何のコードの変更はありませんでした。
タグのサーバ起動ログに以下の例外を発見
Failed to write out object: ext___405722372
com.ibm.wkplc.extensionregistry.util.XmlUtilException: Unable to write to the given file
ただ、サーバーのキャッシュをクリアし、それを再起動し、問題が解決しました。
所属していません StackOverflow