请高手指点我在struts2.0整合jsonplugin-0.32.jar 时候,
出现下面这个问题,
出现时间:当程序从后台取出数据后。2010-12-9 17:01:09 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
java.lang.AbstractMethodError
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:225)
at $Proxy4.getClientInfo(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:224)
at com.googlecode.jsonplugin.JSONWriter.process(JSONWriter.java:161)
at com.googlecode.jsonplugin.JSONWriter.value(JSONWriter.java:127)
at com.googlecode.jsonplugin.JSONWriter.add(JSONWriter.java:323)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:225)
出现下面这个问题,
出现时间:当程序从后台取出数据后。2010-12-9 17:01:09 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
java.lang.AbstractMethodError
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:225)
at $Proxy4.getClientInfo(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:224)
at com.googlecode.jsonplugin.JSONWriter.process(JSONWriter.java:161)
at com.googlecode.jsonplugin.JSONWriter.value(JSONWriter.java:127)
at com.googlecode.jsonplugin.JSONWriter.add(JSONWriter.java:323)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:225)
解决方案 »
- Spring mvc 在实现类里 我获得一个异常信息 然后怎么放到Action里面实现跳转 最后在页面上显示异常信息 ?
- 关于java AD 验证错误
- @EJB注入的问题
- 在b/s开发中,权限控制有没有好的解决方案,请高手指教!
- 这条sql语句怎么在hibernate3中执行
- 可用分基本快没有了,问一个比较简单的STRUTS问题,大家肯定遇到过
- 大家有兴趣的可以来看看
- JAVA如何实现自动登陆到某个网站?换句话说就是能否保持与一个网站的SESSION?
- bea网站下的weblogic布署ejb1.0都没有问题,但布署ejb2.0 entity bean总是不成功
- 用0-9的阿拉伯数字,组成一组5位长的密码n1n2n3n4n5,要求n1=n5,n1<n2<n3>n4>n5,请用编程实现 比如说:0< 1 < 2 > 1>0
- 【求】 jQuery + ssh 的项目例子
- hql 关联查询语句
这是我配置文件中写的:
<package name="json" extends="json-default">
<action name="json_item" class="subitemAction" >
<result type="json"></result>
</action>
</package>
public String getSubitem(){
str ="{str:"+1+"}";
System.out.println( "str::::"+str );
return SUCCESS;
}
原因是:action中有其他的get方法,使得转换的时候也要把其他的方法转换,由于转换类不认识所以出错。
你可以把其他的带有get的方法都去掉试一下还出现这个错误不,如果不出现就是这个错误。
再次粘贴错误信息:2010-12-10 10:27:56 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet default threw exception
java.lang.AbstractMethodError
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at org.apache.commons.dbcp.DelegatingConnection.getClientInfo(DelegatingConnection.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy$TransactionAwareInvocationHandler.invoke(TransactionAwareDataSourceProxy.java:225)
at $Proxy4.getClientInfo(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:224)
at com.googlecode.jsonplugin.JSONWriter.process(JSONWriter.java:161)
at com.googlecode.jsonplugin.JSONWriter.value(JSONWriter.java:127)
at com.googlecode.jsonplugin.JSONWriter.add(JSONWriter.java:323)
at com.googlecode.jsonplugin.JSONWriter.bean(JSONWriter.java:225)
at com.googlecode.jsonplugin.JSONWriter.process(JSONWriter.java:161)