I'm having the following problem. If I deliberately break the connection to
the router while calling  QueueSession::createReceiver() the call never
returns.

Step 1) This exception appears

        java.lang.NullPointerException
        at com.swiftmq.jms.SessionImpl.cancel(SessionImpl.java:495)
        at com.swiftmq.jms.ConnectionImpl.cancel(ConnectionImpl.java:595)
        at com.swiftmq.jms.ConnectionImpl.run(ConnectionImpl.java:455)
        at java.lang.Thread.run(Thread.java:484)

Step 2) Then this exception appears

        java.net.SocketException: Connection reset by peer: socket write
error
        at java.net.SocketOutputStream.socketWrite(Native Method)
        at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
        at
com.swiftmq.tools.util.DynamicBufferedOutputStream.flushBuffer(DynamicBuffer
edOutputStream.java:46)
        at
com.swiftmq.tools.util.DynamicBufferedOutputStream.flush(DynamicBufferedOutp
utStream.java:112)
        at java.io.DataOutputStream.flush(DataOutputStream.java:104)
        at
com.swiftmq.jms.ConnectionImpl.writeObject(ConnectionImpl.java:357)
        at
com.swiftmq.jms.ConnectionImpl.performRequest(ConnectionImpl.java:373)
        at
com.swiftmq.jms.ConnectionImpl.performTimeAction(ConnectionImpl.java:129)
        at
com.swiftmq.tools.timer.DelayTimer.fireTimerEvent(DelayTimer.java:84)
        at com.swiftmq.tools.timer.DelayTimer.run(DelayTimer.java:109)

Step 3) The QueueConnection exception listener onException() then  receives

javax.jms.JMSException: java.net.SocketException: Connection reset by peer:
socket write error
        at
com.swiftmq.jms.ConnectionImpl.performRequest(ConnectionImpl.java:381)
        at
com.swiftmq.jms.ConnectionImpl.performTimeAction(ConnectionImpl.java:129)
        at
com.swiftmq.tools.timer.DelayTimer.fireTimerEvent(DelayTimer.java:84)
        at com.swiftmq.tools.timer.DelayTimer.run(DelayTimer.java:109)

Step 4) Steps 2) and 3) keep repeating until I kill the client application.

BTW. I'm using Swift 2.1.0

Has anyone else seen this ? Any help appreciated.

Carlos.


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to