0 Replies Latest reply on Jul 11, 2007 10:35 AM by Umakanth Srinivasan

    NoRouteToHostException on local lookup

    Umakanth Srinivasan Newbie

      I have read and understood that if I specify
      kind="physical" in my tag in build script, even my local lookup's will use JNDI.

      I found some exceptions in my server log, when it was trying to do some local lookups and when my server had actually lost its network connectivity(I unplugged the cable myself).
      I got the below exception

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 192.168.27.126; nested exception is:
      java.net.NoRouteToHostException: No route to host: connect]
      ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
      ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:351)
      ERROR [STDERR] at com.common.license.interfaces.LicenseVerifierUtil.lookupHome(LicenseVerifierUtil.java:20)
      ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      ERROR [STDERR] Caused by: java.rmi.ConnectIOException: Exception creating connection to: 192.168.27.126; nested exception is:
      java.net.NoRouteToHostException: No route to host: connect
      ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
      ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      ERROR [STDERR] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
      ERROR [STDERR] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      ERROR [STDERR] ... 6 more
      ERROR [STDERR] Caused by: java.net.NoRouteToHostException: No route to host: connect
      ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native Method)
      ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      ERROR [STDERR] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      ERROR [STDERR] at java.net.Socket.connect(Socket.java:519)
      ERROR [STDERR] at java.net.Socket.connect(Socket.java:469)
      ERROR [STDERR] at java.net.Socket.(Socket.java:366)
      ERROR [STDERR] at java.net.Socket.(Socket.java:179)
      ERROR [STDERR] at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      ERROR [STDERR] at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
      ERROR [STDERR] at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)

      192.168.27.126 is my machine ip

      Can anyone please help me to understand how to do a safe lookup even when the server has lost its network connectivity. I read about component based lookups and ended with naming exceptions....