Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6F59A38F8 for ; Wed, 4 May 2011 15:43:08 +0000 (UTC) Received: (qmail 77672 invoked by uid 500); 4 May 2011 15:43:08 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 77643 invoked by uid 500); 4 May 2011 15:43:08 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 77634 invoked by uid 99); 4 May 2011 15:43:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 15:43:07 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 15:43:01 +0000 Received: by qwf6 with SMTP id 6so1105386qwf.2 for ; Wed, 04 May 2011 08:42:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=2OIyBuBls/L/+3yJ8J8Oui8a8ZbUZQSECx1b+75AF5s=; b=ttuvAJguzHVCu4kUVevimoUCo9w8S37pvy8LjzDkoNE9HCLiE/azY4P3t3hRgKPXH9 NSyT0hQEWKrq1JUhsWPeC/zKW2fHKT+BGlvUhWpLf3+QLg95rvIJPc1N+xlWqNyRPU2x 8WTza2XkrB1oaGtSjYbVBg17Rqidf2TlDLGtE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Ru9ABKVzoOC4dy4zJu7kpwGglz+AnvONTExDezzWEdprATo6NvA1DWdvfGTPxgoEfo CufrKHRN4R04KH2640y50MnpLeOBUlYjUpWm0E+uKJUXTxYeXKyHdv/0KuICgsCR8mxu eOajQwfYh+pOIWPJgKjWTa1xJ0nRgxaOf6Dzk= MIME-Version: 1.0 Received: by 10.229.48.74 with SMTP id q10mr928899qcf.141.1304523760963; Wed, 04 May 2011 08:42:40 -0700 (PDT) Received: by 10.229.84.207 with HTTP; Wed, 4 May 2011 08:42:40 -0700 (PDT) In-Reply-To: <1304522653040-3495917.post@n4.nabble.com> References: <1304440233560-3492931.post@n4.nabble.com> <1304522653040-3495917.post@n4.nabble.com> Date: Wed, 4 May 2011 16:42:40 +0100 Message-ID: Subject: Re: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org can you do that again and include TRACE level logging. not sure what is going on, but the poisonAck (ackType=1), that is carries the reason string is being ignored, and it the message is going to the dlq for some other reason. note the last line of your log: 2011-05-04 20:31:17,268 | WARN | ignoring ack MessageAck {commandId = 18, responseRequired = false, ackType = 1, consumerId = ID:Jaskaran-3723-1304520542836-0:1:2:1, firstMessageId = ID:Jaskaran-3723-1304520542836-0:4:1:1:1, lastMessageId = ID:Jaskaran-3723-1304520542836-0:4:1:1:1, destination = queue://Test, transactionId = null, messageCount = 1, poisonCause = null}, for already expired message: Message ID:Jaskaran-3723-1304520542836-0:4:1:1:1 dropped=false acked=false locked=true | org.apache.activemq.broker.region.QueueSubscription | ActiveMQ Transport: tcp:///127.0.0.1:3724 On 4 May 2011 16:24, karen wrote: > Hi Gary > > Thanks alot for replying. > I am using the tcp protocol with the following broker url:- > tcp://localhost:61616 > My application is using the Spring Framework. And i am using the > DefaultMessageListenerContainer for the listeners. > > I have attached a log file that captures the following use case:- > 1) A message is sent to the Test Queue > 2) This message is received by the listerner. This Listener throws a runtime > exception with a simple text string: > throw new RuntimeException("Pls work " + " force a redelivery"); > 3) The message is automatically sent to a DLQ called Failed.Test > > I noticed that the poisonCause is null in the file. > > Please help. > > http://activemq.2283324.n4.nabble.com/file/n3495917/activemq.log > activemq.log > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-5-5-Not-able-to-get-the-DLQ-DELIVERY-FAILURE-CAUSE-PROPERTY-value-tp3492931p3495917.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > -- http://blog.garytully.com http://fusesource.com