java.net.SocketException

java.net.ConnectException: Connection refused: connect


Solutions on the web7184

Solution icon of googlegroups
via Google Groups by Jorge Ortiz, 1 year ago
java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 807598, 9 months ago
java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 843859, 1 year ago
java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 843859, 8 months ago
java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 807596, 1 year ago
java.net.ConnectException: Connection refused: connect

Solution icon of stackoverflow
via Stack Overflow by typemismatch
, 1 year ago
java.net.ConnectException: Connection refused: connect

Solution icon of web
via devshed.com by Unknown author, 1 year ago
java.net.ConnectException: Connection refused: connect

Solution icon of web
java.net.ConnectException: Connection refused: connect

Solution icon of coderanch
via Coderanch by Migrated From Jforum.net, 7 months ago
java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 843859, 8 months ago
java.net.ConnectException: Connection refused: connect

Stack trace

  • java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:151) at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765) at com.mysql.jdbc.Connection.<init>(Connection.java:430) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:268) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at test.DBConnection.getConnection(DBConnection.java:56) at test.Test.main(Test.java:14)

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

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