Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5397110B2F for ; Wed, 27 Nov 2013 16:02:11 +0000 (UTC) Received: (qmail 99109 invoked by uid 500); 27 Nov 2013 16:01:50 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 98980 invoked by uid 500); 27 Nov 2013 16:01:38 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 98944 invoked by uid 99); 27 Nov 2013 16:01:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Nov 2013 16:01:35 +0000 Date: Wed, 27 Nov 2013 16:01:35 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (GERONIMO-6509) XMLStreamException not calling "super(th)" in constructors 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/GERONIMO-6509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved GERONIMO-6509. --------------------------------------- Resolution: Fixed > XMLStreamException not calling "super(th)" in constructors > ---------------------------------------------------------- > > Key: GERONIMO-6509 > URL: https://issues.apache.org/jira/browse/GERONIMO-6509 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: specs > Reporter: Daniel Kulp > Assignee: Guillaume Nodet > > The XMLStreamException in spec stax-api 1.2 is not calling the super(th) or super(msg, th) for the constructors that take a throwable. There are two problems this causes: > 1) The "cause" is never set so the exception.getCause() always returns null and potentially important information in the cause is discarded. > 2) For the super(th) one, no message is set at all. Thus, all information that could be useful is lost unless I specifically cast the exception to an XMLStreamException and call the getNestedException(). Any generic exception handling mechanism would not be able to provide a useful error message. -- This message was sent by Atlassian JIRA (v6.1#6144)