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

Platform-http components fail when using unmarshal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.11.1, 3.12.0
    • 3.14.0
    • None
    • Unknown

    Description

      When we run a route which is using platform-http component and we try to unmarshal to json (and I suspect also any other dataformat), there is a failure due to a missing conversion type.

      For example:

          from("platform-http:/hello?httpMethodRestrict=GET").
            setBody(simple("{\"hello\": \"world\"}"))
            .unmarshal().json();
      

      Will fail because there is a mandatory conversion from Map to ByteBuffer that is failing.

      [1] 2021-08-31 13:41:58,676 ERROR [io.qua.ver.htt.run.QuarkusErrorHandler] (vert.x-eventloop-thread-1) HTTP Request to /hello failed, error id: 3ea4fdb8-931c-4d59-b8e6-376dc6a34e09-1: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: java.util.LinkedHashMap to the required type: java.nio.ByteBuffer with value {hello=world}
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: