Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoRouteToHostException

 
RameSan Rahul
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 284
Debian Firefox Browser Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic