In server.log, I noticed the following DEBUG logging. Why was the Connection reset?
2006-12-12 17:41:21,533 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin ReadTask.run 2006-12-12 17:41:21,533 DEBUG [org.jboss.mq.il.uil2.SocketManager] Begin WriteTask.run 2006-12-12 17:41:21,533 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectOutputStream 2006-12-12 17:41:21,549 DEBUG [org.jboss.mq.il.uil2.SocketManager] Created ObjectInputStream 2006-12-12 17:41:21,565 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Setting up the UILClientIL Connection 2006-12-12 17:41:21,565 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] The UILClientIL Connection is set up 2006-12-12 17:41:21,752 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read(BufferedInputStream.java:201) at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79) at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133) at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2313) at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2380) at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2452) at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2601) at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845) at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317) at java.lang.Thread.run(Thread.java:534) 2006-12-12 17:41:21,752 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run 2006-12-12 17:41:21,768 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
Reason: The JMS client is not closing the connection. The connection is reset by the OS when the VM exits.
}finally{ // I hate to close connections!! // if(connection != null) // connection.close(); }
Comments