0 Replies Latest reply: Jun 5, 2012 5:48 AM by Kim Truong RSS

Broken Pipe exception when a JMS client reconnected to a durable subscription

Kim Truong Newbie

Hi,

 

When my JMS client reconnected to the durable subscription in JBoss, the server reported this exception

 

2012-06-05 10:07:37,961 ERROR [WorkerThread#3[192.168.99.87:4146]]-[org.jboss.remoting.transport.socket.ServerThread] WorkerThread#3[192.168.99.87:4146] failed

java.io.IOException: Broken pipe

    at java.net.SocketOutputStream.socketWrite0(Native Method)

    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)

    at java.net.SocketOutputStream.write(SocketOutputStream.java:136)

    at org.jboss.remoting.transport.socket.TimedOutputStream.write(TimedOutputStream.java:119)

    at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)

    at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

    at java.io.DataOutputStream.flush(DataOutputStream.java:106)

    at org.jboss.jms.wireformat.SessionAcknowledgeDeliveryResponse.write(SessionAcknowledgeDeliveryResponse.java:54)

    at org.jboss.jms.wireformat.JMSWireFormat.write(JMSWireFormat.java:237)

    at org.jboss.remoting.transport.socket.ServerThread.versionedWrite(ServerThread.java:1074)

    at org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:830)

    at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:744)

    at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:586)

    at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:234)

Before the client reconnected, the JMS topic contained 300 messages. When reconnect, the client can receive all 300 messages but the message count was not zero and I must reconnect the client one more time to cleanup it.

 

 

JBoss: 5.1.0 GA

JBM: 1.4.6 GA

 

Kim