Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 67220 invoked from network); 20 May 2008 09:25:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 May 2008 09:25:09 -0000 Received: (qmail 22180 invoked by uid 500); 20 May 2008 09:25:10 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 22076 invoked by uid 500); 20 May 2008 09:25:10 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 22065 invoked by uid 99); 20 May 2008 09:25:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 02:25:10 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 May 2008 09:24:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JyO5B-00050s-I2 for camel-user@activemq.apache.org; Tue, 20 May 2008 02:24:33 -0700 Message-ID: <17336463.post@talk.nabble.com> Date: Tue, 20 May 2008 02:24:33 -0700 (PDT) From: pratibhaG To: camel-user@activemq.apache.org Subject: Re: error handling In-Reply-To: <48329432.4070600@skynet.be> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: pratibha.ghogale@in2m.com References: <17333360.post@talk.nabble.com> <48327591.60103@skynet.be> <17335947.post@talk.nabble.com> <48329432.4070600@skynet.be> X-Virus-Checked: Checked by ClamAV on apache.org Thanks a lllllllllllllllllllllllot Gert, You are great! You have solved a problem I was facing last two days. When I put from(SERVICE_IN).errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(2)).to(BEAN_IN); instead of errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(2)); from(SERVICE_IN).to(BEAN_IN); it worked. Is there a difference between these two configurations? as per my understanding these are same. Thanks once again, -Pratibha Gert Vanthienen wrote: > > L.S., > > Not sure why it doesn't use your own ErrorHandler specification -- the > one that retries 6 times is the Camel default one. > Could you try specifying your error handler inside the route itself > instead to see if that works? Something like... > > > from(SERVICE_IN).errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(2)).to(BEAN_IN); > > Regards, > > Gert > > > > > pratibhaG wrote: >> Thanks a lot for your reply, >> I know this is repetition as I have already put it on servicemix mailing >> list but still I am attaching my code. Your answer helped me a lot but >> still I have some doubts. I have also attached the servicemix logs that I >> get. >> >> My questions: >> >> 1.why my messages are not going to queue tutorial.camel.queue13 >> >> 2.Even when I put maximumRedeliveries(2) it tries to rediliver for 6 >> times. >> >> Could you please help me to know this? Am I missing something? >> my jms Xbean.xml >> > xmlns:esb="http://esbinaction.com/errorhandling"> >> >> > endpoint="errorEndpoint" >> role="consumer" >> destinationStyle="queue" >> jmsProviderDestinationName="tutorial.camel.queuedef" >> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" >> connectionFactory="#connectionFactory"/> >> >> > endpoint="errorStorageEndpoint" >> role="provider" >> destinationStyle="queue" >> jmsProviderDestinationName="tutorial.camel.queue13" >> defaultMep="http://www.w3.org/2004/08/wsdl/in-only" >> connectionFactory="#connectionFactory"/> >> >> > class="org.apache.activemq.ActiveMQConnectionFactory"> >> >> >> >> >> >> >> >> my camelcontext.xml >> >> >> >> > xmlns="http://activemq.apache.org/camel/schema/spring"> >> errorhandling.camel >> >> >> >> >> >> My error Handler: >> >> package errorhandling.camel; >> >> import org.apache.camel.builder.RouteBuilder; >> >> public class CamelErrorHandler extends RouteBuilder { >> >> private final static String NAMESPACE = >> "http://esbinaction.com/errorhandling"; >> private final static String SERVICE_IN = "jbi:service:" + >> NAMESPACE + "/errorHandlerDSL"; >> private final static String BEAN_IN = "jbi:service:" + >> NAMESPACE + "/errorComponent"; >> private final static String ERROR_IN = "jbi:service:" + >> NAMESPACE + "/errorStorageService"; >> >> public void configure() { >> errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(2)); >> from(SERVICE_IN).to(BEAN_IN); >> } >> >> } >> >> >> my beans xbean.xml >> >> >> > xmlns:esb="http://esbinaction.com/errorhandling"> >> >> > endpoint="errorEndpoint" >> bean="#errorBean"/> >> >> >> >> >> >> >> my bean: >> >> package errorhandling; >> >> import javax.annotation.Resource; >> import javax.jbi.messaging.DeliveryChannel; >> import javax.jbi.messaging.ExchangeStatus; >> import javax.jbi.messaging.MessageExchange; >> import javax.jbi.messaging.MessagingException; >> >> import org.apache.servicemix.MessageExchangeListener; >> >> public class ErrorComponent implements MessageExchangeListener { >> >> @Resource >> private DeliveryChannel channel; >> >> public void onMessageExchange(MessageExchange exchange) throws >> MessagingException { >> //String test = null; >> //test.equals("test"); >> exchange.setError(new NullPointerException("myexception")); >> exchange.setStatus(ExchangeStatus.ERROR); >> channel.send(exchange); >> } >> } >> >> >> This is what I get on servicemix logs right from the point I deploy my >> application zip file in SMX-HOME/hotdeploy: >> >> >> INFO - AutoDeploymentService - Directory: hotdeploy: Archive >> changed: processing tutorial-camel-sa-1.0-SNAPSHOT.zip ... >> DEBUG - AutoDeploymentService - Unpacked archive >> /home/pghogale/apache-servicemix-3.2.1/hotdeploy/tutorial-camel-sa-1.0-SNAPSHOT.zip >> to >> /home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/tutorial-camel-sa-1.0-SNAPSHOT.0.tmp >> DEBUG - SedaFlow - Called Flow suspend >> DEBUG - JMSFlow - Called Flow suspend >> DEBUG - JCAFlow - Called Flow suspend >> DEBUG - AutoDeploymentService - SA dependencies: >> [servicemix-bean, >> servicemix-jms, servicemix-camel] >> DEBUG - DeploymentService - Moving >> /home/pghogale/apache-servicemix-3.2.1/data/smx/tmp/tutorial-camel-sa-1.0-SNAPSHOT.0.tmp >> to >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install >> DEBUG - DeploymentService - Unpack service unit archive >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install/tutorial-camel-su-1.0-SNAPSHOT.zip >> to >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-camel/tutorial-camel-su >> DEBUG - CamelJbiComponent - Deploying service unit >> DEBUG - CamelJbiComponent - Looking for >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-camel/tutorial-camel-su/camel-context.xml: >> true >> DEBUG - CamelJbiComponent - Service unit deployed >> DEBUG - DeploymentService - Unpack service unit archive >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install/tutorial-camel-jms-su-1.0-SNAPSHOT.zip >> to >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-jms/tutorial-camel-jms-su >> DEBUG - JmsComponent - Deploying service unit >> DEBUG - JmsComponent - Looking for >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-jms/tutorial-camel-jms-su/xbean.xml: >> true >> DEBUG - JmsComponent - Service unit deployed >> DEBUG - DeploymentService - Unpack service unit archive >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/install/myS1Pojo-1.0-SNAPSHOT.zip >> to >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-bean/myS1Pojo >> DEBUG - BeanComponent - Deploying service unit >> DEBUG - BeanComponent - Looking for >> /home/pghogale/apache-servicemix-3.2.1/data/smx/service-assemblies/tutorial-camel-sa/version_1/sus/servicemix-bean/myS1Pojo/xbean.xml: >> true >> DEBUG - BeanComponent - Service unit deployed >> INFO - ServiceAssemblyLifeCycle - Starting service assembly: >> tutorial-camel-sa >> INFO - ServiceUnitLifeCycle - Initializing service unit: >> tutorial-camel-su >> DEBUG - CamelJbiComponent - Initializing service unit >> DEBUG - CamelJbiComponent - Service unit initialized >> INFO - ServiceUnitLifeCycle - Initializing service unit: >> tutorial-camel-jms-su >> DEBUG - JmsComponent - Initializing service unit >> DEBUG - JmsComponent - Service unit initialized >> INFO - ServiceUnitLifeCycle - Initializing service unit: >> myS1Pojo >> DEBUG - BeanComponent - Initializing service unit >> DEBUG - BeanComponent - Service unit initialized >> INFO - ServiceUnitLifeCycle - Starting service unit: >> tutorial-camel-su >> DEBUG - CamelJbiComponent - Starting service unit >> DEBUG - ComponentContextImpl - Component: servicemix-camel >> activated endpoint: {http://esbinaction.com/errorhandling}errorHandlerDSL >> : >> camel192-168-2-64-11a0546cc76-21-1 >> DEBUG - CamelJbiComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1] >> DEBUG - CamelJbiComponent - No description found for >> {http://esbinaction.com/errorhandling}errorHandlerDSL:camel192-168-2-64-11a0546cc76-21-1 >> DEBUG - WSDL1Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1] >> has no service description >> DEBUG - CamelJbiComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1] >> DEBUG - CamelJbiComponent - No description found for >> {http://esbinaction.com/errorhandling}errorHandlerDSL:camel192-168-2-64-11a0546cc76-21-1 >> DEBUG - WSDL2Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1] >> has no service description >> DEBUG - JCAFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1]] >> DEBUG - JMSFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorHandlerDSL,endpoint=camel192-168-2-64-11a0546cc76-21-1]] >> DEBUG - ComponentContextImpl - Component: servicemix-camel >> activated endpoint: {http://activemq.apache.org/camel/schema/jbi}endpoint >> : >> camel:controlBus >> DEBUG - CamelJbiComponent - Querying service description for >> ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus] >> DEBUG - CamelJbiComponent - No description found for >> {http://activemq.apache.org/camel/schema/jbi}endpoint:camel:controlBus >> DEBUG - WSDL1Processor - Endpoint >> ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus] >> has no service description >> DEBUG - CamelJbiComponent - Querying service description for >> ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus] >> DEBUG - CamelJbiComponent - No description found for >> {http://activemq.apache.org/camel/schema/jbi}endpoint:camel:controlBus >> DEBUG - WSDL2Processor - Endpoint >> ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus] >> has no service description >> DEBUG - JCAFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]] >> DEBUG - JMSFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://activemq.apache.org/camel/schema/jbi}endpoint,endpoint=camel:controlBus]] >> DEBUG - CamelJbiComponent - Service unit started >> INFO - ServiceUnitLifeCycle - Starting service unit: >> tutorial-camel-jms-su >> DEBUG - JmsComponent - Starting service unit >> DEBUG - ComponentContextImpl - Component: servicemix-jms >> activated >> endpoint: {http://esbinaction.com/errorhandling}errorStorageService : >> errorStorageEndpoint >> DEBUG - JmsComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint] >> DEBUG - JmsComponent - No description found for >> {http://esbinaction.com/errorhandling}errorStorageService:errorStorageEndpoint >> DEBUG - WSDL1Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint] >> has no service description >> DEBUG - JmsComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint] >> DEBUG - JmsComponent - No description found for >> {http://esbinaction.com/errorhandling}errorStorageService:errorStorageEndpoint >> DEBUG - WSDL2Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint] >> has no service description >> DEBUG - JCAFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint]] >> DEBUG - JMSFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorStorageService,endpoint=errorStorageEndpoint]] >> DEBUG - JmsComponent - Retrieving proxied endpoint >> definition >> DEBUG - JmsComponent - Could not retrieve endpoint for >> service/endpoint >> DEBUG - JmsComponent - Service unit started >> INFO - ServiceUnitLifeCycle - Starting service unit: myS1Pojo >> DEBUG - BeanComponent - Starting service unit >> DEBUG - ComponentContextImpl - Component: servicemix-bean >> activated endpoint: {http://esbinaction.com/errorhandling}errorComponent >> : >> errorEndpoint >> DEBUG - BeanComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint] >> DEBUG - BeanComponent - No description found for >> {http://esbinaction.com/errorhandling}errorComponent:errorEndpoint >> DEBUG - WSDL1Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint] >> has no service description >> DEBUG - BeanComponent - Querying service description for >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint] >> DEBUG - BeanComponent - No description found for >> {http://esbinaction.com/errorhandling}errorComponent:errorEndpoint >> DEBUG - WSDL2Processor - Endpoint >> ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint] >> has no service description >> DEBUG - JCAFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint]] >> DEBUG - MultiplexingConsumerProcessor - Received jms message >> ActiveMQTextMessage {commandId = 5, responseRequired = true, messageId = >> ID:gpratibha.site-36985-1211269266533-3:673:1:1:1, originalDestination = >> null, originalTransactionId = null, producerId = >> ID:gpratibha.site-36985-1211269266533-3:673:1:1, destination = >> queue://tutorial.camel.queue3, transactionId = null, expiration = 0, >> timestamp = 1211270054767, arrival = 0, correlationId = null, replyTo = >> null, persistent = true, type = null, priority = 4, groupID = null, >> groupSequence = 0, targetConsumerId = null, compressed = false, userID = >> null, content = org.apache.activemq.util.ByteSequence@1b42030, >> marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, >> size = 0, properties = null, readOnlyProperties = true, readOnlyBody = >> true, >> droppable = false, text = null} >> DEBUG - JMSFlow - ServiceMix: broadcasting info >> for >> org.apache.servicemix.jbi.event.EndpointEvent[source=ServiceEndpoint[service={http://esbinaction.com/errorhandling}errorComponent,endpoint=errorEndpoint]] >> DEBUG - BeanComponent - Service unit started >> DEBUG - SedaFlow - Called Flow resume >> DEBUG - JMSFlow - Called Flow resume >> DEBUG - JCAFlow - Called Flow resume >> INFO - AutoDeploymentService - Directory: hotdeploy: Finished >> installation of archive: tutorial-camel-sa-1.0-SNAPSHOT.zip >> DEBUG - MultiplexingConsumerProcessor - Handling jms message >> ActiveMQTextMessage {commandId = 5, responseRequired = true, messageId = >> ID:gpratibha.site-36985-1211269266533-3:673:1:1:1, originalDestination = >> null, originalTransactionId = null, producerId = >> ID:gpratibha.site-36985-1211269266533-3:673:1:1, destination = >> queue://tutorial.camel.queue3, transactionId = null, expiration = 0, >> timestamp = 1211270054767, arrival = 0, correlationId = null, replyTo = >> null, persistent = true, type = null, priority = 4, groupID = null, >> groupSequence = 0, targetConsumerId = null, compressed = false, userID = >> null, content = org.apache.activemq.util.ByteSequence@1b42030, >> marshalledProperties = null, dataStructure = null, redeliveryCounter = 0, >> size = 0, properties = null, readOnlyProperties = true, readOnlyBody = >> true, >> droppable = false, text = null} >> DEBUG - JmsComponent - Created correlation id: >> ID:192.168.2.64-11a0546cc76-7:43 >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-7:43 in DeliveryChannel{servicemix-jms} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@42133f dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-7:43 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorHandlerDSL >> endpoint: camel192-168-2-64-11a0546cc76-21-1 >> in: Hello >> world! >> ] >> DEBUG - CamelJbiComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - CamelJbiComponent - Retrieved correlation id: >> ID:192.168.2.64-11a0546cc76-7:43 >> DEBUG - CamelJbiEndpoint - Received exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-7:43 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorHandlerDSL >> endpoint: camel192-168-2-64-11a0546cc76-21-1 >> in: Hello >> world! >> ] >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:93 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:93 (10e886c) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@13a2b1a dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:93 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:93 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@bbea6 dequeued >> exchange: >> InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:93 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:93(10e886c) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:93(10e886c) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 0 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:94 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:94 (17dbc6a) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1dcdb18 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:94 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:94 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1a675d8 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:94 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:94(17dbc6a) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:94(17dbc6a) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 1 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:95 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:95 (182c409) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@144444 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:95 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:95 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@8dcc66 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:95 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:95(182c409) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:95(182c409) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 2 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:96 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:96 (1665677) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1b6ddeb dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:96 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:96 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@a3aec1 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:96 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:96(1665677) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:96(1665677) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 3 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:97 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:97 (ab0d66) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1fcbd86 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:97 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:97 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1fee802 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:97 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:97(ab0d66) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:97(ab0d66) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 4 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - SendSync >> ID:192.168.2.64-11a0546cc76-4:98 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - DeliveryChannelImpl - Waiting for exchange >> ID:192.168.2.64-11a0546cc76-4:98 (31e27b) to be answered in >> DeliveryChannel{servicemix-camel} from sendSync >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@10c2780 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:98 >> status: Active >> role: provider >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> ] >> DEBUG - BeanComponent - Received exchange: status: >> Active, >> role: provider >> DEBUG - BeanComponent - Retrieved correlation id: null >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-4:98 in DeliveryChannel{servicemix-bean} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@f54509 dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-4:98 >> status: Error >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorComponent >> endpoint: errorEndpoint >> in: Hello >> world! >> error: java.lang.NullPointerException: myexception >> ] >> DEBUG - DeliveryChannelImpl - Notifying exchange >> ID:192.168.2.64-11a0546cc76-4:98(31e27b) in >> DeliveryChannel{servicemix-camel} from processInboundSynchronousExchange >> DEBUG - DeliveryChannelImpl - Notified: >> ID:192.168.2.64-11a0546cc76-4:98(31e27b) in >> DeliveryChannel{servicemix-camel} from sendSync >> ERROR - DeadLetterChannel - On delivery attempt: 5 caught: >> java.lang.NullPointerException: myexception >> java.lang.NullPointerException: myexception >> at >> errorhandling.ErrorComponent.onMessageExchange(ErrorComponent.java:19) >> at >> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:235) >> at >> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:211) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538) >> at >> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490) >> at >> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46) >> at >> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610) >> at >> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:170) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167) >> at >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) >> at java.lang.Thread.run(Thread.java:595) >> DEBUG - DeliveryChannelImpl - Send >> ID:192.168.2.64-11a0546cc76-7:43 in DeliveryChannel{servicemix-camel} >> DEBUG - SedaFlow - Called Flow send >> DEBUG - SedaQueue - >> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1@1b6f17e dequeued >> exchange: InOnly[ >> id: ID:192.168.2.64-11a0546cc76-7:43 >> status: Done >> role: consumer >> service: {http://esbinaction.com/errorhandling}errorHandlerDSL >> endpoint: camel192-168-2-64-11a0546cc76-21-1 >> in: Hello >> world! >> ] >> DEBUG - JmsComponent - Received exchange: status: Done, >> role: consumer >> DEBUG - JmsComponent - Retrieved correlation id: >> ID:192.168.2.64-11a0546cc76-7:43 >> >> >> > > > > ----- > --- > Gert Vanthienen > http://www.anova.be > -- View this message in context: http://www.nabble.com/error-handling-tp17333360s22882p17336463.html Sent from the Camel - Users mailing list archive at Nabble.com.