Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-571

Groovy fails to complie against latest Xalan 2.6.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-6
    • 1.1-beta-1
    • None
    • None
    • j2sdk1.4.2_05 + Xalan-2.6.0 in JAVA_HOME/jre/lib/endorsed on WinXP

    Description

      There are some groovy tests that are failing because they are referencing a method in Xalan that was, apparently, removed in more recent versions than Groovy is declaring as a dependency. The tests are...

      groovy.xml.NameSpaceDOMTest
      groovy.xml.SAXTest
      groovy.xml.SmallNamespaceDOMTest
      groovy.xml.VerboseDOMTest
      groovy.xml.XmlTest

      They all fail (have errors) with (common part of stacktrace)...

      java.lang.NoSuchMethodError: org.apache.xalan.templates.OutputProperties.getIntProperty(Ljava/lang/String;Ljava/util/Properties;)I
      at org.apache.xalan.serialize.SerializerToXML.init(SerializerToXML.java:408)
      at org.apache.xalan.serialize.SerializerToXML.init(SerializerToXML.java:538)
      at groovy.xml.TestXmlSupport.createSerializer(TestXmlSupport.java:76)
      at groovy.xml.TestXmlSupport.dump(TestXmlSupport.java:63)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:63)
      at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1117)
      at groovy.lang.MetaClass.invokeMethod(MetaClass.java:307)
      at gjdk.groovy.lang.MetaClass_GroovyReflector.invoke(MetaClass_GroovyReflector.java)
      at groovy.lang.MetaMethod.invoke(MetaMethod.java:110)
      at groovy.lang.MetaClass.doMethodInvoke(MetaClass.java:1117)
      at groovy.lang.MetaClass.invokeMethod(MetaClass.java:307)
      at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:143)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:106)

      This just goes to show that maybe the developers ought to be keeping up on the versions. Here are some examples (first column is what Groovy-core project.xml declares, second is the latest version of that library)....

      asm-1.4.1 | asm-1.4.3
      asm-util-1.4.1 | asm-util-1.4.3
      xerces-2.4.0 | xerces-2.6.2
      xml-apis-1.0.b2 | xml-apis-1.2.01

      Actually, Xalan isn't declared as a dependency. This must assume that JDk1.4+ is being used to compile Groovy. Either way, might want to verify that Groovy is using a forward compatible way to use Xalan in order to work with more recent versions than the old buggy versions that are included in the JDK.

      Jake

      Attachments

        Activity

          People

            paulk Paul King
            hoju Jacob Kjome
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: