Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.Physica
来源:互联网 发布:校园网络建设 编辑:程序博客网 时间:2024/06/05 04:57
产生这个错误的原因是因为我的oracle数据库中有一个CLOB字段,查询出来的时候要转换为JSON而报错。
Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.PhysicalConnection with modifiers "public"
取出来的JSON数据是这样的
[{STATE=0, REUSER=a, ANONYMIS=否, TEXT=oracle.sql.CLOB@40a04430, CHANNELTYPE=用户交互, ID=1111, OPENIS=是}]
TEXT=oracle.sql.CLOB@40a04430因为它无法转成json
处理方法网上查了一大堆,大部分都是说Json Plugin会序列化整个Action
在<result type="json"></result>中添加includeProperties和excludeProperties过滤掉不需要被序列号的属性。觉得有些复杂,可能还要用一些正则之类的。而我不需要过滤,而是正需要那个CLOB值。
解决办法是在oracle取数据的时候就直接将CLOB转换成varchar2类型
TO_CHAR(text)
- Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.Physica
- Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.Physica
- Class org.apache.struts2.json.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.commons.dbcp...
- 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 *
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- 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 *
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- Class org.apache.struts2.json.JSONWriter can not access a member of *
- 遇到问题---org.apache.struts2.json.JSONWriter can not access a member of class
- org.apache.struts2.json.JSONWriter can not access a member of class
- Class org.apache.struts2.json.JSONWriter can not access a member of class org.springframework.aop.in
- org.apache.struts2.json.JSONWriter can not access a member of class org.apache.commons.dbcp.PoolingD
- Extjs4中tree组件查找所有父节点和查找所有子节点的递归方法
- HTML5本地存储之LocalStorage
- linux command3
- 关于指针作为函数参数传递的理解,对比普通变量作为函数参数的需注意点,其实就是行参和实参的问题。
- 三科成绩单
- Class org.apache.struts2.json.JSONWriter can not access a member of class oracle.jdbc.driver.Physica
- How to keep Z-order of a control in MFC dialog?
- 机器视觉学习总结(一)——Hough Transform and Application
- iCloud存储原理与部分操作
- Win32核心编程 读书笔记一 初识内核对象
- 让网页置于顶层
- js去除空格
- Java--设计模式之策略模式
- Shell脚本的追踪与调试