Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
When we use the component trying to unmarshal such as in the following route:
public void configure() throws Exception { from("direct:unmarshal").unmarshal().json(JsonLibrary.Jackson, User.class).to("direct:logger"); ... } static class User {...}
The following piece of code is returning null due to missing class in the classloader: https://github.com/apache/camel/blob/main/components/camel-jackson/src/main/java/org/apache/camel/component/jackson/AbstractJacksonDataFormat.java#L512
This is happening when you have routes dynamically loaded such as in the case of camel-k.
Attachments
Issue Links
- is fixed by
-
CAMEL-16760 camel-core - Dataformat models with Class<?> should use the loaded class directly
- Resolved