geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Heinicke (JIRA) <>
Subject [jira] Erstellt: (GERONIMO-1519) ResourceException.toString() can return null
Date Fri, 20 Jan 2006 17:49:42 GMT
ResourceException.toString() can return null

         Key: GERONIMO-1519
     Project: Geronimo
        Type: Bug
  Components: connector  
    Reporter: Jörg Heinicke
    Priority: Minor

javax.resource.ResourceException overwrites toString() like the following:

public String toString() {
    return getMessage();

Instantiating ResourceException without parameter getMessage() will return null - and this
leads to NPEs in nearly every environment when the stacktrace is printed:

    at java.lang.Throwable.printStackTrace(

So I propose to either remove the toString() implemenation (java.lang.Throwable implements
it correctly) or to implement it correctly in ResourceException, i.e. not returning null.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message