Class ognl.OgnlRuntime can not access a member of问题
2014-06-18 10:11
706 查看
今天,朋友问了一个问题,web项目访问时报Class ognl.OgnlRuntime can not access a member of错,网上看了一些,有的说是因为action中声明的类是private,有的说是没有提供get、set方法。后来,才知道是类中的属性命名不规范。就比如,我有个属性名是uUsername,这样是不规范的,get方法就成了getUUsername,这样struts2找不到,就会报这个错。引以为戒。
附原文地址:http://www.cnblogs.com/shenliang123/archive/2013/05/16/3082256.html
附原文地址:http://www.cnblogs.com/shenliang123/archive/2013/05/16/3082256.html
相关文章推荐
- struts2--java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of...问题解决方案
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- struts2--java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of
- Caused by: java.lang.IllegalAccessException: Class ognl.OgnlRuntime can not access a member of class
- Class ognl.OgnlRuntime can not access a member of class
- 遇到问题---org.apache.struts2.json.JSONWriter can not access a member of class
- 解决json结合struts2时,Class org.apache.struts2.json.JSONWriter can not access a member of * 的问题
- 遇到问题---org.apache.struts2.json.JSONWriter can not access a member of class
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- 使用json-lib-2.1.jar报,org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public"-转载
- Class com.googlecode.jsonplugin.JSONWriter can not access a member of class*
- Class org.apache.struts2.json.JSONWriter can not access a member of *(转)
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- can not access a member of class com.xxx.MyClass with modifiers "public static final"
- 使用json-lib-2.1.jar报,org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingDataSourc
- org.apache.struts2.json.JSONWriter can not access a member of class
- Class com.googlecode.jsonplugin.JSONWriter can not access a member of class*
- org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp...
- Class com.googlecode.jsonplugin.JSONWriter can not access a member of class*