[jboss-user] [JNDI/Naming/Network] - NamingException:Connection Reset

sanjeeth do-not-reply at jboss.com
Mon Apr 23 06:24:28 EDT 2007


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
Os:Windows
8002 is the port where NamingService is running and its RMI port is 8003

Regards
Sanjeeth S

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039775#4039775

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039775



More information about the jboss-user mailing list