ava.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection

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


Check if your MongoDB is available.

via GitHub by rawlingsj

host port isnt set

Solutions on the web

via Oracle Community by 919943, 1 year ago
IO Error: The Network Adapter could not establish the connection
via Stack Overflow by amitkapit
, 1 year ago
via Stack Overflow by Rishi Saraf
, 3 months ago
IO Error: Connection reset by peer, Authentication lapse 59937 ms.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150)

Users with the same issue

112 times, 49 minutes ago
11 times, 22 hours ago
26943 times, 1 day 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.