Error message:
java.net.NoRouteToHostException:
No
Route
to
Host
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:367)
At Java.net.Socket.connect (socket.java:524)
At Java.net.Socket.connect (socket.java:474)
At Java.net.Socket. (socket.java:371)
At Java.net.Socket. (socket.java:184)
At Org.postgresql.core.PGStream. (pgstream.java:62)
At Org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl (connectionfactoryimpl.java:76)
problem Descriptions and solutions:
Online for many reasons, the ultimate reason is not connected to the database caused.
1. View Firewall
2. Whether the Tomcat port is shielded
3, check the connection database file, the connection address is correct, especially to pay attention to the IP
Special reason: Here, the database device has 2, all have a real IP address, there is a device to do the load, also have IP, connect the data, connect the load device IP. The problem is reported because the components in the load device cannot provide services.
Java.net.NoRouteToHostException:No route to host