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

    Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.

  2. ,
    via Stack Overflow by LittlePanda

    To restart the Selenium Webdriver mock browser in a testcase, first use driver.close() and then reinstantiate the driver.

Solutions on the web

via Stack Overflow by Safiyur
, 1 year ago
via Stack Overflow by xiaocan
, 4 months ago
Connection timed out: connect
via Oracle Community by d5446f5a-da58-4ae8-abcc-dd6b1ea98d39, 11 months ago
Connection timed out: connect
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)	at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)	at java.net.PlainSocketImpl.connect(Unknown Source)	at java.net.SocksSocketImpl.connect(Unknown Source)	at java.net.Socket.connect(Unknown Source)	at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)	at sun.net.NetworkClient.doConnect(Unknown Source)	at sun.net.www.http.HttpClient.openServer(Unknown Source)	at sun.net.www.http.HttpClient.openServer(Unknown Source)	at sun.net.www.protocol.https.HttpsClient.(Unknown Source)	at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)	at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77)	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:981)	at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283)	at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307)	at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384)	at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489)	at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217)	at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:868)	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)	at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)	at undefined.GettingStarted.executeQuery(GettingStarted.java:38)	at undefined.GettingStarted.main(GettingStarted.java:73)