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 compiletimeerror.com by Unknown author, 1 year ago
via compiletimeerror.com by Unknown author, 1 year ago
via Stack Overflow by Batuhan Bardak
, 2 years ago
Connection timed out: connect
via sourceforge.net by Unknown author, 2 years ago
Connection refused
via sourceforge.net by Unknown author, 2 years ago
Connection timed out
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:550)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:189)
at com.sun.mail.iap.Protocol.(Protocol.java:107)
at com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:104)
at javax.mail.Service.connect(Service.java:288)
at javax.mail.Service.connect(Service.java:169)
at org.genpact.demfor.service.TestPage.main(TestPage.java:20)

Users with the same issue

130 times, 10 hours ago
11 times, 1 day ago
26943 times, 2 days ago
4 times, 3 days ago
5 times, 3 days ago

Write tip

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