United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6225552 [REGRESSION] NoSuchMethodException encountered by XSLT transformer while using JDK 1.5
6225552 : [REGRESSION] NoSuchMethodException encountered by XSLT transformer while using JDK 1.5

Details
Type:
Bug
Submit Date:
2005-02-04
Status:
Resolved
Updated Date:
2012-04-25
Project Name:
JDK
Resolved Date:
2005-06-21
Component:
xml
OS:
solaris
Sub-Component:
javax.xml.transform
CPU:
sparc
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0u1
Fixed Versions:
1.4.0

Related Reports
Relates:

Sub Tasks

Description
There is a simple test case attached here with with a README also. 
I have a simple java class that takes an XSL file and a XML file as input and uses XSLT processor to transform. When I use JDK 1.4.2_06, things work as expected. But when I switched to using JDK 1.5.0_01, I got the following exception...

/share/builds/components/jdk/1.5.0_01/SunOS/bin/java TestCase foo.sch schematron-basic.xsl report
Exception in thread "main" java.lang.NoSuchMethodError: GregorSamsa.process$dash$root(Lcom/sun/org/apache/xalan/internal/xsltc/DOM;Lcom/sun/org/apache/xml/internal/dtm/DTMAxisIterator;Lcom/sun/org/apache/xml/internal/serializer/SerializationHandler;ILjava/lang/Object;)V
        at GregorSamsa.applyTemplates()
        at GregorSamsa.applyTemplates()
        at GregorSamsa.transform()
        at com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:594)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:640)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:279)
        at TestCase.transform(TestCase.java:56)
        at TestCase.transform(TestCase.java:38)
        at TestCase.main(TestCase.java:27)

The above JDK version is ...
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode)

In my environment there is no JAVA_HOME set, nor there is any CLASSPATH variable set.

The XSL file that is being used here is the schematron XSL file.
###@###.### 2005-2-04 12:16:24 GMT

                                    

Comments
EVALUATION

Fixed in JAXP 1.4 at java.net. Also fixed in JAXP 1.3 branch
###@###.### 2005-06-21 03:26:51 GMT
                                     
2005-06-21



Hardware and Software, Engineered to Work Together