用json时报异常,困扰我一天啦!!!求解!!!
Caused by: 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.hibernate.persister.entity.AbstractEntityPersister$3 with modifiers "public"
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:250)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:164)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:130)
at org.apache.struts2.json.JSONWriter.map(JSONWriter.java:380)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:150)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:130)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:336)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:235)
... 94 more
Caused by: org.apache.struts2.json.JSONException: java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.hibernate.persister.entity.AbstractEntityPersister$3 with modifiers "public"
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:250)
at org.apache.struts2.json.JSONWriter.process(JSONWriter.java:164)
at org.apache.struts2.json.JSONWriter.value(JSONWriter.java:130)
at org.apache.struts2.json.JSONWriter.add(JSONWriter.java:336)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:235)
... 101 more
Caused by: java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.hibernate.persister.entity.AbstractEntityPersister$3 with modifiers "public"
at sun.reflect.Reflection.ensureMemberAccess(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.struts2.json.JSONWriter.bean(JSONWriter.java:234)
... 105 more
---------------------------------------------------------------------------------------------
有大哥能帮忙看下嘛T.T
------解决方案--------------------can not access a member of class org.hibernate.persister.entity.AbstractEntityPersister$3 with modifiers "public"
成员的修饰符用错了吗?