2 qq 37666116 qq_37666116 于 2017.09.20 10:24 提问

做增删改查的时候,tomcat报一个不知名错?

[10:07:18:806] [ERROR] - com.opensymphony.xwork2.interceptor.ParametersInterceptor.notifyDeveloperParameterException(ParametersInterceptor.java:227) - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'x' on 'class school.student.oa.view.action.UserAction: Error setting expression 'x' with value ['32', ]
[10:07:18:817] [ERROR] - com.opensymphony.xwork2.interceptor.ParametersInterceptor.notifyDeveloperParameterException(ParametersInterceptor.java:227) - Developer Notification (set struts.devMode to false to disable this message):
Unexpected Exception caught setting 'y' on 'class school.student.oa.view.action.UserAction: Error setting expression 'y' with value ['12', ]

Struts.xml的Struts.devMode改成true然后在做增删改查的时候就报这个错,同时tomcat也不会自动加载已经写好的类,需要重启,这个怎么解决,求教

2个回答

number1killer
number1killer   2017.09.20 11:54

参数异常,用32设置X的值,用12设置Y的值。应该是插入或更新时字符类型不匹配导致的。

u014435531
u014435531   2017.09.21 14:11

类型不匹配。需要修改类型

Csdn user default icon
上传中...
上传图片
插入图片