org.hibernate.exception.JDBCConnectionException: Cannot open connection

coderanch.com | 3 months ago
  1. 0

    HSQL Driver not working?

    Stack Overflow | 5 years ago | chntgomez
    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused: connect
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 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
  4. 0

    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused

    Stack Overflow | 4 years ago | user1834781
    java.sql.SQLTransientConnectionException: java.net.ConnectException: Connection refused

  1. michallos 1 times, last 1 week ago
  2. treefolk 2 times, last 4 days ago
  3. linxiaolong 18 times, last 1 month ago
  4. Kialandei 1 times, last 1 month ago
  5. DoktorDoener666 41 times, last 3 weeks ago
24 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