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

camel-core: ThrowExceptionProcessor may silently ignore exceptions in constructing the exception object

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.18.5, 3.20.2, 4.0-M2
    • 3.18.6, 3.20.3, 3.21.0, 4.0-M3, 4.0.0
    • came-core
    • None
    • Unknown

    Description

      Back in Camel 3.12, a change was made to ThrowExceptionProcessor:

      https://github.com/apache/camel/blob/fb0528706d7e8a7d0d6ba22dfb649cb31cf06bc8/core/camel-core-processor/src/main/java/org/apache/camel/processor/ThrowExceptionProcessor.java#L77-L82

      If you happen to drop into the else clause, then no exception is set on the exchange and it's confusing to users as to why no exception was thrown in their route. This is potentially a common thing on Camel Quarkus native mode if the specific exception type was not registered for reflection.

      Attachments

        Issue Links

          Activity

            People

              jamesnetherton James Netherton
              jamesnetherton James Netherton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: