今天在struts2中使用了displayTags,沒想到控制臺卻輸出以下錯誤信息:
ERROR - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'd-49653-p' on 'class dgut.ke.actions.SubjectAction: Error setting expression 'd-49653-p' with value '[Ljava.lang.String;@d73256'
在網上的搜了一下,在一些中文網頁上幾乎都找不到相關的信息,結果在一個英語網站上看到了以下信息:
I use struts2.0.9 and displaytag,xwork-2.0.4.jar,when I click next page of
displaytag,it will raise flowing warning:
Warn: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'd-1332698-p' on 'class Test.TestAction: Error setting expression
'd-1332698-p' with value '[Ljava.lang.String;@14bf534'
RE:
It's a warning that occurs because you're using displaytags.
Don't worry about it, it won't hurt you, and messing with it will just make
bad things happen (you know the kind of thing, long nights trying to work
out things like why table sorting isn't working, why data isn't being
displayed, and why the world is so unfair).
In the words of a nice policeman; "Move along, there's nothing to see here"
-----Original Message-----
From: red phoenix [mailto:
rodphoenix@...]
Sent: 26 September 2007 16:29
To: Struts Users Mailing List
Subject: Error: ParametersInterceptor - [setParameters]
I use struts2.0.9 and displaytag,xwork-2.0.4.jar,when I click next page of
displaytag,it will raise flowing warning:
Warn: ParametersInterceptor - [setParameters]: Unexpected Exception caught
setting 'd-1332698-p' on 'class Test.TestAction: Error setting expression
'd-1332698-p' with value '[Ljava.lang.String;@14bf534'
Why raise above waring?
How to solve it?
Thanks!
Add the following line to your struts.xml file.
d-.*-p
Example:
<interceptor-stack name="creditDefaultStack">
<interceptor-ref name="creditException" />
<interceptor-ref name="alias" />
<interceptor-ref name="servlet-config" />
<interceptor-ref name="prepare" />
<interceptor-ref name="i18n" />
<interceptor-ref name="chain" />
<interceptor-ref name="debugging" />
<interceptor-ref name="profiling" />
<interceptor-ref name="scoped-model-driven" />
<interceptor-ref name="model-driven" />
<interceptor-ref name="checkbox" />
<interceptor-ref name="static-params" />
<interceptor-ref name="params">
dojo\..*
d-.*-p </interceptor-ref>
<interceptor-ref name="conversionError" />
<interceptor-ref name="validation">
cancel,execute,delete,edit,list,start
</interceptor-ref>
<interceptor-ref name="workflow">
input,back,cancel,browse
</interceptor-ref>
</interceptor-stack>
</interceptors>
<default-interceptor-ref name="creditDefaultStack" />
照上面的說法去做,由于本人能力有限,還是未能解決.去下個高點的版本試試看,期待能解決!
posted on 2007-11-17 15:21
Ke 閱讀(10719)
評論(12) 編輯 收藏 所屬分類:
exception 、
struts 2