camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Pavlovich (JIRA)" <>
Subject [jira] [Commented] (CAMEL-6109) <to/> step in a <doCatch/> block runs when the <doTry/> tag is closed in the wrong place
Date Thu, 28 Feb 2013 14:39:12 GMT


Matt Pavlovich commented on CAMEL-6109:

Thanks, Claus. The syntax check to alert users to the incorrect configuration was what I was
hoping for. 

It can be a little confusing since for users coming from a plain Java coding background. When
programming plain Java code the try {} closes before the catch {} opens.

> <to/> step in a <doCatch/> block runs when the <doTry/> tag is closed
in the wrong place
> ----------------------------------------------------------------------------------------
>                 Key: CAMEL-6109
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.3
>         Environment: Windows dev
>            Reporter: Matt Pavlovich
>            Assignee: Claus Ibsen
>             Fix For: 2.11.0
> Example route:
> <doTry>
>    <to ... >
> </doTry>
> <doCatch>
>     <exception>java.lang.Exception</exception>
>     <to uri="log.... "/>
> </doCatch>
> The <to uri="log..."/> line will execute every time, regardless if there is an
exception or not.
> I believe the preferred behavior would be that the route should fails to load/validate.
 Alternatively, the <to uri="log.." /> should not run when there is not an exception.
> Thanks!

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message