java.sql.SQLException: 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 Coderanch by ven jovovich, 1 year ago
IO Error: The Network Adapter could not establish the connection
via Coderanch by ven jovovich, 1 year ago
Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
via oracle.com by Unknown author, 1 year ago
IO Error: The Network Adapter could not establish the connection
via Oracle Community by 8a639176-49ef-4646-8606-468629945998, 1 year ago
The Network Adapter could not establish the connection
via daniweb.com by Unknown author, 2 years ago
The Network Adapter could not establish the connection
via Oracle Community by 937637, 1 year ago
The Network Adapter could not establish the connection
java.sql.SQLException: IO Error: The Network Adapter could not establish the connection
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:432)
at java.net.Socket.connect(Socket.java:520)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150)
at oracle.net.nt.ConnOption.connect(ConnOption.java:133)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:370)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:434)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:687)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:247)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1102)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:320)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:546)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:236)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at undefined.Con.main(Con.java:6)

Users with the same issue

3 times, 3 days ago
12 times, 3 days ago
462 times, 4 days ago
4 times, 6 days ago
1340 times, 6 days ago

Write tip

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