3 Replies Latest reply on Sep 20, 2002 12:11 AM by Silver Blea

    javax.naming.CommunicationException: Receive timed out.

    Tung Dang Novice

      Hi all!

      I have only one machine that has a network adapter with an ip address. This machine is a standalone machine and is not on network. I installed Jboss 3.0 final on this machine and could succesfully deploy my database source and my bean, but while running the client I got the following error:

      javax.naming.CommunicationException: Receive timed out. Root exception is java.io.InterruptedIOException: Receive timed out at java.net.PlainDatagramSocketImpl.receive(Native Method) at java.net.DatagramSocket.receive(DatagramSocket.java:392) at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:919) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:997) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429) at javax.naming.InitialContext.lookup(InitialContext.java:350) at de.tranboutique.sales.tests.Test.main(Test.java:27)

      I suppose since this machine is a standalone machine and not on network, my client cannot communicate with JBoss. On this machine there are also others applications and I do not have this problem with them.

      How can I solve the problem.

      Regards.

        • 1. Re: javax.naming.CommunicationException: Receive timed out.
          Tung Dang Novice

          I still have this problem, please give me some advice how to run my client in this case.

          Thank you very much.

          • 2. Re: javax.naming.CommunicationException: Receive timed out.
            Silver Blea Newbie

            hello, I am also getting the similiear message. however, i am using a jndi.properties file instead of hard coding the jndi information in my EJBHomeFactory class. (jndi.properties placed in my root directory of my app.
            i'm using forte for java to run and debug my app.


            [EJBHomeFactory] Got initial context = localhost:1099@java:comp/env

            javax.naming.CommunicationException: Receive timed out. Root exception is java.io.InterruptedIOException: Receive timed out
            at java.net.PlainDatagramSocketImpl.receive(Native Method)
            at java.net.DatagramSocket.receive(DatagramSocket.java:392)
            at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:919)
            at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1009)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:436)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
            at javax.naming.InitialContext.lookup(InitialContext.java:350)
            at org.jschedule.util.EJBHomeFactory.lookUpHome(EJBHomeFactory.java:127)
            at org.jschedule.test.TestSessionBeans.main(TestSessionBeans.java:31)

            • 3. Re: javax.naming.CommunicationException: Receive timed out.
              Silver Blea Newbie

              fixed it... in my jndi.properties file i had "java.provider.url" instead of "java.naming.provider.url".

              silver