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. ,
    Expert tip

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

  2. ,
    Expert tip

    Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.

Solutions on the web

via Stack Overflow by user123
, 2 years ago
Connection refused: connect</p> <pre><code>at java.net.DualStackPlainSocketImpl.connect0(Native Method)
via Stack Overflow by KRam1802
, 2 years ago
Connection timed out: connect</p> <pre><code>at java.net.DualStackPlainSocketImpl.connect0(Native Method)
via nabble.com by Unknown author, 2 years ago
connect: Address is invalid on local machine, or port is not valid on remote machine
via GitHub by rmorrise
, 3 months ago
Connection timed out: connect
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:589)	at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:120)	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:328)	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)	at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:476)	at groovyx.net.http.HTTPBuilder.doRequest(HTTPBuilder.java:441)	at groovyx.net.http.HTTPBuilder.request(HTTPBuilder.java:373)	at com.xetra11.toolbox.components.executor.RestHandlerTest.ExecuteToolTest(RestHandlerTest.groovy:26)