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 2022/02/03 11:47:00 UTC

[jira] [Resolved] (CAMEL-17594) Try Catch WireTap OnPrepare ClassCastException

     [ https://issues.apache.org/jira/browse/CAMEL-17594?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-17594.
---------------------------------
    Resolution: Fixed

You need to use endDoCatch to go back that is added in next releases

> Try Catch WireTap OnPrepare ClassCastException
> ----------------------------------------------
>
>                 Key: CAMEL-17594
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17594
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.14.0
>            Reporter: Yasser Zamani
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.14.2, 3.16.0
>
>         Attachments: TryCatchWireTapOnPrepareTest.java
>
>
> issue when {{wireTap}} is inside a {{doCatch}}, and has {{.end()}}. Attached test run ends up in
> {noformat}
> java.lang.ClassCastException: class org.apache.camel.model.CatchDefinition cannot be cast to class org.apache.camel.model.TryDefinition
> {noformat}
> Removing {{.end()}} fixes issue but then it's confusing why exactly same {{wireTap}} inside {{doTry}} MUST have {{.end()}} and inside {{doCatch}} MUST NOT!



--
This message was sent by Atlassian Jira
(v8.20.1#820001)