File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes JDBC local host connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC local host connection "NoRouteToHostException"" Watch "JDBC local host connection "NoRouteToHostException"" New topic

JDBC local host connection "NoRouteToHostException"

Aye Jackson

Joined: Jan 29, 2008
Posts: 1
Every so often (about 1% of the time), I am seeing a "NoRouteToHostException: No route to host: connect" error on a JDBC connnection. The host is the local host MySQL database which is up and running. Since it is a local host, I wouldn't expect it to go to the network (or DNS server). What would cause this periodic occurence of a connection failure in this situation.
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

"Java Today",
Please check your private messages.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: JDBC local host connection "NoRouteToHostException"
It's not a secret anymore!