JSON 转换异常 multipartRequestHandler servletWrapper

时间:2023-03-08 15:26:54
JSON 转换异常 multipartRequestHandler servletWrapper

下面出现红色的字还有警告,解决方法:本人项目是struts1 from类继承了“extends ActionForm” 。把它去掉就行了。如果你是其它的框架一定是继承引起的作个参考吧。

.......

警告: Property 'servletFor' of class org.apache.struts.action.ActionServletWrapper has no read method. SKIPPED
2013-9-4 10:11:00 net.sf.json.JSONObject _fromBean
警告: Property 'servlet' of class com.taa.from.StrudentFrom has no read method. SKIPPED
2013-9-4 10:11:00 net.sf.json.JSONObject _fromBean
警告: Property 'servletFor' of class org.apache.struts.action.ActionServletWrapper has no read method. SKIPPED
[{"birth":null,"major":"111","multipartRequestHandler":null,"score":222,"servletWrapper":{},"sex":0,"sid":36,"sname":"ewew"},{"birth":null,"major":"1ca","multipartRequestHandler":null,"score":177,"servletWrapper":{},"sex":0,"sid":37,"sname":"edc"},{"birth":null,"major":"12","multipartRequestHandler":null,"score":1000,"servletWrapper":{},"sex":0,"sid":38,"sname":"gtbn"}

2013-9-4 10:11:00 net.sf.json.JSONObject _fromBean
警告: Property 'servlet' of class com.taa.from.StrudentFrom has no read method. SKIPPED
2013-9-4 10:11:00 net.sf.json.JSONObject _fromBean
........