Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16755

camel-jackson: cannot resolve unmarshal type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.12.0
    • 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

          Activity

            People

              squakez Pasquale Congiusti
              squakez Pasquale Congiusti
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: