3 Replies Latest reply on May 6, 2003 5:20 AM by adrian.brock

    javax.naming.communicationException

    anand_gr

      Hi Friends,

      on running the client i am getting the following exception,

      javax.naming.communicationException receive timeout root cause socketException.

      Please provide me a work around for this.
      Thanx

        • 1. Re: javax.naming.communicationException

          You haven't specified the jndi.properties
          correctly.

          Look in the quick start guide for client configuration.

          Regards,
          Adrian

          • 2. Re: javax.naming.communicationException
            anand_gr

            Hi Friends,

            The "jndi.properties" file has been included in the path. But it is giving the same error, to be precise the following is what we receive after running the client
            {
            client:
            [java] Got context
            [java] javax.naming.CommunicationException: Receive timed out [Root excepti
            on is java.io.InterruptedIOException: Receive timed out]
            [java] javax.naming.CommunicationException: Receive timed out. Root except
            ion is java.io.InterruptedIOException: Receive timed out
            [java] at java.net.PlainDatagramSocketImpl.receive(Native Method)
            [java] at java.net.DatagramSocket.receive(DatagramSocket.java:392)
            [java] at org.jnp.interfaces.NamingContext.discoverServer(NamingContext
            .java:1014)
            [java] at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:
            1134)
            [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:47
            0)
            [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:46
            3)
            [java] at javax.naming.InitialContext.lookup(InitialContext.java:350)
            [java] at helloworld.HelloWorldClient.main(HelloWorldClient.java:17)
            [echo] classpath =D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-j2ee.ja
            r;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-common-client.jar;D:\jboss-3
            .0.7_jakarta-tomcat-4.1.24\server\default\conf;D:\jboss-3.0.7_jakarta-tomcat-4.1
            .24\client\log4j.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jboss-jaas.jar;
            D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jbosssx-client.jar;D:\jboss-3.0.7_ja
            karta-tomcat-4.1.24\client\jboss-client.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24
            \client\jnp-client.jar;D:\jboss-3.0.7_jakarta-tomcat-4.1.24\client\jnet.jar;D:\j
            dk1.3\lib\tools.jar;F:\HelloWorld;D:\JBOSS\jboss-3.0.6\
            server\default\conf;

            BUILD SUCCESSFUL
            }

            please provide me a work around for this
            Thanx

            • 3. Re: javax.naming.communicationException

              It has failed to find the provider you specified
              in jndi.properties.

              Now it is broadcasting for any servers running
              HAJNDI, but this fails as well.

              Regards,
              Adrian