java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection timed out: connect

Oracle Community | 807581 | 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

    mysql connection issue sql ConnectException

    Oracle Community | 1 decade ago | 807581
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection timed out: connect
  2. 0

    MySQL Bugs: #79920: NPE when executing update to MySQL Fabric

    mysql.com | 1 year ago
    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
  3. 0

    MySQL Bugs: #79920: NPE when executing update to MySQL Fabric

    mysql.com | 11 months ago
    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.List
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.sql.SQLException

      Unable to connect to any hosts due to exception: java.net.ConnectException: Connection timed out: connect

      at com.mysql.jdbc.Connection.createNewIO()
    2. MySQL jdbc
      MysqlDataSource.getConnection
      1. com.mysql.jdbc.Connection.createNewIO(Connection.java:1631)
      2. com.mysql.jdbc.Connection.<init>(Connection.java:524)
      3. com.mysql.jdbc.Driver.connect(Driver.java:359)
      4. com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:414)
      5. com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:155)
      5 frames
    3. Connectors Runtime
      SystemJdbcDataSource.getConnection
      1. com.sun.enterprise.resource.JdbcUrlAllocator.createResource(JdbcUrlAllocator.java:88)
      2. com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
      3. com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
      4. com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
      5. com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
      6. com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
      7. com.sun.enterprise.resource.JdbcXAConnection.<init>(JdbcXAConnection.java:74)
      8. com.sun.enterprise.resource.SystemJdbc10XaAllocator.createResource(SystemJdbc10XaAllocator.java:52)
      9. com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:856)
      10. com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:416)
      11. com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:625)
      12. com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:520)
      13. com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:263)
      14. com.sun.enterprise.resource.SystemJdbcDataSource.internalGetConnection(SystemJdbcDataSource.java:226)
      15. com.sun.enterprise.resource.SystemJdbcDataSource.getConnection(SystemJdbcDataSource.java:154)
      15 frames
    4. com.sun.jdo
      PersistenceManagerFactoryImpl.getPersistenceManager
      1. com.sun.jdo.spi.persistence.support.sqlstore.ejb.TransactionHelperImpl.getConnection(TransactionHelperImpl.java:171)
      2. com.sun.jdo.spi.persistence.support.sqlstore.ejb.EJBHelper.getConnection(EJBHelper.java:169)
      3. com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getDBName(SQLPersistenceManagerFactory.java:781)
      4. com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getFromPool(SQLPersistenceManagerFactory.java:709)
      5. com.sun.jdo.spi.persistence.support.sqlstore.impl.SQLPersistenceManagerFactory.getPersistenceManager(SQLPersistenceManagerFactory.java:598)
      6. com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:770)
      7. com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl.getPersistenceManager(PersistenceManagerFactoryImpl.java:660)
      7 frames
    5. com.dalcais.domain
      TownBean809727498_ConcreteImpl_LocalHomeImpl.findAll
      1. com.dalcais.domain.TownBean809727498_ConcreteImpl.jdoGetPersistenceManager(TownBean809727498_ConcreteImpl.java:825)
      2. com.dalcais.domain.TownBean809727498_ConcreteImpl.ejbFindAll(TownBean809727498_ConcreteImpl.java:411)
      3. com.dalcais.domain.TownBean809727498_ConcreteImpl_LocalHomeImpl.findAll(TownBean809727498_ConcreteImpl_LocalHomeImpl.java:100)
      3 frames
    6. com.dalcais.apps
      _ListingSessionBean_EJBObjectImpl_Tie._invoke
      1. com.dalcais.apps.re.ListingSessionBean.getAllTowns(ListingSessionBean.java:134)
      2. com.dalcais.apps.re.ListingSessionBean_EJBObjectImpl.getAllTowns(ListingSessionBean_EJBObjectImpl.java:22)
      3. com.dalcais.apps.re._ListingSessionBean_EJBObjectImpl_Tie._invoke(Unknown Source)
      3 frames
    7. com.sun.corba
      ORB.process
      1. com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(GenericPOAServerSC.java:569)
      2. com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(GenericPOAServerSC.java:211)
      3. com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(GenericPOAServerSC.java:113)
      4. com.sun.corba.ee.internal.iiop.ORB.process(ORB.java:275)
      4 frames