"org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted" in JBoss EAP

Solution Verified - Updated -

Issue

Encountering DBCP exceptions such as the one below

... org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted
 at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:103)
 at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:544)
 ...
Caused by: java.util.NoSuchElementException: Timeout waiting for idle object
 at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:756)
 at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:95)
 ...

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) - all versions

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.