org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-176]

GitHub | kevinfealey | 4 months 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

    DB connection issue between H2 database 1.3.156 (or prior) and 1.3.157 (and onwards)

    Stack Overflow | 4 years ago | Aditya G.
    org.h2.jdbc.JdbcSQLException: Connection is broken: "java.net.ConnectException: Connection refused: connect: localhost" [90067-174]
  2. 0

    H2 jdbc Connection refused: connect 90067-147

    Stack Overflow | 2 years ago | Hisham
    org.h2.jdbc.JdbcSQLException: Connection is broken: "Connection refused: connect" [90067-147]
  3. 0

    H2 Database (embedded) connection timeout

    Google Groups | 6 years ago | Michael Spector
    org.h2.jdbc.JdbcSQLException: Connection is broken: "connect timed out" [90067-142]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    H2 Database (embedded) connection timeout

    Stack Overflow | 6 years ago | spektom
    org.h2.jdbc.JdbcSQLException: Connection is broken: "connect timed out" [90067-142]
  6. 0

    ClassNotFoundException when running the Benchmark

    Google Groups | 7 years ago | Ingo Adler
    org.h2.jdbc.JdbcSQLException: Verbindung ist unterbrochen: "unexpected status 1090519040" Connection is broken: "unexpected status 1090519040" [90067-137]
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 (Connection refused)

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. H2 Database Engine
    Driver.connect
    1. org.h2.util.NetUtils.createSocket(NetUtils.java:123)
    2. org.h2.util.NetUtils.createSocket(NetUtils.java:103)
    3. org.h2.engine.SessionRemote.initTransfer(SessionRemote.java:100)
    4. org.h2.engine.SessionRemote.connectServer(SessionRemote.java:430)
    5. org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:311)
    6. org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:107)
    7. org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:91)
    8. org.h2.Driver.connect(Driver.java:74)
    8 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:664)
    2. java.sql.DriverManager.getConnection(DriverManager.java:208)
    2 frames
  5. Commons DBCP
    PoolableConnectionFactory.makeObject
    1. org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:78)
    2. org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
    2 frames
  6. Commons Pool
    GenericObjectPool.borrowObject
    1. org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1148)
    1 frame
  7. Commons DBCP
    PoolingDataSource.getConnection
    1. org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
    1 frame
  8. DataNucleus RDBMS plugin
    RDBMSStoreManager.<init>
    1. org.datanucleus.store.rdbms.ConnectionFactoryImpl$ManagedConnectionImpl.getConnection(ConnectionFactoryImpl.java:483)
    2. org.datanucleus.store.rdbms.RDBMSStoreManager.<init>(RDBMSStoreManager.java:297)
    2 frames
  9. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    4 frames
  10. DataNucleus Core
    PersistenceNucleusContextImpl.initialise
    1. org.datanucleus.plugin.NonManagedPluginRegistry.createExecutableExtension(NonManagedPluginRegistry.java:606)
    2. org.datanucleus.plugin.PluginManager.createExecutableExtension(PluginManager.java:301)
    3. org.datanucleus.NucleusContextHelper.createStoreManagerForProperties(NucleusContextHelper.java:190)
    4. org.datanucleus.PersistenceNucleusContextImpl.initialise(PersistenceNucleusContextImpl.java:422)
    4 frames
  11. DataNucleus JDO API plugin
    JDOPersistenceManagerFactory.getPersistenceManagerFactory
    1. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.freezeConfiguration(JDOPersistenceManagerFactory.java:842)
    2. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.createPersistenceManagerFactory(JDOPersistenceManagerFactory.java:333)
    3. org.datanucleus.api.jdo.JDOPersistenceManagerFactory.getPersistenceManagerFactory(JDOPersistenceManagerFactory.java:212)
    3 frames
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  13. JDO API
    JDOHelper$16.run
    1. javax.jdo.JDOHelper$16.run(JDOHelper.java:1970)
    1 frame
  14. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  15. JDO API
    JDOHelper.getPersistenceManagerFactory
    1. javax.jdo.JDOHelper.invoke(JDOHelper.java:1965)
    2. javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:1171)
    3. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:849)
    4. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:1104)
    5. javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:924)
    5 frames
  16. org.owasp.dependencytrack
    LocalPersistenceManagerFactory.contextInitialized
    1. org.owasp.dependencytrack.persistence.LocalPersistenceManagerFactory.contextInitialized(LocalPersistenceManagerFactory.java:52)
    1 frame
  17. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4720)
    2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5154)
    3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    4. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)
    5. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)
    6. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
    7. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:917)
    8. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1701)
    8 frames
  18. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames