camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "arda.aydin" <kodcanav...@gmail.com>
Subject recipientList onException not catching CamelExchangeException
Date Thu, 10 May 2012 23:33:29 GMT
Hi,        

I have a route with recipientList. When there is no consumers available on
the calculated endpoint a org.apache.camel.CamelExchangeException is thrown.

The problem is even i tried many ways, i can't find the way to catch this
exception with onException.

   this.onException(Exception.class).handled(true).process(new
HandleExceptionProcessor());

   this.from("jms://producer1")
        .process(flowSelectorProcessor)
        .recipientList(header("FlowName"));

How can i catch it ?
Thanks in advance.

My stacktrace:

Caused by: org.apache.camel.CamelExchangeException: No consumers available
on endpoint: Endpoint[direct://idInvalid]. Exchange[Message: ...]
	at
org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:56)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at
org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:587)
	at
org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:516)
	at
org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:211)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at
org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:134)
	at org.apache.camel.processor.RecipientList.process(RecipientList.java:102)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
	at
org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:174)
	at
org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:273)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)
	at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
	at
org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:109)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:77)
	at
org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
	at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
	at
org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:103)
	at
org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)
	at
org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:99)
	... 11 more




--
View this message in context: http://camel.465427.n5.nabble.com/recipientList-onException-not-catching-CamelExchangeException-tp5701756.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message