六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 117|回复: 0

一个有关ParametersInterceptor 的错误

[复制链接]

升级  40%

4

主题

4

主题

4

主题

童生

Rank: 1

积分
20
 楼主| 发表于 2013-2-7 19:30:15 | 显示全部楼层 |阅读模式
Struts2发现错误:
2009-09-16 17:13:03 [com.opensymphony.xwork2.interceptor.ParametersInterceptor]-[ERROR] ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'bh' on 'class com.macronet.struts.QueryDdAction: Error setting expression 'bh' with value '[Ljava.lang.String;@18c6cbc'
2009-09-16 17:13:03 [com.opensymphony.xwork2.interceptor.ParametersInterceptor]-[ERROR] ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'ext-comp-1002' on 'class com.macronet.struts.QueryDdAction: Error setting expression 'ext-comp-1002' with value '[Ljava.lang.String;@1fb24d3'
2009-09-16 17:13:03 [com.opensymphony.xwork2.interceptor.ParametersInterceptor]-[ERROR] ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 'search' on 'class com.macronet.struts.QueryDdAction: Error setting expression 'search' with value '[Ljava.lang.String;@12ea1dd'
 
从网上搜到原因:
       “当struts.devMode设置为true时,html表单数据中有和action属性匹配不上的参数名时就会被这样显示出来,没什么大碍,就是为了便于使用者调试。struts.devMode设置为false就没有了。可能它的log级别设置的容易让人误会。”
 
在Action中添加search属性后,果然有关serach的错误就消失了。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表