org.apache.struts2.json.JSONException
验证在action中正常,但是总提示服务器没有返回数据.....并且其他原来没问题的验证也出现这个问题错误:
org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: org.apache.struts2.json.JSONException: java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.TruePointcut with modifiers "public"
原因:
原来在checkAction中用到的xxManager.xx()方法时,不仅加上了setxxManager还不小心还添加了getxxManager()的方法这样json在返回数据的时候将manager也返回了,所以产生了这个情况。去掉get方法就没问题了
页:
[1]