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 Google Groups by Astro, 1 year ago
Connection refused: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
via Google Groups by Eric Gao, 1 year ago
Connection refused > at java.net.PlainSocketImpl.socketConnect(Native Method)
via nabble.com by Unknown author, 2 years ago
Connection refused >>   at java.net.PlainSocketImpl.socketConnect(Native Method)
via Stack Overflow by user3523503
, 2 years ago
Connection refused</p> <pre><code> at java.net.PlainSocketImpl.socketConnect(Native Method)
via GitHub by Priyanka5
, 1 year ago
via GitHub by Yashu5
, 2 years ago
Connection refused
java.net.ConnectException: Connection refused: connect at 
java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at 
java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85) 	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 com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)	at com.mongodb.connection.SocketStream.open(SocketStream.java:58)