ORACLE CLOSE BY CLIENT STACK TRACE

ORACLE  CLOSE BY CLIENT STACK TRACE

 

部署一个项目启动的时候debug打印出好多错误

其中,CLOSE BY CLIENT STACK TRACE  是第一错误

使用的是Myeclipse 8.5

框 架: hibernate 3.0  ,spring 3.0  ,maven2 等

web服务器 :resin3.1.10

错误信息如下所示:

 

Exception代码 复制代码  收藏代码
  1. java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE  
  2.     at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566)  
  3.     at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)  
  4.     at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)  
  5.     at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)  
  6.     at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)  
  7.     at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)  
  8.     at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)  
  9.   
  10.   
  11.   
  12. …………  
  13.   
  14. Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available.   
  15. Add CGLIB to the class path or specify proxy interfaces.  
java.lang.Exception: DEBUG -- CLOSE BY CLIENT STACK TRACE
	at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:566)
	at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:234)
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
	at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
	at com.mchange.v2.resourcepool.BasicResourcePool.destroyResource(BasicResourcePool.java:989)
	at com.mchange.v2.resourcepool.BasicResourcePool.access$100(BasicResourcePool.java:32)
	at com.mchange.v2.resourcepool.BasicResourcePool$5.run(BasicResourcePool.java:1174)



…………

Caused by: org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. 
Add CGLIB to the class path or specify proxy interfaces.


 

 

解决方法:

在maven2的配置文件中,初始化下载的一些jar包中,加入cglib2.2 jar包的下载

Xml代码 复制代码  收藏代码
  1. <dependency>  
  2.     <groupId>cglib</groupId>  
  3.     <artifactId>cglib</artifactId>  
  4.     <version>2.2</version>  
  5. </dependency>  
<dependency>
	<groupId>cglib</groupId>
	<artifactId>cglib</artifactId>
	<version>2.2</version>
</dependency>

 

 

再次启动时,debug报错消失

 

在resin服务器的lib下发现,当配置 上面的xml时候,会有包 cglib-2.2.jar 加载过来

可见,以上的错误信息是由于缺少这个包造成的,在相应的 lib中加入该包,就不会有这个问题了。

 

随文附上该包下载

你可能感兴趣的:(oracle)