1 Reply Latest reply on Feb 9, 2007 3:13 PM by Alejandro Guizar

    java.net.NoRouteToHostException - Hello World sample

    Meghana Joglekar Novice

      Hello,

      I am getting following exception while running Hell sample BPEL client. My jndi.properties looks like this -

      java.naming.provider.url=jnp://127.0.0.1:1099
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming.client
      j2ee.clientName=jbpmbpel-client

      The exception stack -

      javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: Exception creating connection to: 10.30.12.124; nested exception is:
      java.net.NoRouteToHostException: No route to host: connect]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(InitialContext.java:351)
      at org.jboss.test.ws.JBossTestDeployer.getServer(JBossTestDeployer.java:56)
      at org.jboss.test.ws.JBossTestDeployer.deploy(JBossTestDeployer.java:43)
      at org.jboss.test.ws.JBossWSTestHelper.deploy(JBossWSTestHelper.java:47)
      at org.jboss.test.ws.JBossWSTestSetup.setUp(JBossWSTestSetup.java:72)
      at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
      at junit.framework.TestResult.runProtected(TestResult.java:124)
      at junit.extensions.TestSetup.run(TestSetup.java:23)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:421)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:912)
      at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:766)
      Caused by: java.rmi.ConnectIOException: Exception creating connection to: 10.30.12.124; nested exception is:
      java.net.NoRouteToHostException: No route to host: connect
      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(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
      ... 12 more
      Caused by: java.net.NoRouteToHostException: No route to host: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:364)
      at java.net.Socket.connect(Socket.java:507)
      at java.net.Socket.connect(Socket.java:457)

      I don't understand why it is trying to connect to 10.30.12.124

      Please let me know.

      Thanks,
      Meghana