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

activemq-users | magellings | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Is there JDBC master/slave retry logic if database goes down?

    activemq-users | 8 years ago | magellings
    java.lang.RuntimeException: java.io.IOException: An attempt by a client to checkout a Connection has timed out.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    You can't operate on a closed connection

    devshed.com | 1 year ago
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  4. 0

    Tomcat 5.5 deployment problem (A C3P0Registry mbean is already registered)

    Google Groups | 9 years ago | bvitez
    java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. c3p0:JDBC DataSources/Resource Pools
    AbstractPoolBackedDataSource.getConnection
    1. com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1317)
    2. com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
    3. com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
    4. com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
    5. com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
    5 frames
  3. ActiveMQ :: Core
    JDBCMessageStore.getMessageCount
    1. org.apache.activemq.store.jdbc.TransactionContext.getConnection(TransactionContext.java:54)
    2. org.apache.activemq.store.jdbc.adapter.DefaultJDBCAdapter.doGetMessageCount(DefaultJDBCAdapter.java:687)
    3. org.apache.activemq.store.jdbc.JDBCMessageStore.getMessageCount(JDBCMessageStore.java:208)
    3 frames
  4. ActiveMQ :: Broker
    TransportConnection$3.run
    1. org.apache.activemq.store.ProxyMessageStore.getMessageCount(ProxyMessageStore.java:79)
    2. org.apache.activemq.broker.region.cursors.QueueStorePrefetch.getStoreSize(QueueStorePrefetch.java:63)
    3. org.apache.activemq.broker.region.cursors.AbstractStoreCursor.gc(AbstractStoreCursor.java:212)
    4. org.apache.activemq.broker.region.cursors.StoreQueueCursor.gc(StoreQueueCursor.java:257)
    5. org.apache.activemq.broker.region.Queue.removeSubscription(Queue.java:308)
    6. org.apache.activemq.broker.region.AbstractRegion.removeConsumer(AbstractRegion.java:324)
    7. org.apache.activemq.broker.region.RegionBroker.removeConsumer(RegionBroker.java:392)
    8. org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114)
    9. org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114)
    10. org.apache.activemq.advisory.AdvisoryBroker.removeConsumer(AdvisoryBroker.java:222)
    11. org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:114)
    12. org.apache.activemq.broker.MutableBrokerFilter.removeConsumer(MutableBrokerFilter.java:121)
    13. org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:565)
    14. org.apache.activemq.broker.TransportConnection.processRemoveSession(TransportConnection.java:600)
    15. org.apache.activemq.broker.TransportConnection.processRemoveConnection(TransportConnection.java:705)
    16. org.apache.activemq.broker.TransportConnection.doStop(TransportConnection.java:1000)
    17. org.apache.activemq.broker.jmx.ManagedTransportConnection.doStop(ManagedTransportConnection.java:74)
    18. org.apache.activemq.broker.TransportConnection$3.run(TransportConnection.java:925)
    18 frames