You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Tomislav Mrkus <tm...@gmail.com> on 2011/09/21 11:48:43 UTC
HazelcastComponentHelper copyHeaders issue
Hi,
due to lazy creation of Out message in DefaultExchange.getOut()
implementation, HazelcastComponentHelper.copyHeaders() method inadvertently
creates an Out message if one has not been set yet, which then creates
problems in CamelInvocationHandler.getBody() which then returns null as a
result.
There should be a check in copyHeaders() to see if Out exists, e.g.:
// set out headers
if (ex.hasOut()) {
ex.getOut().setHeaders(headers);
}
Tomislav
--
View this message in context: http://camel.465427.n5.nabble.com/HazelcastComponentHelper-copyHeaders-issue-tp4825799p4825799.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: HazelcastComponentHelper copyHeaders issue
Posted by Tomislav Mrkus <tm...@gmail.com>.
Created CAMEL-4472
--
View this message in context: http://camel.465427.n5.nabble.com/HazelcastComponentHelper-copyHeaders-issue-tp4825799p4826111.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: HazelcastComponentHelper copyHeaders issue
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Thanks for reporting.
Do you mind creating a JIRA ticket for this bug?
There is a link to JIRA from here
http://camel.apache.org/support
And as we love contributions, you are welcome to work on a patch as well.
On Wed, Sep 21, 2011 at 11:48 AM, Tomislav Mrkus <tm...@gmail.com> wrote:
> Hi,
>
> due to lazy creation of Out message in DefaultExchange.getOut()
> implementation, HazelcastComponentHelper.copyHeaders() method inadvertently
> creates an Out message if one has not been set yet, which then creates
> problems in CamelInvocationHandler.getBody() which then returns null as a
> result.
>
> There should be a check in copyHeaders() to see if Out exists, e.g.:
> // set out headers
> if (ex.hasOut()) {
> ex.getOut().setHeaders(headers);
> }
>
> Tomislav
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/HazelcastComponentHelper-copyHeaders-issue-tp4825799p4825799.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/