struts2.1.8.1升级struts2.3.15.1后参数传递异常,后台警告没有setter方法,但能正常跳转。升级前正常的
异常代码如下:[ERROR][2013-08-1212:05:18]com.opensymphony.xwork2.util.logging.commons.Common...
异常代码如下:
[ERROR][2013-08-12 12:05:18] com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error(CommonsLogger.java:38) - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'SelAgtGrps' on 'class cn.com.sandi.agent.web.AgtgroupAction: Error setting expression 'SelAgtGrps' with value ['null', ]
Error setting expression 'SelAgtGrps' with value ['null', ] - [unknown location]
at com.opensymphony.xwork2.ognl.OgnlValueStack.handleRuntimeException(OgnlValueStack.java:197)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:9。。。
Caused by: No object in the CompoundRoot has a publicly accessible property named 'SelAgtGrps' (no setter could be found). - [unknown location]
at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:106)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)
。。。
求大神帮忙解决 展开
[ERROR][2013-08-12 12:05:18] com.opensymphony.xwork2.util.logging.commons.CommonsLogger.error(CommonsLogger.java:38) - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'SelAgtGrps' on 'class cn.com.sandi.agent.web.AgtgroupAction: Error setting expression 'SelAgtGrps' with value ['null', ]
Error setting expression 'SelAgtGrps' with value ['null', ] - [unknown location]
at com.opensymphony.xwork2.ognl.OgnlValueStack.handleRuntimeException(OgnlValueStack.java:197)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:148)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318)
at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:231)
at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:9。。。
Caused by: No object in the CompoundRoot has a publicly accessible property named 'SelAgtGrps' (no setter could be found). - [unknown location]
at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:106)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332)
。。。
求大神帮忙解决 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询