javax.resource.ResourceException: IJ031084: Unable to create connection

Stack Overflow | Sultan | 2 months ago
  1. 0

    "Unknown error" and "Failed to create JDBC connection" errors while creating new JDBC in wildfly

    Stack Overflow | 2 months ago | Sultan
    javax.resource.ResourceException: IJ031084: Unable to create connection
  2. 0

    [EHO-552] HTTP ERROR: 503 Problem accessing /. Reason: Service Unavailable - eHour JIRA

    ehour.nl | 11 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernateConfiguration': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private javax.sql.DataSource net.rrm.ehour.persistence.appconfig.HibernateConfiguration.dataSource; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createDatasource' defined in class path resource [net/rrm/ehour/persistence/datasource/DatasourceConfiguration.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [public javax.sql.DataSource net.rrm.ehour.persistence.datasource.DatasourceConfiguration.createDatasource() throws java.io.IOException,java.beans.PropertyVetoException,java.net.URISyntaxException] threw exception; nested exception is java.lang.RuntimeException: Fail-fast during pool initialization
  3. 0

    JDBC + MYSQL Communications link failure

    Stack Overflow | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JDBC - cannot connect with a localhost

    Stack Overflow | 2 years ago
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
  6. 0

    Remote Database

    Stack Overflow | 1 year ago | master
    com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

  1. mauritius 1 times, last 3 weeks ago
  2. rp 1 times, last 6 months ago
  3. treefolk 1 times, last 1 week ago
  4. kjhdofjosvs 20 times, last 1 week ago
  5. Andreas Häber 9 times, last 2 weeks ago
44 more registered users
49 unregistered visitors
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.ConnectException

    Connection refused: connect

    at java.net.TwoStacksPlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    5. java.net.PlainSocketImpl.connect(Unknown Source)
    6. java.net.SocksSocketImpl.connect(Unknown Source)
    7. java.net.Socket.connect(Unknown Source)
    7 frames
  3. MySQL jdbc
    JDBC4Connection.<init>
    1. com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:211)
    2. com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    3. com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2251)
    4. com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2284)
    5. com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2083)
    6. com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:806)
    7. com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    7 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    4. java.lang.reflect.Constructor.newInstance(Unknown Source)
    4 frames
  5. MySQL jdbc
    NonRegisteringDriver.connect
    1. com.mysql.jdbc.Util.handleNewInstance(Util.java:404)
    2. com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:410)
    3. com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:328)
    3 frames
  6. IronJacamar
    LocalManagedConnectionFactory.createManagedConnection
    1. org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
    2. org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
    3. org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
    3 frames
  7. IronJacamar
    OnePool.testConnection
    1. org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1320)
    2. org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:496)
    3. org.jboss.jca.core.connectionmanager.pool.AbstractPool.internalTestConnection(AbstractPool.java:1052)
    4. org.jboss.jca.core.connectionmanager.pool.strategy.OnePool.testConnection(OnePool.java:93)
    4 frames
  8. JBoss Application Server: Connector Subsystem
    PoolOperations$1.execute
    1. org.jboss.as.connector.subsystems.common.pool.PoolOperations$TestConnectionInPool.invokeCommandOn(PoolOperations.java:234)
    2. org.jboss.as.connector.subsystems.common.pool.PoolOperations$1.execute(PoolOperations.java:90)
    2 frames
  9. JBoss Application Server: Controller Core
    ModelControllerImpl.execute
    1. org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
    2. org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
    3. org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
    4. org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329)
    5. org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400)
    6. org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:222)
    6 frames
  10. JBoss Application Server: Domain HTTP Interface
    DomainApiHandler.handleRequest
    1. org.jboss.as.domain.http.server.DomainApiHandler.handleRequest(DomainApiHandler.java:219)
    1 frame
  11. Undertow Core
    EncodingHandler.handleRequest
    1. io.undertow.server.handlers.encoding.EncodingHandler.handleRequest(EncodingHandler.java:72)
    1 frame
  12. JBoss Application Server: Domain HTTP Interface
    SubjectDoAsHandler$1.run
    1. org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(SubjectDoAsHandler.java:72)
    2. org.jboss.as.domain.http.server.security.SubjectDoAsHandler$1.run(SubjectDoAsHandler.java:68)
    2 frames
  13. Java RT
    Subject.doAs
    1. java.security.AccessController.doPrivileged(Native Method)
    2. javax.security.auth.Subject.doAs(Unknown Source)
    2 frames
  14. JBoss Application Server: Controller Core
    AccessAuditContext.doAs
    1. org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:149)
    1 frame
  15. JBoss Application Server: Domain HTTP Interface
    SubjectDoAsHandler.handleRequest
    1. org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:68)
    2. org.jboss.as.domain.http.server.security.SubjectDoAsHandler.handleRequest(SubjectDoAsHandler.java:63)
    2 frames
  16. Undertow Core
    BlockingHandler.handleRequest
    1. io.undertow.server.handlers.BlockingHandler.handleRequest(BlockingHandler.java:56)
    1 frame
  17. JBoss Application Server: Domain HTTP Interface
    DomainApiCheckHandler.handleRequest
    1. org.jboss.as.domain.http.server.DomainApiCheckHandler.handleRequest(DomainApiCheckHandler.java:95)
    1 frame
  18. Undertow Core
    HttpServerExchange$1.run
    1. io.undertow.server.Connectors.executeRootHandler(Connectors.java:202)
    2. io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805)
    2 frames
  19. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    3. java.lang.Thread.run(Unknown Source)
    3 frames
  20. JBoss Threads
    JBossThread.run
    1. org.jboss.threads.JBossThread.run(JBossThread.java:320)
    1 frame