java.sql.SQLException

Connection failed: java.net.ConnectException: Connection refused

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5655

  • via Oracle Community by 807554, 11 months ago
    Connection failed: java.net.ConnectException: Connection refused
  • java.net.ConnectException: Connection refused: connect
  • via oracle.com by Unknown author, 1 year ago
    java.net.ConnectException: Connection refused
  • Stack trace

    • java.sql.SQLException: Connection failed: java.net.ConnectException: Connection refused at postgresql.Connection.<init>(Connection.java:190) at postgresql.Driver.connect(Driver.java:87) at java.sql.DriverManager.getConnection(DriverManager.java:91) at java.sql.DriverManager.getConnection(DriverManager.java:134) at example.basic.<init>(basic.java:32) at example.basic.main(basic.java:166)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.