Rollback fails with Null Reference
----------------------------------
Key: AMQNET-332
URL: https://issues.apache.org/jira/browse/AMQNET-332
Project: ActiveMQ .Net
Issue Type: Bug
Components: NMS
Affects Versions: 1.5.0
Environment: Windows .NET client
Reporter: Matthew Good
Assignee: Jim Gomes
I call rollback several times and retries occur as expected. At some point,
the rollback fails and I no longer receive the message. I would like to give
information on how to produce this but it just happens randomly. I'm hoping
from the stack trace, you might have an idea of the cause.
There are no errors logged on the server. This error is on the client side:
Message: Unable to rollback transaction.
Stack:SessionExecutor.Dispatch => MessageConsumer.Dispatch =>
MessageListenerDelegate.OnMessage
System.NullReferenceException: Object reference not set to an instance of an
object.
at
Apache.NMS.ActiveMQ.Util.SimplePriorityMessageDispatchChannel.GetPriority(MessageDispatch
message)
at
Apache.NMS.ActiveMQ.Util.SimplePriorityMessageDispatchChannel.GetList(MessageDispatch
md)
at
Apache.NMS.ActiveMQ.Util.SimplePriorityMessageDispatchChannel.EnqueueFirst(MessageDispatch
dispatch)
at Apache.NMS.ActiveMQ.SessionExecutor.ExecuteFirst(MessageDispatch dispatch)
at Apache.NMS.ActiveMQ.Session.Redispatch(MessageDispatchChannel channel)
at Apache.NMS.ActiveMQ.MessageConsumer.Rollback()
at
Apache.NMS.ActiveMQ.MessageConsumer.MessageConsumerSynchronization.AfterRollback()
at Apache.NMS.ActiveMQ.TransactionContext.AfterRollback()
at Apache.NMS.ActiveMQ.TransactionContext.Rollback()
at Apache.NMS.ActiveMQ.Session.DoRollback()
at Apache.NMS.ActiveMQ.Session.Rollback()
at
Ipc.General.ActiveMQ.ActiveMqListenerBase.MessageListenerDelegate.OnMessage(IMessage
message)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira