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 67D3210B28 for ; Wed, 16 Oct 2013 09:30:24 +0000 (UTC) Received: (qmail 73775 invoked by uid 500); 16 Oct 2013 09:30:21 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 73646 invoked by uid 500); 16 Oct 2013 09:30:20 -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 73544 invoked by uid 99); 16 Oct 2013 09:30:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 09:30:03 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of sberyozkin@gmail.com designates 209.85.215.171 as permitted sender) Received: from [209.85.215.171] (HELO mail-ea0-f171.google.com) (209.85.215.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 09:29:56 +0000 Received: by mail-ea0-f171.google.com with SMTP id n15so218081ead.2 for ; Wed, 16 Oct 2013 02:29:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=kInFWoIoR46ur04zCpelmRYc3uNWDNSCX/jQEEqp0pQ=; b=dZi9617R342toRkXlCwzyfUdOivqE8PXrTAVuiclY/8YlT+FBQx8URomLR1acE5ib2 Gqn9qNPYAci7pcgSakpXIPuhY3LGI1k/hphUUbCQr+uC3P4a3O1lfimSSqWk2jtiyk9F IrBv/Yd+kQm7kABsHIDlKqqDAvsspfAEX6tTzH92V3XI/pi8bsFuDx7K86DkNM6h5OUh uhSsgCUfx7n21NMaKuxEK4juHAhEf72KKnt0FFsLfSbzJng4id0E4E1Qah4djteSoCnc X24frFKfKRaQ7dAxTNepEdZVn7/7DcHm2lStVIxMLqUqhIxv1Sw1FT03YMMDUxrFb3TU x9tA== X-Received: by 10.14.48.14 with SMTP id u14mr1737595eeb.74.1381915776072; Wed, 16 Oct 2013 02:29:36 -0700 (PDT) Received: from [192.168.2.5] ([89.100.141.107]) by mx.google.com with ESMTPSA id i1sm177286378eeg.0.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Oct 2013 02:29:35 -0700 (PDT) Message-ID: <525E5C65.3000804@gmail.com> Date: Wed, 16 Oct 2013 10:29:09 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: CFX-Bean:headers access Issue References: <1381429693033-5741312.post@n5.nabble.com> <525BFD15.4090708@gmail.com> <1381775689081-5741562.post@n5.nabble.com> In-Reply-To: <1381775689081-5741562.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi On 14/10/13 19:34, Amit wrote: > I think the issue is > org.apache.camel.component.cxf.common.header.CxfHeaderFilterStrategy filters > the Content-Type. If so then IMHO this is a bug that the headers are lost before a CXF JAX-RS endpoint invocation is complete, hopefully you can sort the issue out by applying the header filter strategy somehow, but it is not that a user should be worried about given that it is a basic expectation of JAX-RS that the headers are visible FYI, you might want to bypass cxfrs altogether and link directly to CXF jaxrs:server endpoint; you'd need to have its address using a 'camel' transport scheme I'll open a minor level JIRA to keep the issue tracked, will try to do a patch Cheers, Sergey > so i did try to add custom filter on endpoint but i am > getting below error. Is the headerFilterStrategy on the cfxbean endpoint > working? > > Failed to create route myroute at: >>> > To[cxfbean:speechService?headerFilterStrategy=#nimbusCxfHeaderFilterStrategy] > <<< in route: Route(myroute)[[From[servlet:///speech/2.0/sp... because of > Failed to resolve endpoint: > cxfbean://speechService?headerFilterStrategy=%23nimbusCxfHeaderFilterStrategy > due to: Could not find a suitable setter for property: headerFilterStrategy > as there isn't a setter method with same type: java.lang.String nor type > conversion possible: No type converter available to convert from type: > java.lang.String to the required type: > org.apache.camel.spi.HeaderFilterStrategy with value > nimbusCxfHeaderFilterStrategy > CAUSED BY: java.lang.IllegalArgumentException: Could not find a suitable > setter for property: headerFilterStrategy as there isn't a setter method > with same type: java.lang.String nor type conversion possible: No type > converter available to convert from type: java.lang.String to the required > type: org.apache.camel.spi.HeaderFilterStrategy with value > nimbusCxfHeaderFilterStrategy > STACKTRACE: at org.apache.camel.model.RouteDefinition(addRoutes:883) > > > > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/CFX-Bean-headers-access-Issue-tp5741312p5741562.html > Sent from the Camel - Users mailing list archive at Nabble.com. >