From dev-return-95677-apmail-geronimo-dev-archive=geronimo.apache.org@geronimo.apache.org Tue Oct 2 14:57:09 2012 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 339B1DE8A for ; Tue, 2 Oct 2012 14:57:09 +0000 (UTC) Received: (qmail 40483 invoked by uid 500); 2 Oct 2012 14:57:08 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 40362 invoked by uid 500); 2 Oct 2012 14:57:08 -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 40073 invoked by uid 99); 2 Oct 2012 14:57:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 14:57:07 +0000 Date: Wed, 3 Oct 2012 01:57:07 +1100 (NCT) From: "Daniel Kulp (JIRA)" To: dev@geronimo.apache.org Message-ID: <234217833.154525.1349189827913.JavaMail.jiratomcat@arcas> In-Reply-To: <1158979258.154520.1349189827541.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (GERONIMO-6394) saaj factories swollow the exceptions 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-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Kulp updated GERONIMO-6394: ---------------------------------- Attachment: patch.txt > saaj factories swollow the exceptions > ------------------------------------- > > Key: GERONIMO-6394 > URL: https://issues.apache.org/jira/browse/GERONIMO-6394 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: specs > Reporter: Daniel Kulp > Attachments: patch.txt > > > The various factories in the SAAJ specs jar do something like: > {code} > throw new SOAPException(exception.getMessage()); > {code} > which causes just the message to propagate and not the full exception. If the cause is something like an NPE, it's very hard to diagnose and fix. Would suggest using: > {code} > throw new SOAPException(exception.getMessage(), exception); > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira