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

  1. ,
    Expert tip

    Signals that an error occurred while attempting to connect a socket to a remote address and port. Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down.

Solutions on the web

via GitHub by schorke
, 1 year ago
Exception opening socket
via GitHub by ZNevzz
, 5 months ago
Exception opening socket
via JIRA by Junwei Zhuge, 1 year ago
Exception opening socket
java.net.NoRouteToHostException: No route to host	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)	at java.net.Socket.connect(Socket.java:579)	at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)	at com.mongodb.connection.SocketStream.open(SocketStream.java:58)	at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:114)	at com.mongodb.connection.DefaultServerMonitor$ServerMonitorRunnable.run(DefaultServerMonitor.java:127)	at java.lang.Thread.run(Thread.java:745)