Java.net.NoRouteToHostException:No Route to host

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.