Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17594

Try Catch WireTap OnPrepare ClassCastException

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.14.0
    • 3.14.2, 3.16.0
    • came-core
    • None

    Description

      issue when wireTap is inside a doCatch, and has .end(). Attached test run ends up in

      java.lang.ClassCastException: class org.apache.camel.model.CatchDefinition cannot be cast to class org.apache.camel.model.TryDefinition
      

      Removing .end() fixes issue but then it's confusing why exactly same wireTap inside doTry MUST have .end() and inside doCatch MUST NOT!

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            yasserzamani Yasser Zamani
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment