[ http://issues.apache.org/jira/browse/XALANJ-1902?page=all ]
Brian Minchau updated XALANJ-1902: ---------------------------------- Version: 2.6 (was: Latest Development Code) > TransformerImpl.run() throws obfuscated exceptions > -------------------------------------------------- > > Key: XALANJ-1902 > URL: http://issues.apache.org/jira/browse/XALANJ-1902 > Project: XalanJ2 > Type: Bug > Components: transformation, Xalan-interpretive > Versions: 2.6 > Environment: Operating System: Other > Platform: Other > Reporter: John J. Barton > Assignee: Xalan Developers Mailing List > > 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. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]