Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 32705 invoked from network); 7 Oct 2008 22:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2008 22:47:04 -0000 Received: (qmail 43482 invoked by uid 500); 7 Oct 2008 22:47:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 43467 invoked by uid 500); 7 Oct 2008 22:47:03 -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 43456 invoked by uid 99); 7 Oct 2008 22:47:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2008 15:47:03 -0700 X-ASF-Spam-Status: No, hits=-1999.9 required=10.0 tests=ALL_TRUSTED,DNS_FROM_SECURITYSAGE 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; Tue, 07 Oct 2008 22:46:08 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3D743234C210 for ; Tue, 7 Oct 2008 15:46:44 -0700 (PDT) Message-ID: <1257169452.1223419604250.JavaMail.jira@brutus> Date: Tue, 7 Oct 2008 15:46:44 -0700 (PDT) From: "Sean Wellington (JIRA)" To: issues@cxf.apache.org Subject: [jira] Updated: (CXF-1848) Can't specify SOAP faultcode for Exceptions that use @WebFault In-Reply-To: <1834888350.1223419484564.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CXF-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Wellington updated CXF-1848: --------------------------------- Summary: Can't specify SOAP faultcode for Exceptions that use @WebFault (was: Can't specify SOAP faultcode for exceptions) > Can't specify SOAP faultcode for Exceptions that use @WebFault > -------------------------------------------------------------- > > Key: CXF-1848 > URL: https://issues.apache.org/jira/browse/CXF-1848 > Project: CXF > Issue Type: Improvement > Components: JAX-WS Runtime, Soap Binding > Affects Versions: 2.1.2 > Reporter: Sean Wellington > > All exceptions with @WebFault annotation are forced to carry a SOAP faultcode of "Server". There is no way to change this. > I traced through the code and the logic in AbstractInvoker seems to be: > 1. If the exception is a subclass of Fault, throw it as-is; > 2. Otherwise wrap it in a new instance of Fault, and use the faultcode of "Server" as a default. > This is fine until the exception bubbles up to WebFaultOutInterceptor, around line 94, where it filters out anything that isn't a subclass of exception (Fault is a RuntimeException). So the net effect is that the getFaultInfo() method is ignored. > The only workaround is to totally roll your own exception responses using the DOM APIs via Fault.getDetails(). This is undesirable. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.