You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Brett McLaughlin <br...@earthlink.net> on 2000/04/13 01:57:28 UTC
Error using XSLTProcessor
I'm getting the following odd error running a servlet that has the
following code:
try {
XSLTProcessor processor =
XSLTProcessorFactory.getProcessor();
// Transform XML with XSL stylesheet
processor.process(new XSLTInputSource(in),
new XSLTInputSource(new
FileInputStream(stylesheet)),
new
XSLTResultTarget(res.getOutputStream()));
} catch (Exception e) {
PrintWriter out = res.getWriter();
out.println("Error: " + e.getMessage());
out.close();
}
If I take out the complete try/catch block, it works fine.
Additionally, I don't get the error output I expected in my catch, but
rather an Internal Server Error. What's even odder is that it works
fine on my Wintel machine, but not on the server, which is Solaris 2.7,
JSDK 2.0 (Apache JServ)... any ideas?
Here's the error in my server logs:
java.lang.VerifyError: (class:
org/apache/xalan/xpath/xml/XMLParserLiaisonDefault, method: toMarkup
signature:
(Lorg/w3c/dom/Document;Ljava/io/Writer;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ[Ljava/lang/Stri
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at org.apache.jserv.JServConnection.processRequest(Compiled Code)
at org.apache.jserv.JServConnection.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)
Thanks for the help
-brett