org.hibernate.exception.JDBCConnectionException: Cannot open connection

coderanch.com | 6 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

    Hibernate: schema export unsuccessful java.sql.SQLTransientConnectionException: java.net.ConnectExce

    Coderanch | 4 years ago | vamsi naki
    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    HSQL Driver not working?

    Stack Overflow | 6 years ago | chntgomez
    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
  4. 0

    How to change port that HSQLDB server listens on

    Stack Overflow | 2 years ago | AmazingBergkamp
    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect2015-04-27 11:42:02,306 INFO [Thread-2] server.DatabaseWorker (DatabaseWorker.java:20) - Database server is Running

  1. QrCeric 17 times, last 5 days ago
  2. andyglick 56 times, last 2 months ago
  3. tomthomas 1 times, last 2 months ago
  4. stigkj 4 times, last 2 months ago
  5. michallos 1 times, last 2 months ago
27 more registered users
65 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.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.PlainSocketImpl.doConnect(Unknown Source)
    3. java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    4. java.net.PlainSocketImpl.connect(Unknown Source)
    5. java.net.SocksSocketImpl.connect(Unknown Source)
    6. java.net.Socket.connect(Unknown Source)
    7. java.net.Socket.connect(Unknown Source)
    8. java.net.Socket.<init>(Unknown Source)
    9. java.net.Socket.<init>(Unknown Source)
    9 frames
  3. HyperSQL Database
    HsqlSocketFactory.createSocket
    1. org.hsqldb.server.HsqlSocketFactory.createSocket(Unknown Source)
    1 frame
  4. HSQLDB
    JDBCDriver.connect
    1. org.hsqldb.ClientConnection.openConnection(Unknown Source)
    2. org.hsqldb.ClientConnection.initConnection(Unknown Source)
    3. org.hsqldb.ClientConnection.<init>(Unknown Source)
    4. org.hsqldb.jdbc.JDBCConnection.<init>(Unknown Source)
    5. org.hsqldb.jdbc.JDBCDriver.getConnection(Unknown Source)
    6. org.hsqldb.jdbc.JDBCDriver.connect(Unknown Source)
    6 frames
  5. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  6. Hibernate
    DriverManagerConnectionProvider.getConnection
    1. org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:133)
    1 frame
  7. Hibernate
    JDBCTransaction.begin
    1. org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446)
    2. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:167)
    3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:142)
    4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:85)
    4 frames
  8. Hibernate
    SessionImpl.beginTransaction
    1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1354)
    1 frame
  9. com.vaannila.student
    Main.main
    1. com.vaannila.student.Main.main(Main.java:15)
    1 frame