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 95CF910F0E for ; Fri, 5 Dec 2014 03:21:13 +0000 (UTC) Received: (qmail 94697 invoked by uid 500); 5 Dec 2014 03:21:13 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 94664 invoked by uid 500); 5 Dec 2014 03:21:13 -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 94655 invoked by uid 99); 5 Dec 2014 03:21:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Dec 2014 03:21:13 +0000 Date: Fri, 5 Dec 2014 03:21:13 +0000 (UTC) From: "Willem Jiang (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CAMEL-8042) CxfClientCallBack handleException does not honour exception 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-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14235001#comment-14235001 ] Willem Jiang commented on CAMEL-8042: ------------------------------------- Hi John, Could you submit a simple test case for it? It could save us some time to reproduce the error. > CxfClientCallBack handleException does not honour exception > ----------------------------------------------------------- > > Key: CAMEL-8042 > URL: https://issues.apache.org/jira/browse/CAMEL-8042 > Project: Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.11.2, 2.14.0 > Environment: Windows > Reporter: John McKeogh > Assignee: Willem Jiang > Fix For: 2.14.1 > > Attachments: greeter-corba.wsdl > > > Hi, > Since Camel 2.11.2, The cxfClientCallBack doesn't seem to be honouring the exception that it is passed in. > Here is a copy of the HandleException funciton before and after 11.2 > 2.11.1 > public void handleException(Map ctx, Throwable ex) { > try { > super.handleException(ctx, ex); > camelExchange.setException(ex); > } finally { > // copy > 2.11.2 > public void handleException(Map ctx, Throwable ex) { > try { > super.handleException(ctx, ex); > // need to call the conduitSelector complete method to enable the fail over feature > ConduitSelector conduitSelector = cxfExchange.get(ConduitSelector.class); > if (conduitSelector != null) { > conduitSelector.complete(cxfExchange); > ex = cxfExchange.getOutMessage().getContent(Exception.class); > if (ex == null && cxfExchange.getInMessage() != null) { > ex = cxfExchange.getInMessage().getContent(Exception.class); > } > if (ex != null) { > camelExchange.setException(ex); > } > } else { > camelExchange.setException(ex); > } > } finally { > So for our testcase where we have a cxf client calling through camel to a Corba web service, the exception that the webservice is passing back to camel is no longer honoured. > I believe this change was introduced by the following jira: > https://issues.apache.org/jira/browse/CAMEL-6609 > I have attached the wsdl of the corba web-service. > In the service we are calling PingMe expecting to get back a PingMeFault_Exception. The exception is set in the cxf corba binding and reached the exception handler in camel. But the exception is no longer being sent back to the client. Instead a generic SoapFaultException is reaching the client. > Cheers, > John. -- This message was sent by Atlassian JIRA (v6.3.4#6332)