2 Replies Latest reply on Jun 23, 2003 6:54 AM by skely

    Guys Please help.. I'm stuck: Peek timed out

    skely

      Guys Please help.. I'm stuck,

      I'm doing a JNDI lookup from a standalone client with the following jndi properties.

      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=jnp://localhost:11099

      I purposefully made JBoss run on 11099 because I have another RMI stand alone application running on default port 1099. I made the change in [JBoss]\conf\jboss-service.xml JNDI configuration.
      11099

      This standalone client has the following files in its classpath:
      [JBOSS-CLIENT]\jboss-common-client
      [JBOSS-CLIENT]\jboss-j2ee
      [JBOSS-CLIENT]\jnp-client


      The following is the exception stack I get on the stand alone client. Please tell me what could be possibly wrong. Thanks in advance.

      [LOG] - getting InitialContext
      [LOG] - got context[javax.naming.InitialContext@d2907dff] from environment [{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.provider.url=193.16.18.192:11099, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces:org.jboss.naming:org.jnp.interfaces:com.sun.enterprise.naming}]
      [LOG] - performing lookup for RequestReceiverBean on JNDI name [ipm/RequestReceiver]
      [ERROR] - javax.naming.CommunicationException: Peek timed out. Root exception is java.io.InterruptedIOException: Peek timed out
      at java.net.PlainDatagramSocketImpl.peek(Native Method)
      at java.net.DatagramSocket.receive(DatagramSocket.java:354)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java, Compiled Code)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java, Compiled Code)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java, Compiled Code)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
      at javax.naming.InitialContext.lookup(InitialContext.java:354)
      at com.pindartech.imageprocessing.manager.requestreceiver.bridge.EJBFileReceiver.receive(EJBFileReceiver.java:81
      )
      at com.pindartech.filetransfer.deliverjob.DeliveryAgent.loopIteration(DeliveryAgent.java:312)
      at com.pindartech.filetransfer.common.ManagedProcess.runLoop(ManagedProcess.java, Compiled Code)
      at com.pindartech.filetransfer.common.FileTransferRunnableImpl.run(FileTransferRunnableImpl.java:84)
      at java.lang.Thread.run(Thread.java:479)

      Environment: jboss-3.2.1_tomcat-4.1.24 on Windows NT, JDK1.4.1_01

        • 1. Re: Guys Please help.. I'm stuck: Peek timed out
          haraldgliebe

          Could you try if it works without the jnp:// in the provider url, like

          java.naming.provider.url=localhost:11099

          Regards,
          Harald

          • 2. Re: Guys Please help.. I'm stuck: Peek timed out
            skely

            I got it working.

            I got this Exception when I tried it without jnp://
            When I did it with jnp:// it just works fine.

            I tried installing the same app in 5 machines with java.naming.provider.url=localhost:11099.
            Out of 5, 3 worked fine and 2 came up with this exception. Then I changed it to java.naming.provider.url=jnp://localhost:11099
            and it works fine in every machine.

            Thanks anyways,
            Regards,
            Skely