Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 21250 invoked from network); 15 Oct 2009 14:16:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Oct 2009 14:16:54 -0000 Received: (qmail 83227 invoked by uid 500); 15 Oct 2009 14:16:54 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 83189 invoked by uid 500); 15 Oct 2009 14:16:53 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 83179 invoked by uid 99); 15 Oct 2009 14:16:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 14:16:53 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 14:16:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 443CA234C045 for ; Thu, 15 Oct 2009 07:16:31 -0700 (PDT) Message-ID: <546244820.1255616191265.JavaMail.jira@brutus> Date: Thu, 15 Oct 2009 07:16:31 -0700 (PDT) From: "Daniel Kulp (JIRA)" To: issues@cxf.apache.org Subject: [jira] Commented: (CXF-2472) if exception in fault handling, throw fault instead of processing exception In-Reply-To: <131902481.1255595551315.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-2472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12766071#action_12766071 ] Daniel Kulp commented on CXF-2472: ---------------------------------- I'm not quite sure I agree with this. If there is an XMLStreamException being thrown, that means the actual SOAP fault was not able to be transferred back to the client. Figuring out why that occurred is usually more important than the original fault. We really need to log both in this case. Most likely, the SOAP##FaultOutInterceptors would need to log something like "Could not send SOAP fault back due to " + xe.getMessage() or similar if we rethrow the original fault back. > if exception in fault handling, throw fault instead of processing exception > --------------------------------------------------------------------------- > > Key: CXF-2472 > URL: https://issues.apache.org/jira/browse/CXF-2472 > Project: CXF > Issue Type: Improvement > Components: Soap Binding > Affects Versions: 2.2.4, 2.2.5 > Reporter: Michael Allman > Priority: Minor > Attachments: SoapFaultOutInterceptors.patch > > > In Soap11FaultOutInterceptor and Soap12FaultOutInterceptor, if we encounter an XMLStreamException writing the fault, we throw a new Fault wrapping that processing exception. Runtime exceptions are not caught, and the original fault is lost. I've attached a patch addressing both of these issues. > With this patch, if there's a processing exception we will see the original fault in the server logs rather than the processing exception. From my experience, logging this fault is much more valuable than logging the processing exception. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.