问题描述
<2012-3-15 下午04时04分40秒 CST> <Warning> <JDBC> <BEA-001153> <Forcibly releasing inactive connection "weblogic.jdbc.wrapper.PoolConnection_com_informix_jdbc_IfxSqliConnect@134" back into the connection pool "quotationDataSource", currently reserved by: java.lang.Exceptionat weblogic.jdbc.common.internal.ConnectionEnv.setup(ConnectionEnv.java:293)at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:306)at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:284)at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:466)at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:357)at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:83)at weblogic.jdbc.common.internal.ConnectionPoolManager.reserve(ConnectionPoolManager.java:96)at weblogic.jdbc.pool.Driver.connect(Driver.java:150)at weblogic.jdbc.jts.Driver.getNonTxConnection(Driver.java:647)at weblogic.jdbc.jts.Driver.connect(Driver.java:137)at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:359)at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:82)at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)at org.springframework.orm.hibernate3.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:558)at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:374)at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:263)at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:101)at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)at com.sinosoft.quotation.simulater.service.spring.SimulaterServiceSpringImpl$$EnhancerByCGLIB$$9a0cc6c9.StartSimulater(<generated>)at com.sinosoft.quotation.simulater.service.spring.TimeTaskDispatch.executeInternal(TimeTaskDispatch.java:66)at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)at org.quartz.core.JobRunShell.run(JobRunShell.java:202)at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529) 问题补充:kidding87 写道
解决方案
一、看看你是不是连接有没有释放的地方,在http://localhost:7001/console部署里面可以看到二、设置weblogic的连接池属性 inactive Connection Timeout;三、要不你换换jdbc的jar包
解决方案二:
连接没正常释放?