When Saxon is used with the Crimson XML parser, an
exception occurring in Saxon code while parsing is in
progress is not properly reported. Crimson wraps the
exception in a SAXException and returns it from the
call of parse(), but without calling the ErrorHandler.
The result is that Saxon terminates with the message
"Transformation failed - run-time errors were
reported", but with no indication of what caused the
failure.
Applies to 7.3 and probably all earlier releases when
Crimson is used as the parser. The problem only
manifests itself when errors occur in parser
call-backs, which might be because of an internal Saxon
problem, or perhaps a problem in an extension function
called in preview mode.
Source code fixed: in the method
net.sf.saxon.event.Builder#build(), in the catch block
for errors from parser.parse(), add the code:
if (!failed) {
// the error handler has not been called
TransformerException te = new
TransformerException(err2);
te.printStackTrace();
throw te;
}
Michael Kay
Diagnostics
v7.3
Public
|
Date: 2002-12-10 15:46 Logged In: YES |
| Field | Old Value | Date | By |
|---|---|---|---|
| close_date | 2002-12-10 15:45 | 2002-12-10 15:46 | mhkay |
| status_id | Open | 2002-12-10 15:45 | mhkay |
| resolution_id | None | 2002-12-10 15:45 | mhkay |
| close_date | - | 2002-12-10 15:45 | mhkay |
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use