activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "MZ (JIRA)" <>
Subject [jira] Created: (AMQ-1994) NullPointerException in ActiveMQMessageConsumer#acknowledge(ActiveMQMessage) on acknowledgment.
Date Mon, 03 Nov 2008 13:31:05 GMT
NullPointerException in ActiveMQMessageConsumer#acknowledge(ActiveMQMessage) on acknowledgment.


                 Key: AMQ-1994
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMS client
    Affects Versions: 5.1.0
         Environment: Windows Terminal Server 2003 / Intel x86 based
            Reporter: MZ

Hi Folks!

We have a problem on acknowledge message with an ActiveMQ 5 Server. We are using AqtiveMQ
for multi-threaded message processing. On a few Threads we continuously receiving messages,
add them to a BlockingQueue and  processing them with a another thread reading on the Queue.
After processing is done, the message is acknowledged. We using durable consumers to make
sure that we won't miss a message on a failure.

We sometimes (one time in 2-3 weeks) receive the following exception on acknowledging a message
(decision dept is name of the RCP application):

2008-10-28 08:20:21,215 WARN  [main] org.csstudio.nams.application.department.decision.DecisionDepartmentActivator:
unable to acknowledge message: Alarmnachricht: JMS-Message: ActiveMQMapMessage {commandId
= 401366, responseRequired = true, messageId = ID:krynfsb-52783-1224106527774-1:0:1:133789:1,
originalDestination = null, originalTransactionId = null, producerId = ID:krynfsb-52783-1224106527774-1:0:1:133789,
destination = topic://ALARM, transactionId = null, expiration = 1225182021162, timestamp =
1225178421162, arrival = 0, correlationId = null, replyTo = null, persistent = true, type
= null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId = null, compressed
= false, userID = null, content = org.apache.activemq.util.ByteSequence@10c7e04, marshalledProperties
= null, dataStructure = null, redeliveryCounter = 0, size = 0, properties = null, readOnlyProperties
= true, readOnlyBody = true, droppable = false} ActiveMQMapMessage{ theTable = { ... } }
org.csstudio.nams.service.messaging.exceptions.MessagingException: acknowledge failed
	at org.csstudio.nams.service.messaging.declaration.DefaultNAMSMessage.acknowledge(
	at org.csstudio.nams.application.department.decision.DecisionDepartmentActivator.receiveMessagesUntilApplicationQuits(
	at org.csstudio.nams.application.department.decision.DecisionDepartmentActivator.performNormalWork(
	at org.csstudio.nams.application.department.decision.DecisionDepartmentActivator.start(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.eclipse.equinox.launcher.Main.invokeFramework(
	at org.eclipse.equinox.launcher.Main.basicRun(
Caused by: javax.jms.JMSException: java.lang.NullPointerException
	at org.apache.activemq.util.JMSExceptionSupport.create(
	at org.apache.activemq.command.ActiveMQMessage.acknowledge(
	at org.csstudio.nams.service.messaging.impl.jms.JMSConsumer$1.acknowledge(
	at org.csstudio.nams.service.messaging.declaration.DefaultNAMSMessage.acknowledge(
	... 15 more
Caused by: java.lang.NullPointerException
	at java.util.LinkedList.clear(Unknown Source)
	at org.apache.activemq.ActiveMQMessageConsumer.acknowledge(
	at org.apache.activemq.ActiveMQSession.acknowledge(
	at org.apache.activemq.ActiveMQMessageConsumer$1.execute(
	at org.apache.activemq.command.ActiveMQMessage.acknowledge(
	... 17 more

Up from this time, we always get the following trace on receiving:

2008-10-28 08:20:37,808 FATAL [JMSConsumer#WorkThread-1] org.csstudio.nams.service.messaging.impl.jms.JMSConsumer$WorkThread:
Unexpected exception during recieving message from jms
	at java.util.LinkedList.addBefore(Unknown Source)
	at java.util.LinkedList.addFirst(Unknown Source)
	at org.apache.activemq.ActiveMQMessageConsumer.beforeMessageIsConsumed(
	at org.apache.activemq.ActiveMQMessageConsumer.receive(
	at org.csstudio.nams.service.messaging.impl.jms.JMSConsumer$

Do you know this problem? Do you have some ideas what happens?

Gösta and Matthias

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message