2 Replies Latest reply on Nov 15, 2005 11:47 PM by Prashant n

    java.net.NoRouteToHostException: Operation timed out

    Prashant n Newbie

      hi

      I am encountering the following error in jboss whose internal ip 172.16.1.1 and external ip is 59.145.145.71 ie, this is a NAT. When i try to connect to 59.145.145.71:1099 port i get the following error. I am running Win2K Advanced Server behind PIX 515e Firewall

      I have followed the wiki guide of jboss behind firewall and have opened all the ports mentioned there in my pix firewall and also specified the arguments in run.bat

      -Djava.rmi.server.hostname=59.145.145.71
      -Djava.rmi.server.useLocalHostname=false


      the part of the run.bat which says above is

      rem Setup JBoss specific properties
      set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -Djava.rmi.server.hostname=59.145.145.71 -Djava.rmi.server.useLocalHostname=false -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8080
      set JBOSS_HOME=%DIRNAME%\..


      i have removed the rmi-il-service.xml & snmp-adaptor.sar also as per the wiki. and the client code reflects this as
      jnp://59.145.145.71:1099


      the full error output is

      [15-11 16:34:04,609] [ INFO] [Main Thread] [(PropertiesFileReader.java)] - Modem plugin properties file successfully read
      [15-11 16:34:04,656] [ INFO] [Main Thread] [(ModemPlugin.java)] - Properties file successfully read
      [15-11 16:34:04,656] [ INFO] [Main Thread] [(ModemPlugin.java)] - Starting JmsSenderPool
      [15-11 16:34:58,344] [ WARN] [Main Thread] [(ServiceLocator.java)] - ***Any exception stack trace (possibly the javax.naming.CommunicationException) printed above is printed by JNDI connection factory used, which cannot be masked. The exception is handled properly
      [15-11 16:34:58,344] [ERROR] [Main Thread] [(JmsSender.java)] - Failed to lookup JMS Queue
      [15-11 16:34:58,344] [ERROR] [Main Thread] [(JmsSender.java)] - class com.mobiapps.mtrak.modemplugin.JmsSender
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 172.16.1.71; nested exception is:
      java.net.NoRouteToHostException: Operation timed out]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at com.mobiapps.mtrak.modemplugin.ServiceLocator.lookup(ServiceLocator.java:124)
      at com.mobiapps.mtrak.modemplugin.JmsSender.getReferences(JmsSender.java:77)
      at com.mobiapps.mtrak.modemplugin.JmsSender.<init>(JmsSender.java:56)
      at com.mobiapps.mtrak.modemplugin.JmsSenderPool.<init>(JmsSenderPool.java:40)
      at com.mobiapps.mtrak.modemplugin.JmsSenderPool.getInstance(JmsSenderPool.java:51)
      at com.mobiapps.mtrak.modemplugin.ModemPlugin.main(ModemPlugin.java:97)
      Caused by: java.rmi.ConnectIOException: Exception creating connection to: 172.16.1.71; nested exception is:
      java.net.NoRouteToHostException: Operation timed out
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
      at org.jnp.server.NamingServer_Stub.lookup(Ljavax.naming.Name;)Ljava.lang.Object;(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      ... 8 more
      Caused by: java.net.NoRouteToHostException: Operation timed out
      at jrockit.net.SocketNativeIO.connect(Ljava.io.FileDescriptor;Ljava.net.InetAddress;III)I(Unknown Source)
      at java.net.AbstractSocketImpl.doConnect(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.doConnect(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.connect(Ljava.net.SocketAddress;I)V(Unknown Source)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.<init>(Socket.java:365)
      at java.net.Socket.<init>(Socket.java:178)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
      ... 13 more
      [15-11 16:35:26,125] [ WARN] [Main Thread] [(ServiceLocator.java)] - ***Any exception stack trace (possibly the javax.naming.CommunicationException) printed above is printed by JNDI connection factory used, which cannot be masked. The exception is handled properly
      [15-11 16:35:26,125] [ERROR] [Main Thread] [(JmsSender.java)] - Failed to lookup JMS Queue
      [15-11 16:35:26,125] [ERROR] [Main Thread] [(JmsSender.java)] - class com.mobiapps.mtrak.modemplugin.JmsSender
      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 172.16.1.71; nested exception is:
      java.net.NoRouteToHostException: Operation timed out]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:707)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at com.mobiapps.mtrak.modemplugin.ServiceLocator.lookup(ServiceLocator.java:124)
      at com.mobiapps.mtrak.modemplugin.JmsSender.getReferences(JmsSender.java:77)
      at com.mobiapps.mtrak.modemplugin.JmsSender.<init>(JmsSender.java:56)
      at com.mobiapps.mtrak.modemplugin.JmsSenderPool.<init>(JmsSenderPool.java:40)
      at com.mobiapps.mtrak.modemplugin.JmsSenderPool.getInstance(JmsSenderPool.java:51)
      at com.mobiapps.mtrak.modemplugin.ModemPlugin.main(ModemPlugin.java:97)
      Caused by: java.rmi.ConnectIOException: Exception creating connection to: 172.16.1.71; nested exception is:
      java.net.NoRouteToHostException: Operation timed out
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:587)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
      at org.jnp.server.NamingServer_Stub.lookup(Ljavax.naming.Name;)Ljava.lang.Object;(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
      ... 8 more
      Caused by: java.net.NoRouteToHostException: Operation timed out
      at jrockit.net.SocketNativeIO.connect(Ljava.io.FileDescriptor;Ljava.net.InetAddress;III)I(Unknown Source)
      at java.net.AbstractSocketImpl.doConnect(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.doConnect(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Ljava.net.InetAddress;II)V(Unknown Source)
      at java.net.PlainSocketImpl.connect(Ljava.net.SocketAddress;I)V(Unknown Source)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)
      at java.net.Socket.<init>(Socket.java:365)
      at java.net.Socket.<init>(Socket.java:178)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
      ... 13 more



      please guide me how to proceed

      regards
      shann