aspose file tools*
The moose likes JDBC and the fly likes NoRouteToHostException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "NoRouteToHostException" Watch "NoRouteToHostException" New topic
Author

NoRouteToHostException

jay vas
Ranch Hand

Joined: Aug 30, 2005
Posts: 407
Hi Guys :

Any idea what a "NoRouteToHostException" is ? Im just trying
to connect to a mysql database locally.

I have tested another schema, on the same database - and dont get an error.

jdbc:mysql://localhost:3306/connjur

I have also tested the code that im running before and know that
it works (Im not a jdbc newbie).

any ideas ?

-j
Scott Selikoff
author
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3716
    
    5

Assuming there database server is up and you have the right port, it might be because of a firewall program.


My Blog: Down Home Country Coding with Scott Selikoff
George Stoianov
Ranch Hand

Joined: Jan 15, 2006
Posts: 94
Try a simple .

No route to host means that your host name could not be resolved or as already suggested if running and on the right port something is blocking the tcp/ip connection.

If that does not work try

that should take the not resolvable name problem out and if it works put it in your code.
George
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoRouteToHostException