码迷,mamicode.com
首页 > 数据库 > 详细

Dbcp2抛出org.apache.commons.dbcp2.LifetimeExceededException

时间:2016-03-24 18:34:24      阅读:856      评论:0      收藏:0      [点我收藏+]

标签:

 1 三月 24, 2016 5:16:33 下午 org.apache.commons.dbcp2.BasicDataSource onSwallowException
 2 警告: An internal object pool swallowed an Exception.
 3 org.apache.commons.dbcp2.LifetimeExceededException: The lifetime of the connection [14] milliseconds exceeds the maximum permitted value of [10] milliseconds
 4     at org.apache.commons.dbcp2.PoolableConnectionFactory.validateLifetime(PoolableConnectionFactory.java:424)
 5     at org.apache.commons.dbcp2.PoolableConnectionFactory.passivateObject(PoolableConnectionFactory.java:364)
 6     at org.apache.commons.pool2.impl.GenericObjectPool.returnObject(GenericObjectPool.java:581)
 7     at org.apache.commons.dbcp2.PoolableConnection.close(PoolableConnection.java:206)
 8     at org.apache.commons.dbcp2.DelegatingConnection.closeInternal(DelegatingConnection.java:235)
 9     at org.apache.commons.dbcp2.DelegatingConnection.close(DelegatingConnection.java:218)
10     at org.apache.commons.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper.close(PoolingDataSource.java:244)
11     at org.apache.commons.dbutils.DbUtils.close(DbUtils.java:60)
12     at org.apache.commons.dbutils.AbstractQueryRunner.close(AbstractQueryRunner.java:438)
13     at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:359)
14     at org.apache.commons.dbutils.QueryRunner.query(QueryRunner.java:307)
15     at com.starunion.java.fsccserver.dao.DbUtilsTemplate.getCount(DbUtilsTemplate.java:188)
16     at com.starunion.java.fsccserver.dao.fs.DaoCdrInfo.getSessionCount(DaoCdrInfo.java:33)
17     at com.starunion.java.fsccserver.service.client.ProcClientReqSql.getCdrSessionCount(ProcClientReqSql.java:45)
18     at com.starunion.java.fsccserver.service.client.ClientReqMsgLogicService.procClientRequest(ClientReqMsgLogicService.java:114)
19     at com.starunion.java.fsccserver.thread.client.SocketClientTcpThread.run(SocketClientTcpThread.java:99)

 结合我的实际环境,推测这个抛出的原因:

是数据库建立链接的时候身份验证的时候超时。

但是不影响返回后面的查询结果,所以……这个问题先放一放吧。

或者谁能帮我解答一下?

Dbcp2抛出org.apache.commons.dbcp2.LifetimeExceededException

标签:

原文地址:http://www.cnblogs.com/yoyotl/p/5316369.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!