Derby
  1. Derby
  2. DERBY-4674

BooleanValuesTest fails if Xalan is not available

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: 10.7.1.1
    • Component/s: Test
    • Labels:
      None
    • Bug behavior facts:
      Regression Test Failure

      Description

      If Xalan is not available, BooleanValuesTest fails. See for example this error log from the nightly testing:
      http://dbtg.foundry.sun.com/derby/test/Daily/jvm1.4/testing/Limited/testSummary-947309.html

      The error above is actually caused by the Xalan version bundled with J2SE 1.4.2 being too old for Derby, not that it's missing. Here's what the error looks like on Java SE 6 without xalan.jar in the classpath:

      1) test_01_datatypeCount(org.apache.derbyTesting.functionTests.tests.lang.BooleanValuesTest)java.sql.SQLException: Failed to locate 'Xalan' API or implementation classes. XML operations are not permitted unless these classes are in your classpath.

      1. derby-4674-02-aa-noXML.diff
        7 kB
        Rick Hillegas
      2. check-xalan.diff
        1 kB
        Knut Anders Hatlen

        Activity

        Hide
        Knut Anders Hatlen added a comment -

        Thanks Rick. The test appears to be running fine on 1.4.2 now, and also on Java 6 without Xalan in the classpath. Closing the issue.

        Show
        Knut Anders Hatlen added a comment - Thanks Rick. The test appears to be running fine on 1.4.2 now, and also on Java 6 without Xalan in the classpath. Closing the issue.
        Hide
        Rick Hillegas added a comment -

        Thanks for getting this test fixed on 1.4, Knut. I am committing a further improvement: derby-4674-02-aa-noXML.diff. This patch re-enables BooleanValuesTest on jdk 1.4. Now the test avoids the XML datatype if it is not supported by the test configuration.

        Committed at subversion revision 947656.

        Touches the following files:

        M java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java

        Show
        Rick Hillegas added a comment - Thanks for getting this test fixed on 1.4, Knut. I am committing a further improvement: derby-4674-02-aa-noXML.diff. This patch re-enables BooleanValuesTest on jdk 1.4. Now the test avoids the XML datatype if it is not supported by the test configuration. Committed at subversion revision 947656. Touches the following files: M java/testing/org/apache/derbyTesting/functionTests/tests/lang/BooleanValuesTest.java
        Hide
        Knut Anders Hatlen added a comment -

        Committed revision 947442.

        Show
        Knut Anders Hatlen added a comment - Committed revision 947442.
        Hide
        Knut Anders Hatlen added a comment -

        check-xalan.diff makes BooleanValuesTest's suite() method check if we have the required XML libraries before running the test. If we don't, the test is skipped. I'll commit shortly to get the nightly tests to run cleanly again.

        Show
        Knut Anders Hatlen added a comment - check-xalan.diff makes BooleanValuesTest's suite() method check if we have the required XML libraries before running the test. If we don't, the test is skipped. I'll commit shortly to get the nightly tests to run cleanly again.

          People

          • Assignee:
            Knut Anders Hatlen
            Reporter:
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development