camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Schwarz (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAMEL-1546) Exception handler is not applied for aggregate component
Date Mon, 20 Apr 2009 11:52:31 GMT

     [ https://issues.apache.org/activemq/browse/CAMEL-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Frank Schwarz closed CAMEL-1546.
--------------------------------

    Resolution: Working as Designed

Thank you for your advice. This was also my workaround in the first place.

I am closing this issue because of the fact that it is still unclear, whether the reported
behavior is by design or is a bug.
It seems to me that the observed behavior is a mixture of me misusing the DSL and the aggregator
component being unable to process exceptions, thrown by one of its destination.

So, someone who considers this behavior has to be fixed, please reopen the case.

> Exception handler is not applied for aggregate component
> --------------------------------------------------------
>
>                 Key: CAMEL-1546
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1546
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.0-M1
>            Reporter: Frank Schwarz
>
> <camelContext xmlns="http://camel.apache.org/schema/spring">
> 	<onException>
> 		<exception>java.lang.Exception</exception>
> 		<!-- no retry, just dump the error -->
> 		<handled><constant>true</constant></handled>
> 		<convertBodyTo type="java.lang.String" />
> 		<to uri="bean:ErrorMessageTransformProcessor" />
> 		<to uri="freemarker:error.ftl" />
> 		<to uri="file:///C:/temp/camel/err" />
> 	</onException>
> ...
> 	<route>
> 		<from uri="jms:queue:InQueue"/>
> 		<aggregate batchTimeout="5000" strategyRef="MyAggregationStrategy">
> 			<correlationExpression>      
> 				<header>MyCorrelationId</header>
> 			</correlationExpression>
> 			<to uri="bean:AggregatedItemsTransformProcessor" /> ***
> 			<to uri="jms:queue:OutQueue" />
> 		</aggregate>
> 	</route>
> </camel>
> If in the bean *** occurs an exception, nothing happens. Debugging shows that the exception
handler is not triggered. Nothing is logged.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message