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
>> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>> xmlns:esb="http://esbinaction.com/errorhandling">
>>
>> <jms:endpoint service="esb:errorHandlerDSL"
>> endpoint="errorEndpoint"
>> role="consumer"
>> destinationStyle="queue"
>> jmsProviderDestinationName="tutorial.camel.queuedef"
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
>> connectionFactory="#connectionFactory"/>
>>
>> <jms:endpoint service="esb:errorStorageService"
>> endpoint="errorStorageEndpoint"
>> role="provider"
>> destinationStyle="queue"
>> jmsProviderDestinationName="tutorial.camel.queue13"
>> defaultMep="http://www.w3.org/2004/08/wsdl/in-only"
>> connectionFactory="#connectionFactory"/>
>>
>> <bean id="connectionFactory"
>> class="org.apache.activemq.ActiveMQConnectionFactory">
>> <property name="brokerURL" value="tcp://localhost:61616" />
>> </bean>
>>
>> </beans>
>>
>>
>>
>> my camelcontext.xml
>>
>> <beans xmlns="http://www.springframework.org/schema/beans">
>>
>> <camelContext id="camel"
>> xmlns="http://activemq.apache.org/camel/schema/spring">
>> <package>errorhandling.camel</package>
>> </camelContext>
>>
>> </beans>
>>
>>
>> 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
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
>> xmlns:esb="http://esbinaction.com/errorhandling">
>>
>> <bean:endpoint service="esb:errorComponent"
>> endpoint="errorEndpoint"
>> bean="#errorBean"/>
>>
>> <bean id="errorBean" class="errorhandling.ErrorComponent" />
>>
>> </beans>
>>
>>
>> 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 = [EMAIL PROTECTED],
>> 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 = [EMAIL PROTECTED],
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> 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 -
>> [EMAIL PROTECTED] 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: <?xml version="1.0" encoding="UTF-8"?><message>Hello
>> world!</message>
>> ]
>> 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.