Re: IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-08 Thread adie
Many thanks Tomo! I did not notice that you need to use a specific class-a and source field. I was trying to use both classic mapping and expression mapping at the same time. It seems to use expression mapping you need following: - "class-a" element must be exactly

Re: IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-07 Thread Tomohisa Igarashi
Hi, There're some testcases demonstrating expression mapping like this: https://github.com/apache/camel/blob/master/components/camel-dozer/src/test/resources/org/apache/camel/component/dozer/ExpressionMappingTest-context.xml

IllegalStateException: Current exchange has not been set for ExpressionMapper while converting a CXF object

2016-11-07 Thread adie
Hi! I was trying to use camel-dozer component to translate a POJO generated by CXF. 1. First I started with simple mapping of two fields 1:1 and URI with targetModel and mappingFile. Which actually failed, because POJO was wrapped in some object. 2. Then I've added sourceModel and it worked