camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8628) camel-dozer component fails when multiple expressions are used in a mapping
Date Mon, 13 Apr 2015 19:18:13 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8628?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492899#comment-14492899
] 

ASF GitHub Bot commented on CAMEL-8628:
---------------------------------------

GitHub user kcbabo opened a pull request:

    https://github.com/apache/camel/pull/485

    CAMEL-8628: camel-dozer component fails with multiple expression mappings

    https://issues.apache.org/jira/browse/CAMEL-8628

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kcbabo/camel CAMEL-8628

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/485.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #485
    
----
commit 07fedad005b2cfa72006ea386b07600cb6926942
Author: Keith Babo <kbabo@redhat.com>
Date:   2015-04-13T19:15:24Z

    CAMEL-8628: camel-dozer component fails with multiple expression mappings

----


> 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
>
> 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)

Mime
View raw message