You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Xilai Dai (JIRA)" <ji...@apache.org> on 2018/03/12 03:28:00 UTC
[jira] [Updated] (CAMEL-12318) Exception from aggregate() of
AggregationStrategy has been hiden since Camel 2.16.x
[ https://issues.apache.org/jira/browse/CAMEL-12318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xilai Dai updated CAMEL-12318:
------------------------------
Affects Version/s: (was: 2.20.2)
> Exception from aggregate() of AggregationStrategy has been hiden since Camel 2.16.x
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-12318
> URL: https://issues.apache.org/jira/browse/CAMEL-12318
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.16.5
> Environment: Java 8
> Reporter: Xilai Dai
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 2.21.0
>
>
> In case of any exception thrown from aggregate() of the custom AggregationStrategy class, the exception is hiden by Camel core and couldn't be catched by any errorhandler.
> A simple use case project is created for easy reproduce this issue, https://github.com/xldai/test/tree/master/test-multicast
> With setting camel.ver to 2.15.x in the pom.xml, the Exception is thrown as expected:
> {code:java}
> Caused by: java.lang.RuntimeException: Deliberate Exception
> at beans.FD_MulticastAggregator.aggregate(FD_MulticastAggregator.java:16)
> at org.apache.camel.processor.MulticastProcessor.doAggregateInternal(MulticastProcessor.java:848)
> at org.apache.camel.processor.MulticastProcessor.doAggregate(MulticastProcessor.java:830)
> at org.apache.camel.processor.MulticastProcessor$AggregateOnTheFlyTask.aggregateOnTheFly(MulticastProcessor.java:489)
> at org.apache.camel.processor.MulticastProcessor$AggregateOnTheFlyTask.run(MulticastProcessor.java:394){code}
> With setting camel.ver to higher than 2.16.x in the pom.xml, the Exception is not exposed anymore.
> Looking into the commit changes, seems this is happening after the changes of CAMEL-8587.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)