Dbcp2 throws Org.apache.commons.dbcp2.LifetimeExceededException

Source: Internet
Author: User

1March 24, 2016 5:16:33Afternoon Org.apache.commons.dbcp2.BasicDataSource Onswallowexception2 WARNING: An internal object pool swallowed an Exception.3Org.apache.commons.dbcp2.LifetimeExceededException:The lifetime of the connection [+] milliseconds exceeds the maximum permitted value of [ten] milliseconds4At Org.apache.commons.dbcp2.PoolableConnectionFactory.validateLifetime (poolableconnectionfactory.java:424)5At Org.apache.commons.dbcp2.PoolableConnectionFactory.passivateObject (poolableconnectionfactory.java:364)6At Org.apache.commons.pool2.impl.GenericObjectPool.returnObject (genericobjectpool.java:581)7At Org.apache.commons.dbcp2.PoolableConnection.close (poolableconnection.java:206)8At Org.apache.commons.dbcp2.DelegatingConnection.closeInternal (delegatingconnection.java:235)9At Org.apache.commons.dbcp2.DelegatingConnection.close (delegatingconnection.java:218)TenAt Org.apache.commons.dbcp2.poolingdatasource$poolguardconnectionwrapper.close (PoolingDataSource.java:244) OneAt Org.apache.commons.dbutils.DbUtils.close (dbutils.java:60) AAt Org.apache.commons.dbutils.AbstractQueryRunner.close (abstractqueryrunner.java:438) -At Org.apache.commons.dbutils.QueryRunner.query (queryrunner.java:359) -At Org.apache.commons.dbutils.QueryRunner.query (queryrunner.java:307) theAt Com.starunion.java.fsccserver.dao.DbUtilsTemplate.getCount (dbutilstemplate.java:188) -At Com.starunion.java.fsccserver.dao.fs.DaoCdrInfo.getSessionCount (daocdrinfo.java:33) -At Com.starunion.java.fsccserver.service.client.ProcClientReqSql.getCdrSessionCount (procclientreqsql.java:45) -At Com.starunion.java.fsccserver.service.client.ClientReqMsgLogicService.procClientRequest ( clientreqmsglogicservice.java:114) +At Com.starunion.java.fsccserver.thread.client.SocketClientTcpThread.run (socketclienttcpthread.java:99)

In combination with my actual environment, I speculate on the cause of this throw:

is when the database establishes the link when the authentication time expires.

But does not affect the return of the query results, so ... Let's put the question in the first place.

Or who can help me answer it?

Dbcp2 throws Org.apache.commons.dbcp2.LifetimeExceededException

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.