You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/04/13 21:18:13 UTC
[jira] [Commented] (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: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 <kb...@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)