activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snicoll <stephane.nic...@gmail.com>
Subject Re: No redelivery after rollback on a Topic
Date Wed, 02 Jun 2010 06:42:48 GMT

Replying to self.

The problem is related to the cache mode of the
DefaultMessageListenerContainer. I have the following extra facts:

* With mode = CONSUMER, I just don't get any message at all
* With mode = SESSION, The rollback works with the configured number of
redeliveries but the message does not get to the DLQ. I get this instead:

 WARN | Async error occurred: javax.jms.JMSException: Invalid
acknowledgment: MessageAck {commandId = 17, responseRequired = false,
ackType = 3, consumerId = ID:llnp186-2141-1275460231570-0:12:1:1,
firstMessageId = ID:llnp186-2141-1275460231570-0:16:2:1:1, lastMessageId =
ID:llnp186-2141-1275460231570-0:16:2:1:1, destination =
topic://topic/topicA, transactionId = null, messageCount = 1}
javax.jms.JMSException: Invalid acknowledgment: MessageAck {commandId = 17,
responseRequired = false, ackType = 3, consumerId =
ID:llnp186-2141-1275460231570-0:12:1:1, firstMessageId =
ID:llnp186-2141-1275460231570-0:16:2:1:1, lastMessageId =
ID:llnp186-2141-1275460231570-0:16:2:1:1, destination =
topic://topic/topicA, transactionId = null, messageCount = 1}
        at
org.apache.activemq.broker.region.TopicSubscription.acknowledge(TopicSubscription.java:244)
        at
org.apache.activemq.broker.region.AbstractRegion.acknowledge(AbstractRegion.java:373)
        at
org.apache.activemq.broker.region.RegionBroker.acknowledge(RegionBroker.java:470)
        at
org.apache.activemq.broker.TransactionBroker.acknowledge(TransactionBroker.java:194)
        at
org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74)
        at
org.apache.activemq.broker.BrokerFilter.acknowledge(BrokerFilter.java:74)
        at
org.apache.activemq.broker.MutableBrokerFilter.acknowledge(MutableBrokerFilter.java:85)
        at
org.apache.activemq.broker.TransportConnection.processMessageAck(TransportConnection.java:452)
        at org.apache.activemq.command.MessageAck.visit(MessageAck.java:205)
        at
org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:300)
        at
org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
        at
org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at
org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:113)
        at
org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:216)
        at
org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:204)
        at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:186)
        at java.lang.Thread.run(Thread.java:595)



Which btw is the exact same message as [1]

Any idea,
S.

[1] http://old.nabble.com/Topic---DLQ-td28694454.html
-- 
View this message in context: http://old.nabble.com/No-redelivery-after-rollback-on-a-Topic-tp28746372p28750698.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message