Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 47959 invoked from network); 1 Nov 2010 06:04:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Nov 2010 06:04:58 -0000 Received: (qmail 8599 invoked by uid 500); 1 Nov 2010 06:05:29 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 8493 invoked by uid 500); 1 Nov 2010 06:05:27 -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 8485 invoked by uid 99); 1 Nov 2010 06:05:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 06:05:26 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pw0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Nov 2010 06:05:19 +0000 Received: by pwj6 with SMTP id 6so1203755pwj.32 for ; Sun, 31 Oct 2010 23:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=5KiBYOTVbvJpf/NK50SjXcEvFLzuF8SmT4rDsdWAb/E=; b=vPOgPZaEd11zD/YQHiJ/SSOUGR6EhXZI7bAHEc/RQVYiQM1NMWEwvTynbmtrCSOZzS 3UKNb/3SfmPBovgddVuUT5fLBStEITIFMjk1c0DmCEmMJr8TKZZ8UV6xC4WdgEIL+k/z nlFKdLawszaBr24okFmIaYNadbAahgqd9wKJs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=DKxgSH0eS4oNpGGtHAQ1rbZYOKMcHhmLMjapZdBmvVzOLtLM11dkxcPP/NWNItJxjQ QpHFPpdktOot5KnoGYhnJxr4evyWbB9LHqAZp8FGnwetpQcCl6qMwtNLwiQtV8j6wQ1S c4qCgNnyb8GSUkQygaxB9XwPFP1zJ+Lm6wVOQ= Received: by 10.142.14.9 with SMTP id 9mr4213108wfn.136.1288591498191; Sun, 31 Oct 2010 23:04:58 -0700 (PDT) Received: from [172.21.170.98] ([114.247.10.153]) by mx.google.com with ESMTPS id w14sm8238118wfd.6.2010.10.31.23.04.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 31 Oct 2010 23:04:56 -0700 (PDT) Message-ID: <4CCE587D.2080807@gmail.com> Date: Mon, 01 Nov 2010 14:04:45 +0800 From: Willem Jiang User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: CXF, Camel Transport, and "Can't find InputStream in message" References: <4CC2ED97.6010609@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi J�r�mie, I just applied your patch, it's a part of Camel 2.6-SNAPSHOT now. On 10/24/10 12:22 AM, J�r�mie wrote: > I have created CAMEL-3269 > > https://issues.apache.org/activemq/browse/CAMEL-3269 > > On Sat, Oct 23, 2010 at 4:13 PM, Willem Jiangwrote: > >> Current camel-cxf component just treat the MEP as InOut, so you can get the >> such error. >> Please feel free to create a JIRA[1], so we can keep track of this issue. >> >> [1]https://issues.apache.org/activemq/browse/CAMEL >> >> On 10/23/10 7:34 PM, J�r�mie wrote: >> >>> Hello, >>> >>> >>> I'm using a jaws proxy with camel transport for cxf in order to >>> implement a webservice. >>> >>> Sometimes cxf can't process the response of the camel route, and fail >>> with "Can't find InputStream in message". after some research, i suppose >>> it's a conflict with CamelConduit and the MEP of the message : >>> >>> >>> - CamelConduit, through CxfMessageHelper.getCxfInMessage is looking for >>> the Out message of the exchange >>> >>> - When the route has only one processor like,, >>> , the Out part of the exchange is empty, and so cxf fail >>> >>> - When the route is a pipeline, the in message is automatically copied >>> to the out message, so cxf successfully handle the message >>> >>> >>> i have attached a test-case and a simple patch, but I'm not sure that >>> it's the proper way to correct this error : In getCxfInMessage, if there >>> is no out part in the current exchange, i take the in part. Maybe the >>> CamelConduit should use a ProducerTemplate and not a processor instance� >>> Or maybe I'm not using it the proper way :) >>> >>> >>> Jeremie >>> >>> >> >> -- >> Willem >> ---------------------------------- >> Open Source Integration: http://www.fusesource.com >> Blog: http://willemjiang.blogspot.com (English) >> http://jnn.javaeye.com (Chinese) >> Twitter: http://twitter.com/willemjiang >> > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang