3 Replies Latest reply on Sep 1, 2009 3:06 AM by Gourav Mukherjee

    Hang when trying to lookup connection factory using the Cont

    Gourav Mukherjee Newbie

      My code hangs at the following stack.
      "http-0.0.0.0-8080-1" daemon prio=6 tid=0x2a483000 nid=0x44c runnable [0x2d44e000..0x2d44fc68]
      java.lang.Thread.State: RUNNABLE
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
      at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
      - locked <0x257473f8> (a java.io.BufferedInputStream)
      at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2266)
      at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2279)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2750)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
      at java.io.ObjectInputStream.(ObjectInputStream.java:280)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:255)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:634)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at foo.bar.JmsResourceLocator.jndiLookup(JmsResourceLocator.java:37)

      I am trying to lookup a connection factory using JBoss 4.3/ JBoss Messaging.

      Has some one ever seen something like this?
      What is the expected behaviour when a JNDI name is not present?