Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6225552

[REGRESSION] NoSuchMethodException encountered by XSLT transformer while using JDK 1.5

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 5.0u1
    • xml

      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

            duke J. Duke
            sanjsaho Sanjeeb Sahoo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: