Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-12318

Exception from aggregate() of AggregationStrategy has been hiden since Camel 2.16.x

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • 2.16.5, 2.17.7, 2.18.5
    • 2.21.0
    • camel-core
    • None
    • Java 8

    • Unknown

    Description

      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:

      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)

      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.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            xldai Xilai Dai
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: