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

John Poth updated CAMEL-10573:
------------------------------
    Description: 
In a OSGI environment only, FallBackTypeConverters are 
[required|https://github.com/apache/camel/blob/d5f0aefdffc74ac0971b87946a21fe4be8c305b4/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L428]
 to be annotated with @Converter whereas otherwise they are 
[not|https://github.com/apache/camel/blob/00fef5857c0bcb0fc7a02f19f5ba51ef0382133d/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java#L170].

This causes 
[camel-jackson's|https://github.com/apache/camel/blob/2b4b9df67da4b84cb69d9dd42ef77155a803679a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java]
 FallbackTypeConverter to not be loaded and a 
'NoTypeConversionAvailableException' will be thrown. 

I will provide a PR.

  was:
In a OSGI environment only, FallBackTypeConverters are 
[required|https://github.com/jboss-fuse/camel/blob/d5f0aefdffc74ac0971b87946a21fe4be8c305b4/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L428]
 to be annotated with @Converter whereas otherwise they are 
[not|https://github.com/jboss-fuse/camel/blob/b60903a7bd4fdf390ac93dce02abaf689a6275b2/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java#L172].

This causes 
[camel-jackson's|https://github.com/apache/camel/blob/2b4b9df67da4b84cb69d9dd42ef77155a803679a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java]
 FallbackTypeConverter to not be loaded and a 
'NoTypeConversionAvailableException' will be thrown. 

I will provide a PR.


> Align FallbackTypeConverter loading in OSGI environments
> --------------------------------------------------------
>
>                 Key: CAMEL-10573
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10573
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>            Reporter: John Poth
>            Assignee: John Poth
>
> In a OSGI environment only, FallBackTypeConverters are 
> [required|https://github.com/apache/camel/blob/d5f0aefdffc74ac0971b87946a21fe4be8c305b4/camel-core/src/main/java/org/apache/camel/impl/osgi/Activator.java#L428]
>  to be annotated with @Converter whereas otherwise they are 
> [not|https://github.com/apache/camel/blob/00fef5857c0bcb0fc7a02f19f5ba51ef0382133d/camel-core/src/main/java/org/apache/camel/impl/converter/AnnotationTypeConverterLoader.java#L170].
> This causes 
> [camel-jackson's|https://github.com/apache/camel/blob/2b4b9df67da4b84cb69d9dd42ef77155a803679a/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/converter/JacksonTypeConverters.java]
>  FallbackTypeConverter to not be loaded and a 
> 'NoTypeConversionAvailableException' will be thrown. 
> I will provide a PR.



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

Reply via email to