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

Fabrizio Spataro updated CAMEL-10195:
-------------------------------------
    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

  was:
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:

{
  "id" : 100.0
}

TEST FAILURE

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

OUTPUT:

{id=100.0}

Best regards

FabryProg


> automatic binding failure with waitForTaskToComplete=Never
> ----------------------------------------------------------
>
>                 Key: CAMEL-10195
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10195
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.17.2
>            Reporter: Fabrizio Spataro
>         Attachments: camel-10154.zip
>
>
> 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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to