From issues-return-48608-archive-asf-public=cust-asf.ponee.io@camel.apache.org Wed Jan 17 08:50:05 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id 4AD0018062C for ; Wed, 17 Jan 2018 08:50:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3AE86160C35; Wed, 17 Jan 2018 07:50:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5CA94160C1B for ; Wed, 17 Jan 2018 08:50:04 +0100 (CET) Received: (qmail 24210 invoked by uid 500); 17 Jan 2018 07:50:03 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 24200 invoked by uid 99); 17 Jan 2018 07:50:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2018 07:50:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id E1D83D2AB8 for ; Wed, 17 Jan 2018 07:50:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.911 X-Spam-Level: X-Spam-Status: No, score=-99.911 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id NtXalRmzu2_U for ; Wed, 17 Jan 2018 07:50:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7CB905F58C for ; Wed, 17 Jan 2018 07:50:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id A7879E002F for ; Wed, 17 Jan 2018 07:50:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 68821212F5 for ; Wed, 17 Jan 2018 07:50:00 +0000 (UTC) Date: Wed, 17 Jan 2018 07:50:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-12149) Failed to invoke camel cxfrs client due to Content-Type header couldn't be retrieved and passed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-12149?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D163= 28408#comment-16328408 ]=20 ASF GitHub Bot commented on CAMEL-12149: ---------------------------------------- xldai opened a new pull request #2179: fix CAMEL-12149 ensure the CONTENT_T= YPE header can be retrieved URL: https://github.com/apache/camel/pull/2179 =20 =20 =20 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Failed to invoke camel cxfrs client due to Content-Type header couldn't b= e retrieved and passed > -------------------------------------------------------------------------= ---------------------- > > Key: CAMEL-12149 > URL: https://issues.apache.org/jira/browse/CAMEL-12149 > Project: Camel > Issue Type: Bug > Components: camel-cxfrs > Affects Versions: 2.19.4, 2.20.1 > Reporter: Xilai Dai > Priority: Major > > As of Camel 2.19.x, async support is added by default in the CxfRsProduce= r. Considering this simple rsClient: > {code:java} > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0address=3D"http://localhost:8040/se= rvices/eventlogging/events" serviceClass=3D"org.talend.esb.eventlogging.sen= der.rest.EventLogging" > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0loggingFeatureEnabled=3D"true"> > =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0 > > > =C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 > =C2=A0=C2=A0 =C2=A0 > {code} > It works well with the right Content-Type setting in Camel 2.17.x/Camel.2= .18.x, but the Content-Type will be wildcard and "No message body writer ha= s been found ..." will be thrown when invoke the restClient in Camel 2.19.x= /2.20.x. > {code:java} > ---------------------------- > ID: 1 > Address: http://localhost:8040/services/eventlogging/events > Http-Method: POST > Content-Type: */* > Headers: {Content-Encoding=3D[UTF-8], Content-Type=3D[*/*], Content-Langu= age=3D[en_US], Accept=3D[*/*]} > -------------------------------------- > [mel-1) thread #0 - timer://foo] CxfRsProducer=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ERROR Failed request > javax.ws.rs.ProcessingException: No message body writer has been found fo= r class org.talend.esb.eventlogging.sender.rest.EventList > , ContentType: */* > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .AbstractClient.reportMessageHandlerProblem(AbstractClient.java:810) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .AbstractClient.writeBody(AbstractClient.java:497) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .WebClient$BodyWriter.doWriteBody(WebClient.java:1178) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .AbstractClient$AbstractBodyWriter.handleMessage(AbstractClient.java:1174) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.phase.PhaseI= nterceptorChain.doIntercept(PhaseInterceptorChain.java:308) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .AbstractClient.doRunInterceptorChain(AbstractClient.java:677) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .WebClient.doInvokeAsync(WebClient.java:952) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .WebClient.doInvokeAsyncCallback(WebClient.java:915) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.cxf.jaxrs.client= .WebClient$AsyncInvokerImpl.method(WebClient.java:1440) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.camel.component.= cxf.jaxrs.CxfRsProducer.invokeAsyncHttpClient(CxfRsProducer.java:175) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 at org.apache.camel.component.= cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:116){code} > (https://github.com/xldai/test/tree/master/test-cxfrs is created for easi= ly reproduce this issue) -- This message was sent by Atlassian JIRA (v7.6.3#76005)