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

NoRouteToHostException

RameSan Rahul
Greenhorn

Joined: Jul 21, 2005
Posts: 19
Hi,

In my Application both Server & client are running in the same box. I am using RMI server. W2k prof OS.

Intially my client is starting smoothly. At some instant it throws

'java.rmi.ConnectIOException: Exception creating connection to: 192.168.0.1; nested exception is:
java.net.NoRouteToHostException: No route to host: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)'

and the client application hangs.

This is also not consistent. It happens in a particular box only.

If i try piniging it responds.

From another reference, i came to know that it also happens if the protocol is disabled. How can it get disabled automatically?

Or Is there may be any issue related to OS installation or Network Configuration.

Can anyone help me?
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

Hello RameSan.
in the API:
Typically, the remote host cannot be reached because of an intervening firewall, or if an intermediate router is down.

Review your network environment.
If you try 127.0.0.1 do you experience the same?
[ September 10, 2006: Message edited by: Oricio Ocle ]

SCJP, OCMJD, OCMJEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NoRouteToHostException