java.lang.RuntimeException

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

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web48075

  • via activemq-users by magellings, 10 months ago
    java.io.IOException: An attempt by a client to checkout a Connection has timed out.
  • via uptimesoftware.com by Unknown author, 1 year ago
    java.sql.SQLException: An attempt by a client to checkout a Connection has timed out.
  • via Stack Overflow by Manee
    , 11 months ago
    com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.1.26, port 1433 has failed. Error: "connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
  • Stack trace

    • java.lang.RuntimeException: java.io.IOException: An attempt by a client to checkout a Connection has timed out. at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.getStoreSize(QueueStorePrefetch.java:66) 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.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) ... 16 more 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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 10 months ago
    7 more bugmates