You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Thomas Weinschenk <th...@infoserve.endress.com> on 2014/10/20 17:56:11 UTC

Dozer Type Conversion (2.12.2) not working in Karaf

Hi all,

I tried to use the Dozer Type Conversion as explained in the documentation
in Karaf but without success.

I defined a org.apache.camel.converter.dozer.DozerTypeConverterLoader...
<bean id="dozerConverterLoader"
class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" />


and a org.apache.camel.converter.dozer.DozerBeanMapperConfiguration 
<bean id="mapper"
class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration">
	<property name="mappingFiles">
		<list>
			<value>dozer-mapping.xml</value>
		</list>
	</property>
</bean>
in my blueprint. In the route I try to convert the Object with convertBodyTo
but the result is null.

It looks to my like the Converter is never really loaded or added to the
registry.

Is there anything special I have to do in my route? Is it right to use the
default constructor of the DozerTypeConverterLoader and not one of the
constructors that accept a context and a configuration?

Thanks a lot,
Thomas



--
View this message in context: http://camel.465427.n5.nabble.com/Dozer-Type-Conversion-2-12-2-not-working-in-Karaf-tp5757812.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dozer Type Conversion (2.12.2) not working in Karaf

Posted by ranjitn <ra...@gmail.com>.
Any luck with this? 

It does not seem to work in karaf, tried latest version of Dozer 5.5.1 and
Camel 2.16.1. Issue finding mapping file in OSGI.



--
View this message in context: http://camel.465427.n5.nabble.com/Dozer-Type-Conversion-2-12-2-not-working-in-Karaf-tp5757812p5779174.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Dozer Type Conversion (2.12.2) not working in Karaf

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Try with latest release as the older dozer release does not work well
in OSGi. And we also fixed stuff in camel-dozer. So try with Camel
2.14.0.

On Mon, Oct 20, 2014 at 5:56 PM, Thomas Weinschenk
<th...@infoserve.endress.com> wrote:
> Hi all,
>
> I tried to use the Dozer Type Conversion as explained in the documentation
> in Karaf but without success.
>
> I defined a org.apache.camel.converter.dozer.DozerTypeConverterLoader...
> <bean id="dozerConverterLoader"
> class="org.apache.camel.converter.dozer.DozerTypeConverterLoader" />
>
>
> and a org.apache.camel.converter.dozer.DozerBeanMapperConfiguration
> <bean id="mapper"
> class="org.apache.camel.converter.dozer.DozerBeanMapperConfiguration">
>         <property name="mappingFiles">
>                 <list>
>                         <value>dozer-mapping.xml</value>
>                 </list>
>         </property>
> </bean>
> in my blueprint. In the route I try to convert the Object with convertBodyTo
> but the result is null.
>
> It looks to my like the Converter is never really loaded or added to the
> registry.
>
> Is there anything special I have to do in my route? Is it right to use the
> default constructor of the DozerTypeConverterLoader and not one of the
> constructors that accept a context and a configuration?
>
> Thanks a lot,
> Thomas
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Dozer-Type-Conversion-2-12-2-not-working-in-Karaf-tp5757812.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/