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

camel-dozer component fails when multiple expressions are used in a mapping

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.15.1
    • 2.15.2, 2.16.0
    • camel-dozer
    • None
    • Patch Available
    • Unknown

    Description

      The reference to the current exchange is cleared on each invocation of ExpressionMapper in the done() method. If a mapping file contains multiple expression mappings, the first expression clears out the exchange reference and subsequent expression mappings fail with:

      java.lang.IllegalStateException: Current exchange has not been set for ExpressionMapper
      

      Fix is to not clear the reference in ExpressionMapper.done(). We should do this in DozerProducer after all mappings in the mapping file have completed.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            kcbabo Keith Babo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: