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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.15.1
    • Fix Version/s: 2.15.2, 2.16.0
    • Component/s: camel-dozer
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: