You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2025/09/15 16:06:00 UTC

[jira] [Commented] (CAMEL-22417) ErrorHandlerReifier fails with Unsupported definition: null

    [ https://issues.apache.org/jira/browse/CAMEL-22417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020400#comment-18020400 ] 

Claus Ibsen commented on CAMEL-22417:
-------------------------------------

Thanks for the reproducer. Can you test with latest 4.14.x. Camel 4.8 is EOL

> 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
>         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)