"javax.jms.JMSException: Unmatched acknowledge: MessageAck" with MQTT clients

Solution Verified - Updated -

Issue

Running A-MQ with MQTT clients we regularly see the following exception

2014-10-07 08:40:21,312 | WARN  | Q NIO Worker 615 | Service | ivemq.broker.TransportConnection  312 | 
121 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-610394 | Async error occurred: 
javax.jms.JMSException: Unmatched acknowledge: MessageAck {commandId = 0, responseRequired = false, ackType = 2, 
consumerId = ID:ip-10-171-32-203-6014-141267764-1:2:-1:9, firstMessageId = null, 
lastMessageId = ID:ip-10-171-32-203-6014-141267764-1:45:-1:1:7, 
destination = topic://test, transactionId = null, messageCount = 1, poisonCause = null}; 
Expected message count (1) differs from count in dispatched-list (36)

What causes such behavior?

Environment

  • JBoss A-MQ 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content