Unexpected Exception caught setting
2016-03-15 13:47
441 查看
......
三月 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对应的增加对应的属性或者临时属性即可。
三月 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对应的增加对应的属性或者临时属性即可。
相关文章推荐
- android判断service是否活着
- python图片文本识别的简单实现
- C#第十五节课
- 序列化反序列化
- 深入浅析 C++ 调用 Python 模块
- Linux下的/etc/profile文件 和 /etc/profile.d/文件夹
- Java反射机制理解记录
- centos7 kickstart 使用小结
- 管理者的梦
- Java各版本在线及离线JDK API——如何制作CHM文档
- iOS学习之block(一)
- android sdk
- Mac系统虚拟机里安装windows7
- 漫画:为什么搞计算机工作的人总是看上去很清闲(转)
- protected (C# Reference)
- Citrix XenServer 6.5 配置 workload balance 负载均衡
- Citrix XenServer 6.5 配置 workload balance 负载均衡
- 怎么调试EXC_BAD_ACCESS错误
- Android开发中无处不在的设计模式——观察者模式
- 技术债务(母鸡的遭遇)(转)