Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AE1F87881 for ; Tue, 29 Nov 2011 19:14:03 +0000 (UTC) Received: (qmail 74536 invoked by uid 500); 29 Nov 2011 19:14:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 74453 invoked by uid 500); 29 Nov 2011 19:14: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 74440 invoked by uid 99); 29 Nov 2011 19:14:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 19:14:03 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Nov 2011 19:14:01 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1C963A6D5A for ; Tue, 29 Nov 2011 19:13:40 +0000 (UTC) Date: Tue, 29 Nov 2011 19:13:40 +0000 (UTC) From: "Daniel Kulp (Assigned) (JIRA)" To: issues@cxf.apache.org Message-ID: <169449188.22901.1322594020118.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <424602852.11175.1322208999985.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Assigned] (CXF-3934) JaxWsClientProxy clears stacktrace of custom exception 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-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp reassigned CXF-3934: -------------------------------- Assignee: Daniel Kulp > JaxWsClientProxy clears stacktrace of custom exception > ------------------------------------------------------ > > Key: CXF-3934 > URL: https://issues.apache.org/jira/browse/CXF-3934 > Project: CXF > Issue Type: Bug > Components: JAX-WS Runtime > Affects Versions: 2.3.1 > Environment: AS Jboss 5.1, jbossws-cxf-3.4.1, cxf-2.3.1 > Reporter: Anton Zagorulko > Assignee: Daniel Kulp > > Web service method throws custom exception annotated by @WebFault, cxf endpoint configuration has faultStackTraceEnabled=true and exceptionMessageCauseEnabled=true properties. On client side we have response with filled stacktrace element in fault/detail then through InFaultInterceptors new instance of our custom exception is created and filled with stacktrace from response. Our custom exception with stacktrace is intercepted in JaxWsClientProxy when its stacktrace is filled again using fillInStackTrace() as a result we have empty stacktrace. > line 120 ..try { > if (isAsync) { > result = invokeAsync(method, oi, params); > } else { > result = invokeSync(method, oi, params); > } > } catch (WebServiceException wex) { > throw wex.fillInStackTrace(); > } catch (Exception ex) { > for (Class excls : method.getExceptionTypes()) { > if (excls.isInstance(ex)) { > throw ex.fillInStackTrace(); > } > } > } > ... > I doubt if this behavior according to custom exceptions is correct because I need this server stacktrace on client. Same code exists in cxf 2.5 too. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira