java.net.SocketException: java.net.ConnectException: Connection refused

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via opengts by mark_spatial
, 1 year ago
java.net.ConnectException: Connection refused
via Oracle Community by 807598, 1 year ago
java.net.ConnectException: Connection refused: connect
via mysql.com by Unknown author, 1 year ago
java.net.ConnectException: Connection refused
via sourceforge.net by Unknown author, 1 year ago
java.net.ConnectException: Connection refused: connect
via Oracle Community by 843859, 1 year ago
via Oracle Community by 843859, 11 months ago
java.net.ConnectException: Connection timed out: connect
java.net.SocketException: java.net.ConnectException: Connection refused
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:284)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2569)
at com.mysql.jdbc.Connection.(Connection.java:1485)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at org.opengts.dbtools.DBConnection.getConnection(DBConnection.java:294)
at org.opengts.dbtools.DBConnection.createStatement(DBConnection.java:353)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.