File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Status of Msg when remote MQ server crash, clustering MQ servers
Status of msg on remote MQ server crash, clustering MQ servers
log & throw antipattern
Applet not selecting default Client certificate
RMI fails to connect between XP and Linux