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

Camel REST deserializes response to wrong type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.7.1
    • 3.7.2, 3.8.0
    • None
    • None
    • Unknown

    Description

      Camel REST component deserializes response to wrong type when the type is configured using outType parameter. I attached test demonstrating the issue. It runs fine in Camel 3.7.0.

      My observation is that both routes share the same DataFormat instance which is configured by first route and used by the second one. I think the problem might be not in the REST component itself but due to recent changes in data format cache'ing (CAMEL-16032, CAMEL-16045).

      Attachments

        1. RestDataformatTest.java
          3 kB
          Krzysztof Jamróz

        Activity

          People

            davsclaus Claus Ibsen
            krzysztofjamroz Krzysztof Jamróz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: