DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29894>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29894

TransformerImpl.run() throws obfuscated exceptions

           Summary: TransformerImpl.run() throws obfuscated exceptions
           Product: XalanJ2
           Version: 2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: org.apache.xalan.transformer
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Bugs like 22217 within the XALAN transformer system can produce Exceptions.  
TransformerImpl traps those Exceptions and converts them to RuntimeExceptions. 

Unfortunately as it does this it throws out the call stack of the Exception,
making debugging extra hard.

Fixing this is very easy: replace all calls like
   throw new RuntimeException(e.getMessage());
with
   throw new RuntimeException(e);
The resulting RuntimeException will have a "cause" that holds the stacktrace 
for the orginal problem.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to