You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Robert Dare <ro...@gmail.com> on 2012/09/21 15:24:35 UTC

Message Lost at Broker

Good morning,

I am trying to isolate an issue where messages appear to get lost to
ActiveMQ.  When the system gets into this state, some messages never arrive
at ActiveMQ.  I am monitoring the application server (tomcat 7) log file,
activemq log file and the ActiveMQ admin console (enqueued & dequeued
counts).

I see this message in the tomcat7 log, which indicates the message was
produced and sent:

DEBUG http-apr-127.0.0.1-8080-exec-8 org.apache.camel.impl.ProducerCache -
>>>> Endpoint[activemq://entryqueue] Exchange[Message:
{...my-message-body...}]
DEBUG http-apr-127.0.0.1-8080-exec-8
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate -
Executing callback on JMS Session: ActiveMQSession
{id=ID:dev10-chi-web01-38802-1347978504391-0:1:23764,started=true}
DEBUG http-apr-127.0.0.1-8080-exec-8
org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate - Sending
JMS message to: queue://entryqueue with message: ActiveMQObjectMessage
{commandId = 0, responseRequired = false, messageId = null,
originalDestination = null, originalTransactionId = null, producerId =
null, destination = null, transactionId = null, expiration = 0, timestamp =
0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId = null,
replyTo = null, persistent = false, type = null, priority = 0, groupID =
null, groupSequence = 0, targetConsumerId = null, compressed = false,
userID = null, content = org.apache.activemq.util.ByteSequence@60d695ee,
marshalledProperties = null, dataStructure = null, redeliveryCounter = 0,
size = 0, properties =
{breadcrumbId=ID-dev10-chi-web01-10466-1347978494444-0-12,
eventType=com.my.custom.CustomEvent}, readOnlyProperties = false,
readOnlyBody = false, droppable = false}
DEBUG http-apr-127.0.0.1-8080-exec-8 org.apache.activemq.TransactionContext
- Begin:TX:ID:dev10-chi-web01-38802-1347978504391-0:1:26
DEBUG http-apr-127.0.0.1-8080-exec-8 org.apache.activemq.TransactionContext
- Commit: TX:ID:dev10-chi-web01-38802-1347978504391-0:1:26 syncCount: 0

The log seems to indicate that the message was produced and that the
transaction committed successfully.

How can I further debug this issue?

Thank you in advance.

RE: Message Lost at Broker

Posted by GLIMMERVEEN Arnoud <ar...@nl.thalesgroup.com>.
Hi Robert,

Have you checked your Dead Letter Queue (DLQ) in ActiveMQ? Your lost messages may have ended up there!

Regards,

Arnoud

> -----Original Message-----
> From: Robert Dare [mailto:robert.dare@gmail.com]
> Sent: Friday, 21 September, 2012 15:25
> To: users@camel.apache.org
> Subject: Message Lost at Broker
> 
> Good morning,
> 
> I am trying to isolate an issue where messages appear to get lost to
> ActiveMQ.  When the system gets into this state, some messages never
> arrive at ActiveMQ.  I am monitoring the application server (tomcat 7) log file,
> activemq log file and the ActiveMQ admin console (enqueued & dequeued
> counts).
> 
> I see this message in the tomcat7 log, which indicates the message was
> produced and sent:
> 
> DEBUG http-apr-127.0.0.1-8080-exec-8
> org.apache.camel.impl.ProducerCache -
> >>>> Endpoint[activemq://entryqueue] Exchange[Message:
> {...my-message-body...}]
> DEBUG http-apr-127.0.0.1-8080-exec-8
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate -
> Executing callback on JMS Session: ActiveMQSession {id=ID:dev10-chi-
> web01-38802-1347978504391-0:1:23764,started=true}
> DEBUG http-apr-127.0.0.1-8080-exec-8
> org.apache.camel.component.jms.JmsConfiguration$CamelJmsTemplate -
> Sending JMS message to: queue://entryqueue with message:
> ActiveMQObjectMessage {commandId = 0, responseRequired = false,
> messageId = null, originalDestination = null, originalTransactionId = null,
> producerId = null, destination = null, transactionId = null, expiration = 0,
> timestamp = 0, arrival = 0, brokerInTime = 0, brokerOutTime = 0, correlationId
> = null, replyTo = null, persistent = false, type = null, priority = 0, groupID =
> null, groupSequence = 0, targetConsumerId = null, compressed = false,
> userID = null, content = org.apache.activemq.util.ByteSequence@60d695ee,
> marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, size
> = 0, properties = {breadcrumbId=ID-dev10-chi-web01-10466-1347978494444-
> 0-12,
> eventType=com.my.custom.CustomEvent}, readOnlyProperties = false,
> readOnlyBody = false, droppable = false} DEBUG http-apr-127.0.0.1-8080-
> exec-8 org.apache.activemq.TransactionContext
> - Begin:TX:ID:dev10-chi-web01-38802-1347978504391-0:1:26
> DEBUG http-apr-127.0.0.1-8080-exec-8
> org.apache.activemq.TransactionContext
> - Commit: TX:ID:dev10-chi-web01-38802-1347978504391-0:1:26 syncCount: 0
> 
> The log seems to indicate that the message was produced and that the
> transaction committed successfully.
> 
> How can I further debug this issue?
> 
> Thank you in advance.