You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Pasquale Congiusti (Jira)" <ji...@apache.org> on 2021/06/29 13:58:00 UTC

[jira] [Updated] (CAMEL-16755) camel-jackson: cannot resolve unmarshal type

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

Pasquale Congiusti updated CAMEL-16755:
---------------------------------------
    Fix Version/s: 3.12.0

> camel-jackson: cannot resolve unmarshal type
> --------------------------------------------
>
>                 Key: CAMEL-16755
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16755
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Pasquale Congiusti
>            Assignee: Pasquale Congiusti
>            Priority: Major
>             Fix For: 3.12.0
>
>
> When we use the component trying to unmarshal such as in the following route:
> {code}
>     public void configure() throws Exception {
>        from("direct:unmarshal").unmarshal().json(JsonLibrary.Jackson, User.class).to("direct:logger");
>         ...
>     }
>     static class User {...}
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)