Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D1AE9E0D for ; Wed, 21 Sep 2011 10:48:14 +0000 (UTC) Received: (qmail 28358 invoked by uid 500); 21 Sep 2011 10:48:14 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 28323 invoked by uid 500); 21 Sep 2011 10:48:14 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 28315 invoked by uid 99); 21 Sep 2011 10:48:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 10:48:14 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.173 as permitted sender) Received: from [209.85.215.173] (HELO mail-ey0-f173.google.com) (209.85.215.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 10:48:08 +0000 Received: by eyg24 with SMTP id 24so1640114eyg.32 for ; Wed, 21 Sep 2011 03:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=pXm6ZhWd2Lu0SEtNWUNgeNIRYbUjgbxzSy48qcNpwjc=; b=ewpt0nJhCcxST5RAnVFQkowvcAN3QXuZCEyvwJOCfDX7+PKEein5QHriT6mh9KVeRT 2nw4hoRGYBhiHyM4Fij4plGF6+5bubj+u272PSL1asuX8DfWumcE7x3IXsokIADPSiPh ORoxD7Su07fId6QjKAyeJnCsInqSxFSUH7bLI= Received: by 10.213.102.8 with SMTP id e8mr707415ebo.123.1316602068601; Wed, 21 Sep 2011 03:47:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.31.68 with HTTP; Wed, 21 Sep 2011 03:47:28 -0700 (PDT) In-Reply-To: <1316598523379-4825799.post@n5.nabble.com> References: <1316598523379-4825799.post@n5.nabble.com> From: Claus Ibsen Date: Wed, 21 Sep 2011 12:47:28 +0200 Message-ID: Subject: Re: HazelcastComponentHelper copyHeaders issue To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: > Hi, > > due to lazy creation of Out message in DefaultExchange.getOut() > implementation, HazelcastComponentHelper.copyHeaders() method inadvertent= ly > 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.: > =A0// set out headers > =A0if (ex.hasOut()) { > =A0 =A0 =A0 =A0ex.getOut().setHeaders(headers); > =A0} > > Tomislav > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Hazelcast= ComponentHelper-copyHeaders-issue-tp4825799p4825799.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 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/