Jonathan Simard created CAMEL-21775:
---------------------------------------

             Summary: Split or Multicast in onException route cannot be started 
using Supervised route controller
                 Key: CAMEL-21775
                 URL: https://issues.apache.org/jira/browse/CAMEL-21775
             Project: Camel
          Issue Type: Bug
    Affects Versions: 4.10.0, 4.9.0, 4.8.3, 4.8.2, 4.8.1, 4.8.0, 4.7.0, 4.6.0
            Reporter: Jonathan Simard
         Attachments: CamelDefaultRouteOnExceptions.zip

Using the supervised route controller,

when a split is defined in a onException of a route, the route cannot  be 
started.

 

I suspect 2 issues:

* One in the route initialization process:

[https://github.com/apache/camel/blob/fa02c9e4879fac119a7f2b4f1b4ff46f646c48eb/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultRoute.java#L700]

 

* One in the split expression evaluation. Because the try-with-resource closes 
the BeanProcessor Service and that processor will need to be reinitialized and 
will fail during initialization at MulticastProcessor.wrapInErrorHandler 
because the route does not contain exceptionHandlerFactory anymore.

[https://github.com/apache/camel/blob/2192884d371377423dbada7f2870057cabdef8b4/components/camel-bean/src/main/java/org/apache/camel/language/bean/BeanExpression.java#L352]

 

See included reproducer.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to