2 Replies Latest reply on Jul 14, 2004 10:30 PM by Elias Ross

    Need help with QueueExample

    freshfarhan Newbie

      I am getting an error while running the simple QueueExample as shown on the page: http://www.jboss.org/wiki/Wiki.jsp?page=QueueExample... It is an exception that is thrown after the line:
      Queue queue = (Queue) ctx.lookup("queue/testQueue");
      is encountered... Here it is:

      log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).

      log4j:WARN Please initialize the log4j system properly.

      javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1117)

      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1194)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:514)

      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)

      at javax.naming.InitialContext.lookup(InitialContext.java:347)

      at temp.Client.main(Client.java:30)

      Caused by: java.net.SocketTimeoutException: Receive timed out

      at java.net.PlainDatagramSocketImpl.receive(Native Method)

      at java.net.DatagramSocket.receive(DatagramSocket.java:711)

      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1087)

      ... 5 more

      Exception in thread "main"

      Kindly help me out if you can. I would be much obliged.