camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Urciolo, Kevin J (IS)" <Kevin.Urci...@ngc.com>
Subject Canceled: EXT :Re: Multiple Try-catch -Exception-Handling using spring DSL facing issues
Date Tue, 01 Apr 2014 13:29:37 GMT
Hi
   See the doTry .. doCatch examples
   http://camel.apache.org/try-catch-finally.html

your code is a bit wrong.
On Tue, Apr 1, 2014 at 3:05 PM, venkatesh.avula <venky.avula@gmail.com<mailto:venky.avula@gmail.com>>
wrote:
   Hi , I am trying to execute an example for Multiple try catch handler .
   Please find below my camel route spring dsl congiguration .
   java.io.SQLException                                                                  
                                    java.io.IOException
   When I am trying to run this , by giving some wrong input , Ideally it
   should either go to , E:/testError/IO or  E:/testError/SQL folders . But the
   following exception is being thrown . Exception in thread "main"
   org.apache.camel.RuntimeCamelException:
   org.apache.camel.FailedToCreateRouteException: Failed to create route route3
   at: >>> DoTry[[DoCatch[ null -> [To[file:///E:/testError/SQL]]], DoCatch[
   null -> [To[file:///E:/testError/IO]]], DoCatch[ null ->
   [To[file:///E:/testError/IO]]], DoFinally[[To[file:///E:/testError]]]]] <<<
   in route: Route(route3)[[From[seda:queue:order]] -> [Unmarshal[ref:jax...
   because of Definition has no children on DoTry[[DoCatch[ null ->
   [To[file:///E:/testError/SQL]]], DoCatch[ null ->
   [To[file:///E:/testError/IO]]], DoCatch[ null ->
   [To[file:///E:/testError/IO]]], DoFinally[[To[file:///E:/testError]]]]] at
   org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1352)
   at
   org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
   at
   org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:301)
   at
   org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:96)
   at
   org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
   at
   org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:948)


Mime
View raw message