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


Solutions on the web128

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

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

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

Solution icon of coderanch
via Coderanch by Anjana Chowdary, 10 months ago
java.net.ConnectException: Connection refused: connect

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

Solution icon of sourceforge
via openbravopos by eclisource
, 1 year ago
java.net.ConnectException: Connection refused: connect

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

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

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

Solution icon of coderanch
via Coderanch by Migrated From Jforum.net, 9 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, 2 years ago