axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J Ross Nicoll (JIRA)" <>
Subject [jira] Created: (AXIS-2310) Incorrect catching of java.lang.Error subclasses
Date Fri, 18 Nov 2005 19:58:41 GMT
Incorrect catching of java.lang.Error subclasses

         Key: AXIS-2310
     Project: Apache Axis
        Type: Bug
  Components: WSDL processing  
    Versions: 1.3    
 Environment: Any/all
    Reporter: J Ross Nicoll

Axis catches java.lang.Throwable in several places, which is the superclass of Error. This
means that errors such as OutOfMemoryError and ThreadDeath are caught. According to the Java
virtual machine:

"The class Error and its subclasses are exceptions from which ordinary programs are not ordinarily
expected to recover."

In specific, src/org/apache/axis/wsdl/toJava/ line 406:

        pw.println("        catch (java.lang.Throwable _t) {");

should be:

        pw.println("        catch (java.lang.Exception _e) {");

so that ThreadDeath is not caught, as catching it means that threads never exit properly (see

However, there are likely to be other points where this is an issue, that I haven't found
yet, and checking the code would probably be a good idea...

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