java.net.ConnectException: Connection refused: connect

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

,
via Stack Overflow by LittlePanda

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

,
Expert tip

spring-data-redis requires redis 2.6+ to work properly.

Solutions on the web

via hadoop-zookeeper-user by Mahadev Konar, 1 year ago
Connection refused * at java.net.PlainSocketImpl.socketConnect(Native Method)
via hadoop-zookeeper-user by Flavio Junqueira , 1 year ago
Connection refused * at java.net.PlainSocketImpl.socketConnect(Native Method)
via hadoop-zookeeper-user by Austin Shoemaker, 1 year ago
Connection refused * at java.net.PlainSocketImpl.socketConnect(Native Method)
via daisy.org by Unknown author, 2 years ago
Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:383)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:245)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:232)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:377)
at java.net.Socket.connect(Socket.java:539)
at java.net.Socket.connect(Socket.java:488)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:232)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1250)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
495 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.