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

rest-dsl - automatic binding failure with waitForTaskToComplete=Never

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.2
    • 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      Hello,
      Into my project i am using rest dsl.

      when insert into my seda waitForTaskToComplete=Never attribute, automatic binding (json) is disabled!!!!

      I create a simple camel example (see attachment)

      To simulate it:
      1. extract zip file
      2. run "mvn clean camel:run"

      TEST SUCCESS

      curl -X GET -H "Content-type: application/json" -H "Accept: application/json" localhost:8080/test/ok"

      OUTPUT (JSON):

      {
      "id" : 100.0
      }

      TEST FAILURE

      curl -X GET -H "Content-type: application/json" -H "Accept: application/json"localhost:8080/test/failure"

      OUTPUT (HashMap.toString()):

      {id=100.0}

      Best regards

      FabryProg

      Attachments

        1. camel-10154.zip
          6 kB
          Fabrizio Spataro

        Activity

          People

            davsclaus Claus Ibsen
            fabryprog Fabrizio Spataro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: