Null Pointer exception on receiving message from a subscription

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Null Pointer exception on receiving message from a subscription

mpoornima
Got this exception when receiving message from a topic's subscription queue. What can be the reason behind this?

Caused by: com.swiftmq.swiftlet.queue.QueueException: java.lang.NullPointerException
        at com.swiftmq.tools.requestreply.ReplyNE.createException(Unknown Source)
        at com.swiftmq.tools.requestreply.ReplyNE.readContent(Unknown Source)
        at com.swiftmq.jms.smqp.v750.CommitReply.readContent(Unknown Source)
        at com.swiftmq.tools.dump.Dumpalizer.construct(Unknown Source)
        at com.swiftmq.jms.v750.ConnectionImpl.dataAvailable(Unknown Source)
        at com.swiftmq.net.client.BlockingConnection.chunkCompleted(Unknown Source)
        at com.swiftmq.net.protocol.smqp.SMQPInputHandler.setBytesWritten(Unknown Source)
        at com.swiftmq.net.protocol.smqp.SMQPInputHandler.setBytesWritten(Unknown Source)
        at com.swiftmq.net.client.BlockingConnection.run(Unknown Source)
Reply | Threaded
Open this post in threaded view
|

Re: Null Pointer exception on receiving message from a subscription

IIT Software
Administrator
This may happen in a very rare case in a request/reply scenario:

1) Replier sends a reply and commits
2) Requestor receives the reply and deletes the temp queue

The delete temp queue op is faster than the commit is finished and this exception occurs. This is definitely a flaw that we are working on to solve.
Reply | Threaded
Open this post in threaded view
|

Re: Null Pointer exception on receiving message from a subscription

Bali
This is happening very frequently for us. What could be the cause for it apart from the one you mentioned.
We are using SwiftMQ 9.2.1