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

  1. ,

    Make sure your server started correctly and is listening correctly on the correct port.

  2. ,
    Expert tip

    Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Solutions on the web

via GitHub by vinodkc
, 2 years ago
Connection timed out: connect
via Stack Overflow by user1107753
, 2 years ago
Connection refused: connect
via Stack Overflow by Unknown author, 2 years ago
via Stack Overflow by Unknown author, 2 years ago
Connection timed out: connect
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.connect0(Native Method)	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:579)	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)	at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:275)	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)