java.net.ConnectException: Connection refused: connec t


Samebug tips

Check if your MongoDB is available.


10 months ago

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


,
via Stack Overflow by LittlePanda

Solutions on the web

Solution icon of web
Connection refused: connec t

Solution icon of web
Connection refused: connec t

Solution icon of coderanch
via Coderanch by Comal Rajagopalaratnam Muthukumar, 1 month ago
Connection refused: connec t

Solution icon of coderanch
via Coderanch by amitpith chand, 11 months ago
Connection refused: connect

Solution icon of coderanch
via Coderanch by Stevens Miller, 3 months ago
Connection refused: connect

Solution icon of github
Connection refused: connect

Solution icon of github
Connection refused: connect

Solution icon of github
via GitHub by ronysaputro8
, 5 months ago
Connection refused: connect

Solution icon of github
via GitHub by sterlinm
, 3 months ago
Connection refused: connect

Solution icon of github
Connection refused: connect

Stack trace

java.net.ConnectException: Connection refused: connec
 t
	at java.net.DualStackPlainSocketImpl.connect0(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.security.ssl.SSLSocketImpl.<init>(Unknown Source)
	at sun.security.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
	at InstallCert.main(InstallCert.java:94)

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
Once, 1 week ago
Samebug visitor profile picture
Unknown user
2 times, 11 months ago
Once, 1 year ago
1009 more bugmates