[ https://issues.apache.org/jira/browse/CAMEL-22417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020618#comment-18020618 ]
Artem edited comment on CAMEL-22417 at 9/16/25 9:43 AM: -------------------------------------------------------- Thanks a lot! I've checked, this issue was already fixed in https://issues.apache.org/jira/browse/CAMEL-21432 was (Author: JIRAUSER307902): This issue was already fixed in https://issues.apache.org/jira/browse/CAMEL-21432 > ErrorHandlerReifier fails with Unsupported definition: null > ----------------------------------------------------------- > > Key: CAMEL-22417 > URL: https://issues.apache.org/jira/browse/CAMEL-22417 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 4.8.1 > Reporter: Artem > Priority: Minor > Fix For: 4.8.2, 4.14.0 > > Attachments: OnExceptionMulticastCamel4Example.zip > > > If we use the route that contains _*onException*_ with _handled = true_ > property and add multicast() to it - our rote will fail with {_}Unsupported > definition{_}. > It works properly on Camel 3. > After investigation I found that this is due to code changes in > _camel-core-processor_ library > In {{MulticastProcessor}} class now we have LRUCache that initialized with > size = 0 and it lost all added error handlers. > I would add some non-zero size. But I also see that such zero cache size is > the solution for that OOM issue - > https://issues.apache.org/jira/browse/CAMEL-20835. > Could you please help to correctly fix the Unsupported definition issue in > this case. > *Reproduce:* > Run the attached example project. > you will see (for Camel {_}*4.8.1*{_}) > {code:java} > Caused by: java.lang.IllegalStateException: Unsupported definition: null > at > org.apache.camel.reifier.errorhandler.ErrorHandlerReifier.reifier(ErrorHandlerReifier.java:89) > at > org.apache.camel.impl.DefaultModelReifierFactory.createErrorHandler(DefaultModelReifierFactory.java:65) > at > org.apache.camel.impl.DefaultModelReifierFactory.createErrorHandler(DefaultModelReifierFactory.java:59) > at > org.apache.camel.impl.DefaultCamelContext.createErrorHandler(DefaultCamelContext.java:767) > at > org.apache.camel.impl.engine.DefaultCamelContextExtension.createErrorHandler(DefaultCamelContextExtension.java:1056) > at > org.apache.camel.processor.MulticastProcessor.wrapInErrorHandler(MulticastProcessor.java:1135) > at > org.apache.camel.processor.MulticastProcessor.wrapInErrorHandler(MulticastProcessor.java:1103) > ... 23 common frames omitted {code} > But if you will change the *_camel.version_* in pom.xml to _*3.20.6*_ it will > successfully multicast to receivers. -- This message was sent by Atlassian Jira (v8.20.10#820010)