Unexpected Exception caught setting
来源:互联网 发布:淘宝五皇冠店铺 编辑:程序博客网 时间:2024/05/17 02:24
......
三月 15, 2016 1:31:04 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Developer Notification (set struts.devMode to false to disable this message):Unexpected Exception caught setting 'confirmNewPwd' on 'class com.wlgj.xtjc.biz.user.action.UserAction: Error setting expression 'confirmNewPwd' with value ['123456789', ]
三月 15, 2016 1:31:04 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'currentPwd' on 'class com.wlgj.xtjc.biz.user.action.UserAction: Error setting expression 'currentPwd' with value ['123', ]
三月 15, 2016 1:31:04 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger error
严重: Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'newPwd' on 'class com.wlgj.xtjc.biz.user.action.UserAction: Error setting expression 'newPwd' with value ['123456', ]
................
“当struts.devMode设置为true时,html表单数据中有和action属性匹配不上的参数名时(使用域对象时的非对象属性,或DrivenModel时,此model没有的属性时)就会报此提示。出现这个没什么影响,就是为了便于使用者调试。struts.devMode设置为false就没有了。可能它的log级别设置的容易让人误会。” Action中没有定义setter和getter方法时,使用request.getParameter("name")也可以取到;
解决方法 1:struts.devMode设置为false
解决方法 2: 在Action中增加对应的setter方法
解决方法 3:使用域对象或驱动模型时,给domain对应的增加对应的属性或者临时属性即可。
1 0
- Unexpected Exception caught setting
- 报错:Unexpected Exception caught setting 'undefined'
- Unexpected Exception caught setting 'xx' on 'xxx'
- Unexpected Exception caught setting 异常解决记录
- SSH2开发错误RROR - ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
- Unexpected Exception caught setting 'house.floorage' on 'class action.HouseAction
- Unexpected Exception caught setting 'age'-Error setting expression 'age' with value ['3']
- Unexpected Exception caught setting 'upfile' on 'class yuhao.action.FileAction: Error setting expres
- Unexpected Exception caught setting 'x' on class xx:Error setting expression 'xx' with value ['x',]
- Unexpected Exception caught setting 'username' on 'class cn.lim.action.UserAction: Error setting exp
- struts2 接收double数组 表单为空 ParametersInterceptor - [setParameters]: Unexpected Exception caught setting
- Unexpected Exception caught setting 'uid' on 'class com.opensymphony.xwork2.ActionSupport: Erro
- struts2 action 命名冲突导致的Unexpected Exception caught setting 'act' on 'class com.quamnet.backend.cms.ac
- FAILED: Error in metadata: javax.jdo.JDOFatalInternalException: Unexpected exception caught.
- Caught exception (java.lang.OutOfMemoryError)
- Caught exception (java.lang.OutOfMemoryError)
- iOS Exception caught Crash Report
- iOS Exception caught Crash Report
- 大数据架构师基础:hadoop家族,Cloudera系列产品介绍
- spring介绍
- Eclipse 使用RecyclerView及CardView注意事项:
- Linux查看CPU信息[cat /proc/cpuinfo]
- leetcode 55. Jump Game
- Unexpected Exception caught setting
- PHP中header头设置Cookie与内置setCookie的区别
- java set和get方法的使用
- CDC IsPrint
- Java 工具类 ToStringBuilder
- windowmanager params type
- 宁波9家游戏开发运营公司简介
- Failed to connect to database. This release of the GeoDatabase is either invalid or out of date
- Gradle - 实战笔记