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

Aaron Mulder updated CAMEL-3388:
--------------------------------

    Description: 
When you invoke a bean with a method signature like this in Camel 2.5.0/HEAD, 
the in and out message both are null (the "Hello!" value just disappears):

{code:java}
    public String doTest(@Body Object body, @Headers Map headers, @OutHeaders 
Map outHeaders) {
        return "Hello!";
    }
{code}

The same thing without the headers works OK:

{code:java}
    public String doTest(@Body Object body) {
        return "Hello!";
    }
{code}
See 
camel-core/src/test/java/org/apache/camel/component/bean/BeanWithHeadersAndBodyInject3Test.java

  was:
When you invoke a bean with a method signature like this in Camel 2.5.0/HEAD, 
the in and out message both are null (the "Hello!" value just disappears):

    public String doTest(@Body Object body, @Headers Map headers, @OutHeaders 
Map outHeaders) {
        return "Hello!";
    }

The same thing without the headers works OK:

    public String doTest(@Body Object body) {
        return "Hello!";
    }

See 
camel-core/src/test/java/org/apache/camel/component/bean/BeanWithHeadersAndBodyInject3Test.java


Seems to happen when @OutHeaders is used?

{code:java}
    public String doTest(@OutHeaders Map headers) {
        return "Hello!";
    }
{code}

does not work but this does:

{code:java}
    public String doTest(@Headers Map headers) {
        return "Hello!";
    }
{code}


> Strange bean annotation failure in Camel 2.5.0 & HEAD
> -----------------------------------------------------
>
>                 Key: CAMEL-3388
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3388
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.5.0
>            Reporter: Aaron Mulder
>            Priority: Critical
>
> When you invoke a bean with a method signature like this in Camel 2.5.0/HEAD, 
> the in and out message both are null (the "Hello!" value just disappears):
> {code:java}
>     public String doTest(@Body Object body, @Headers Map headers, @OutHeaders 
> Map outHeaders) {
>         return "Hello!";
>     }
> {code}
> The same thing without the headers works OK:
> {code:java}
>     public String doTest(@Body Object body) {
>         return "Hello!";
>     }
> {code}
> See 
> camel-core/src/test/java/org/apache/camel/component/bean/BeanWithHeadersAndBodyInject3Test.java

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to