Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 44887 invoked from network); 5 Nov 2009 05:34:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Nov 2009 05:34:44 -0000 Received: (qmail 777 invoked by uid 500); 5 Nov 2009 05:34:44 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 727 invoked by uid 500); 5 Nov 2009 05:34:44 -0000 Mailing-List: contact commits-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 commits@camel.apache.org Received: (qmail 718 invoked by uid 99); 5 Nov 2009 05:34:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 05:34:44 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Nov 2009 05:34:42 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 80DF523889DD; Thu, 5 Nov 2009 05:34:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r832999 - /camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java Date: Thu, 05 Nov 2009 05:34:10 -0000 To: commits@camel.apache.org From: ningjiang@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091105053410.80DF523889DD@eris.apache.org> Author: ningjiang Date: Thu Nov 5 05:34:10 2009 New Revision: 832999 URL: http://svn.apache.org/viewvc?rev=832999&view=rev Log: CAMEL-2129 using IOHelper to create the IOException Modified: camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java Modified: camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java URL: http://svn.apache.org/viewvc/camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java?rev=832999&r1=832998&r2=832999&view=diff ============================================================================== --- camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java (original) +++ camel/branches/camel-1.x/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/transport/CamelConduit.java Thu Nov 5 05:34:10 2009 @@ -31,6 +31,7 @@ import org.apache.camel.component.cxf.util.CxfHeaderHelper; import org.apache.camel.impl.DefaultCamelContext; import org.apache.camel.spi.HeaderFilterStrategy; +import org.apache.camel.util.IOHelper; import org.apache.cxf.Bus; import org.apache.cxf.common.logging.LogUtils; import org.apache.cxf.configuration.Configurable; @@ -180,7 +181,7 @@ }); // Throw the exception that the template get if (exchange.getException() != null) { - throw new IOException("Can't get the response message. Caused by " + exchange.getException()); + throw IOHelper.createIOException("Can't send the request message.", exchange.getException()); } exchange.setProperty(CxfConstants.CXF_EXCHANGE, outMessage.getExchange()); if (!isOneWay) { @@ -196,7 +197,7 @@ exchange, true); } catch (Exception ex) { // Throw IOException here - throw new IOException("Can't get the response message. Caused by: " + ex); + throw IOHelper.createIOException("Can't get the response message. ", ex); } incomingObserver.onMessage(inMessage); }