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

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

Solutions on the web

via openbravopos by nobody
, 1 year ago
java.net.ConnectException: Connection refused: connect
via coderanch.com by Unknown author, 10 months ago
via coderanch.com by Unknown author, 1 year ago
via Oracle Community by 807596, 1 year ago
java.net.ConnectException: Connection refused: connect
via coderanch.com by Unknown author, 1 year ago
via Oracle Community by 807598, 1 year ago
java.net.ConnectException: Connection refused: connect
java.net.SocketException: java.net.ConnectException: Connection refused: connect
at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156)
at com.mysql.jdbc.MysqlIO.(MysqlIO.java:276)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2641)
at com.mysql.jdbc.Connection.(Connection.java:1531)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(Unknown Source)
at net.adrianromero.tpv.forms.AppViewConnection.connect(Unknown Source)
at net.adrianromero.tpv.forms.JFrmTPV.startTPV(Unknown Source)
at net.adrianromero.tpv.forms.JFrmTPV.access$300(Unknown Source)
at net.adrianromero.tpv.forms.JFrmTPV$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

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

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