0 Replies Latest reply on Apr 23, 2007 6:24 AM by sanjeeth s

    NamingException:Connection Reset

    sanjeeth s Newbie

      Hello All,
      When i try to do a lookup for a Queue/Topic it gives be the following Naming Error

      javax.naming.CommunicationException: Failed to retrieve stub from server D1FBMCS:8002 [Root exception is java.net.SocketException: Connection reset]
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:263)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
      at javax.naming.InitialContext.lookup(Unknown Source)

      Caused by: java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(Unknown Source)
      at java.io.BufferedInputStream.fill(Unknown Source)
      at java.io.BufferedInputStream.read1(Unknown Source)
      at java.io.BufferedInputStream.read(Unknown Source)
      at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
      at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Source)
      at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
      at java.io.ObjectInputStream.(Unknown Source)
      at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:250)

      The Main cause of this problem is because of the Connection getting reset. Also This problem does not happen frequently. When i run my application for some long period of time only then this problem is happening and also it happens only few times.

      AnyBody know about this problem and when and why this connection will get reset.

      Also can the problem be because of the local Port which was in the TIME_WAIT state was used for creation of sockets.

      I am using JBoss:JBoss 4.0.4 GA
      8002 is the port where NamingService is running and its RMI port is 8003

      Sanjeeth S