Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.Physica

来源:互联网 发布:python socket 10022 编辑:程序博客网 时间:2024/05/21 08:57

“ Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.PhysicaConnection with modifiers "public" ”

错误的原因是没有权限,非 ‘ public ’ , 而造成这种情况的原因有很多:

1. 类里存在没有访问权限的get

2. Struts在转换查询结果为json的时候,查询结果里有一些特殊字段,像clob等

暂时还没遇到其他原因,先记录下来,以便后续探究

0 0