java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.BindException: Address already in use: connect org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.BindException: Address already in use: connect at org.apache.commons.dbcp.DriverConnectionFactory.createConnectionDriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObjectPoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObjectGenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObjectAbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnectionPoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnectionBasicDataSource.java:312) at com.apex.chronos.app.DatabaseDelegate.getPooledConnectionDatabaseDelegate.java:70) at com.apex.chronos.app.DatabaseDelegate.logConnectionInfoDatabaseDelegate.java:34)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843798, 1 year ago
Unable to connect to any hosts due to exception: java.net.BindException: Address already in use: connect org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.BindException: Address
java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.BindException: Address already in use: connect org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.BindException: Address already in use: connect at org.apache.commons.dbcp.DriverConnectionFactory.createConnectionDriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObjectPoolableConnectionFactory.java:184) at org.apache.commons.pool.impl.GenericObjectPool.borrowObjectGenericObjectPool.java:722) at org.apache.commons.dbcp.AbandonedObjectPool.borrowObjectAbandonedObjectPool.java:117) at org.apache.commons.dbcp.PoolingDataSource.getConnectionPoolingDataSource.java:108) at org.apache.commons.dbcp.BasicDataSource.getConnectionBasicDataSource.java:312) at com.apex.chronos.app.DatabaseDelegate.getPooledConnectionDatabaseDelegate.java:70) at com.apex.chronos.app.DatabaseDelegate.logConnectionInfoDatabaseDelegate.java:34)
at com.apex.chronos.Startup.testConnectionPool(Startup.java:384)
at com.apex.chronos.Startup.init(Startup.java:183)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.