javax.resource.ResourceException: Could not create connection

Stack Overflow | Ziyed | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Connection to Db

    Google Groups | 9 years ago | Vedran
    org.postgresql.util.PSQLException: The connection attempt failed.
  2. 0

    JDBC Connect Error Postgresql

    Google Groups | 9 years ago | Chase Preuninger
    org.postgresql.util.PSQLException: The connection attempt failed.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    0000836: Postgre on Win installation stalled - Openbravo Issue Tracking System

    openbravo.com | 2 years ago
    org.postgresql.util.PSQLException: The connection attempt failed.
  5. 0

    server connection problem

    openbravo | 1 decade ago | hemendra_soft
    org.postgresql.util.PSQLException: The connection attempt failed.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.UnknownHostException

    NAME_TWO

    at java.net.AbstractPlainSocketImpl.connect()
  2. Java RT
    Socket.<init>
    1. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)[rt.jar:1.8.0_91]
    2. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)[rt.jar:1.8.0_91]
    3. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)[rt.jar:1.8.0_91]
    4. java.net.Socket.connect(Socket.java:589)[rt.jar:1.8.0_91]
    5. java.net.Socket.connect(Socket.java:538)[rt.jar:1.8.0_91]
    6. java.net.Socket.<init>(Socket.java:434)[rt.jar:1.8.0_91]
    7. java.net.Socket.<init>(Socket.java:211)[rt.jar:1.8.0_91]
    7 frames
  3. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.core.PGStream.<init>(PGStream.java:60)
    2. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:74)
    3. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
    4. org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:123)
    5. org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:28)
    6. org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:20)
    7. org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
    8. org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:22)
    9. org.postgresql.Driver.makeConnection(Driver.java:391)
    10. org.postgresql.Driver.connect(Driver.java:265)
    10 frames
  4. IronJacamar
    LocalManagedConnectionFactory.createManagedConnection
    1. org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:328)
    2. org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:304)
    2 frames
  5. IronJacamar
    AbstractConnectionManager.allocateConnection
    1. org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:834)
    2. org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:379)
    3. org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:453)
    4. org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:425)
    5. org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:354)
    6. org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:368)
    7. org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:510)
    7 frames
  6. IronJacamar
    WrapperDataSource.getConnection
    1. org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:143)
    1 frame
  7. Hibernate EJB
    InjectedDataSourceConnectionProvider.getConnection
    1. org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:70)[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    1 frame
  8. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.engine.jdbc.internal.JdbcServicesImpl$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcServicesImpl.java:242)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    2. org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:117)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    3. org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:85)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    4. org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:184)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    5. org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:156)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    6. org.hibernate.cfg.Configuration.buildTypeRegistrations(Configuration.java:1827)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    7. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1785)[hibernate-core-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    7 frames
  9. Hibernate EJB
    HibernatePersistence.createContainerEntityManagerFactory
    1. org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:96)[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    2. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    3. org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:900)[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    4. org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:76)[hibernate-entitymanager-4.2.18.Final-redhat-2.jar:4.2.18.Final-redhat-2]
    4 frames
  10. JPA
    PersistenceUnitServiceImpl$1.run
    1. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)[jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    2. org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)[jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    3. org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)[jboss-as-jpa-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
    3 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[rt.jar:1.8.0_91]
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[rt.jar:1.8.0_91]
    3. java.lang.Thread.run(Thread.java:745)[rt.jar:1.8.0_91]
    3 frames
  12. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:122)
    1 frame