activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Bertram <jbert...@apache.com>
Subject Re: Artemis - Duplicate message detected - message will not be routed.
Date Mon, 16 May 2016 14:28:31 GMT
Running the example (e.g. using 'mvn verify') succeeds so I would recommend you run it yourself
and compare the broker configuration with your own.


Justin

----- Original Message -----
From: "abhijith" <topcoderabhijith@gmail.com>
To: users@activemq.apache.org
Sent: Thursday, May 12, 2016 4:35:44 PM
Subject: Artemis - Duplicate message detected - message will not be routed.

Hi,

I am trying to run transaction failover test which is present below on my
local server cluster 

https://github.com/apache/activemq-artemis/blob/master/examples/features/ha/transaction-failover/src/main/java/org/apache/activemq/artemis/jms/example/TransactionFailoverExample.java

As I read the documentation I do not have to do anything in broker.xml.  But
I am getting an error when it tries to commit second time on the backup.  Am
I missing any configuration here?


Exception in thread "main" javax.jms.JMSException: Duplicate message
detected - message will not be routed. Message
information:ServerMessage[messageID=64,durable=true,userID=c17404b9-188d-11e6-a620-2e54f7ea8757,priority=4,
bodySize=281, timestamp=Thu May 12 18:06:19 EDT 2016,expiration=0,
durable=true,
address=jms.queue.exampleQueue,properties=TypedProperties[_AMQ_DUPL_ID=14630907630599,__AMQ_CID=bdcf1883-188d-11e6-a620-2e54f7ea8757]]@1256539883
	at
org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl.sendBlocking(ChannelImpl.java:376)
	at
org.apache.activemq.artemis.core.protocol.core.impl.ActiveMQSessionContext.simpleCommit(ActiveMQSessionContext.java:301)
	at
org.apache.activemq.artemis.core.client.impl.ClientSessionImpl.commit(ClientSessionImpl.java:509)
	at
org.apache.activemq.artemis.core.client.impl.DelegatingSession.commit(DelegatingSession.java:161)
	at
org.apache.activemq.artemis.jms.client.ActiveMQSession.commit(ActiveMQSession.java:213)
	at TransactionFailoverExample.main(TransactionFailoverExample.java:114)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

Thanks
Abhi




--
View this message in context: http://activemq.2283324.n4.nabble.com/Artemis-Duplicate-message-detected-message-will-not-be-routed-tp4711878.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message