Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4051419915 for ; Wed, 13 Apr 2016 09:45:09 +0000 (UTC) Received: (qmail 61188 invoked by uid 500); 13 Apr 2016 09:39:21 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 60430 invoked by uid 500); 13 Apr 2016 09:39:21 -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 59794 invoked by uid 99); 13 Apr 2016 09:36:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 09:36:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7F7292C1F6C for ; Wed, 13 Apr 2016 09:36:25 +0000 (UTC) Date: Wed, 13 Apr 2016 09:36:25 +0000 (UTC) From: "Akitoshi Yoshida (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-9864) Calling getBody(String.class) can break a simple Camel CXF proxy route MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9864?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15238957#comment-15238957 ] Akitoshi Yoshida commented on CAMEL-9864: ----------------------------------------- I am looking into it... > Calling getBody(String.class) can break a simple Camel CXF proxy route > ---------------------------------------------------------------------- > > Key: CAMEL-9864 > URL: https://issues.apache.org/jira/browse/CAMEL-9864 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.16.3 > Reporter: Christian Schneider > Fix For: 2.16.4 > > > A simple CXF proxy route like this works: > from("cxf://http://localhost:8122/myservice_proxy?dataFormat=PAYLOAD&wsdlURL=classpath:/DemoService_0.1.wsdl") > .to("cxf://http://localhost:8121/myservice?dataFormat=PAYLOAD&wsdlURL=classpath:/DemoService_0.1.wsdl") > If you add a processor that simply reads the body then resulting route above will always return an empty body: > .process(new Processor() { > > @Override > public void process(Exchange exchange) throws Exception { > exchange.getIn().getBody(String.class); > } > }) > I suspect this is a bug in the new stream caching as the code works in camel 2.15.x and the main difference in 2.16 is the added CachedCxfPayload. > I will add a small github repo that shows the issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)