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)

Oracle Community | 843798 | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Tomcat DBCP/JNDI with MySQL

    Oracle Community | 1 decade ago | 843798
    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)

    Root Cause Analysis

    1. 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()
    2. com.apex.chronos
      Startup.init
      1. com.apex.chronos.Startup.testConnectionPool(Startup.java:384)
      2. com.apex.chronos.Startup.init(Startup.java:183)
      2 frames