camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: doTry problem
Date Fri, 04 Jul 2014 12:08:13 GMT
Ah I think NoClassDefFound is a java.lang.Error, so you would need to
have .doCatch(Throwable) to catch that guy too.

On Tue, Jul 1, 2014 at 8:19 PM, angryzes <roman.seleznov@gmail.com> wrote:
> Hello,
>
> I am facing a strange problem when I am trying to execute doTry doCatch
> blocks on exception like this:
>
> onException(Exception.class)
>                 .doTry()
>                     .to(ROUTE_ID)
>                 .doCatch(Exception.class)
>                     .convertBodyTo(String.class)
>                     .log("log:org.apache.camel?level=ERROR")
>                 .end();
>
>  .to(ROUTE_ID) - throws exception, which is fine but then another exception
> is thrown and I am getting in into infinite loop of exceptions with root
> cause like this:
>
> [Server:ivr] 19:10:46,368 ERROR [org.quartz.core.JobRunShell]
> (DefaultQuartzScheduler-system-status-camel-context_Worker-1) Job
> Camel_system-status-camel-context.systemStatusJob threw an unhandled
> Exception: : java.lang.NoClassDefFoundError:
> org/apache/camel/processor/FinallyProcessor$1
> [Server:ivr]    at
> org.apache.camel.processor.FinallyProcessor.process(FinallyProcessor.java:54)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.TryProcessor.process(TryProcessor.java:111)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.TryProcessor.process(TryProcessor.java:82)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.FatalFallbackErrorHandler.process(FatalFallbackErrorHandler.java:42)
> [camel-core-2.13.0.jar:2.13.0]
> [Server:ivr]    at
> org.apache.camel.processor.RedeliveryErrorHandler.deliverToFailureProcessor(RedeliveryErrorHandler.java:839)
> [camel-core-2.13.0.jar:2.13.0]
>
> The env is (mac), jboss 7.2:
> java version "1.6.0_65"
> Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
> Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
>
> Any ideas?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/doTry-problem-tp5753166.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message