geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GERONIMO-6394) saaj factories swollow the exceptions
Date Tue, 02 Oct 2012 14:57:07 GMT
Daniel Kulp created GERONIMO-6394:
-------------------------------------

             Summary: 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

Mime
View raw message