FULL PRODUCT VERSION :
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
A DESCRIPTION OF THE PROBLEM :
JRE 1.6.0_17 comes with a JAXP default implementation which currently is a buggy XALAN release: Large XSL files cannot be compiled, leading to an error message. Latest XALAN 2.7.1 contains a fix, but that one is not part of the JRE bundle so far.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Compile a XSL transformation file being about 128 to 256 KB large.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Should compile without further problems.
ACTUAL -
XALAN contained in com.sun.org.apache complains that it cannot load the translet.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
javax.xml.transform.TransformerConfigurationException: Die Translet-Klasse 'GregorSamsa' konnte nicht geladen werden.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Java Test Driver:
package de.quipsy.xslt;
import java.io.File;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.stream.StreamSource;
public final class GregorSamsa {
public static final void main(final String[] a) throws Throwable {
TransformerFactory.newInstance().newTransformer(new StreamSource(new File("2010_Kundenreklamationen.XFO")));
}
}
The used XSL Sample File can be requested by email.
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Replace JVM-bundled XALAN by latest "original" XALAN-2.7.1 (to be downloaded from apache.org) -- Copy the following files into jre6/lib/ext:
serializer.jar
xalan.jar
xercesImpl.jar
xml-apis.jar