You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2015/04/14 07:44:12 UTC

[jira] [Resolved] (CAMEL-8628) camel-dozer component fails when multiple expressions are used in a mapping

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

Claus Ibsen resolved CAMEL-8628.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.16.0
                   2.15.2
         Assignee: Claus Ibsen

Thanks for the PR

> camel-dozer component fails when multiple expressions are used in a mapping
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-8628
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8628
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-dozer
>    Affects Versions: 2.15.1
>            Reporter: Keith Babo
>            Assignee: Claus Ibsen
>             Fix For: 2.15.2, 2.16.0
>
>
> 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:
> {noformat}
> java.lang.IllegalStateException: Current exchange has not been set for ExpressionMapper
> {noformat}
> 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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)