You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by angryzes <ro...@gmail.com> on 2014/07/01 20:19:52 UTC
doTry problem
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.
Re: doTry problem
Posted by angryzes <ro...@gmail.com>.
Exact same problem for this version too. In fact, I originally had this
problem in 2.13.1 and rolled back to 2.13.0 in order to see if it was
version specific bug. No luck there.
--
View this message in context: http://camel.465427.n5.nabble.com/doTry-problem-tp5753169p5753264.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: doTry problem
Posted by Christian Müller <ch...@gmail.com>.
Can you try 2.13.1?
Best,
Christian
Am 01.07.2014 21:25 schrieb "angryzes" <ro...@gmail.com>:
> 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.
>
Re: doTry problem
Posted by angryzes <ro...@gmail.com>.
Thanks Claus,
My problem here was that error is about
org/apache/camel/processor/FinallyProcessor$1
Which look like internal camel class?
--
View this message in context: http://camel.465427.n5.nabble.com/doTry-problem-tp5753169p5753650.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: doTry problem
Posted by Claus Ibsen <cl...@gmail.com>.
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 <ro...@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/