java.net.ConnectException

Connection refused: connect


Samebug tips9

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

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web13907

Solution icon of pentaho
via Pentaho BI Platform Tracking by Golda David, 1 year ago
Connection refused: connect Connection refused: connect

Solution icon of googlegroups
via Google Groups by Stephen Neal, 1 year ago
Connection refused: connect java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 431393, 9 months ago
Connection refused: connect java.net.ConnectException: Connection refused: connect

Solution icon of pentaho
via Pentaho BI Platform Tracking by Golda David, 1 year ago
Connection refused: connect Connection refused: connect

Solution icon of coderanch
via Coderanch by Frank Malaga, 8 months ago
Connection refused: connect

Solution icon of coderanch
via Coderanch by Steve Jerome, 8 months ago
Connection refused: connect

Solution icon of coderanch
via Coderanch by Reema Patel, 8 months ago
Connection refused: connect

Solution icon of coderanch
via Coderanch by Dhana Sen, 8 months ago
Connection refused: connect

Solution icon of coderanch
Connection refused: connect

Solution icon of coderanch
via Coderanch by gaurav abbi, 8 months ago
Connection refused: connect

Stack trace

  • java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.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.<init>(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.plainConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at java.net.HttpURLConnection.getResponseCode(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source) at HttpsClient.print_https_cert(HttpsClient.java:45) at HttpsClient.testIt(HttpsClient.java:26) at HttpsClient.main(HttpsClient.java:13)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
491 more bugmates