java.io.IOException: An attempt by a client to checkout a Connection has timed out.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • You can't operate on a closed connection
    via by Unknown author,
  • tomcat died after running well for a while
    via Stack Overflow by pumbaac
    ,
    • java.io.IOException: An attempt by a client to checkout a Connection has timed out. at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:45) at org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:61) at org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetMessageCount(DefaultJDBCAdapter.java:687) at org.apache.activemq.store.jdbc.JDBCMessageStore.getMessageCount(JDBCMessageStore.java:208) at org.apache.activemq.store.ProxyMessageStore.getMessageCount(ProxyMessageStore.java:79) at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.getStoreSize(QueueStorePrefetch.java:63) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.gc(AbstractStoreCursor.java:212) at org.apache.activemq.broker.region.cursors.StoreQueueCursor.gc(StoreQueueCursor.java:257) at org.apache.activemq.broker.region.Queue.removeSubscription(Queue.java:308) at org.apache.activemq.broker.region.AbstractRegion.removeConsumer(AbstractRegion.java:324) at org.apache.activemq.broker.region.RegionBroker.removeConsumer(RegionBroker.java:392) at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114) at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114) at org.apache.activemq.advisory.AdvisoryBroker.removeConsumer(AdvisoryBroker.java:222) at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114) at org.apache.activemq.broker.MutableBrokerFilter.removeConsumer(MutableBrokerFilter.java:121) at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:565) at org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:600) at org.apache.activemq.broker.TransportConnection.processRemoveConnection(TransportConnection.java:705) at org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:1000) at org.apache.activemq.broker.jmx.ManagedTransportConnection.doStop(ManagedTransportConnection.java:74) at org.apache.activemq.broker.TransportConnection$3.run(TransportConnection.java:925) Caused by: java.sql.SQLException: An attempt by a client to checkout a Connection has timed out. at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:65) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:527) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) at org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:54) ... 20 more Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepo ResourcePool@d964af -- timeout at awaitAvailable() at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) ... 22 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    7 more bugmates