You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Yasser Zamani (Jira)" <ji...@apache.org> on 2022/02/03 11:23:00 UTC

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

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

Yasser Zamani updated CAMEL-17594:
----------------------------------
    Description: 
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!

  was:
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!


> 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
>            Priority: Minor
>         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)