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 Method)
via Stack Overflow by KRam1802
, 2 years ago
Connection timed out: connect</p> <pre><code>at Method)
via 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 Connection refused: connect	at	at	at	at	at	at	at	at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(	at	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(	at org.apache.http.impl.client.DefaultRequestDirector.execute(	at org.apache.http.impl.client.AbstractHttpClient.doExecute(	at org.apache.http.impl.client.CloseableHttpClient.execute(	at org.apache.http.impl.client.CloseableHttpClient.execute(	at	at	at	at com.xetra11.toolbox.components.executor.RestHandlerTest.ExecuteToolTest(RestHandlerTest.groovy:26)