Hello,
I have been running some tests on some code that I have and it involved switching between Xalan 2.2d9 and 2.4d1.
The code I am testing in particular basically takes an XMLReader, sets its contentHandler to be one obtained from a specific Templates object. The result of this is then set to a Serializer.
This was working under 2.2d9 with Xerces 1.4.3. I then tried it under 2.4d1 with xerces 2.0.2 and it worked as well.
However, I now wanted to switch back to 2.2d9 and Xerces 1.4.3 to run some other tests, and this code no longer works. I get Xerces throwing a SAXException in the parse() call, which in turn contiains a RuntimeException that was thrown by Xalan apparently. The top of the stack follows:
java.lang.RuntimeException
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3170)
at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidator.java:1080)
at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch(XMLDocumentScanner.java:1555)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
It does however continue to work under 2.4d1 and Xerces 2.0.2. Interestingly enough, this also works if I use 2.4d1 and Xerces 1.4.3, but NOT if I use 2.2d9 and Xerces 2.0.2.
Can anyone point me in a general direction for this? I have struggled with this for far too long now and am looking for any help or ideas.
Thanks in advance,
Mario-
