Derby
  1. Derby
  2. DERBY-1897

junit test jdbcapi/_Suite fails with wctme5.7_foundation (j9 -jcl:foun) with NoClassDefFoundError: javax.sql.PooledConnection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 10.2.1.6, 10.3.1.4
    • Fix Version/s: 10.2.2.0, 10.3.1.4
    • Component/s: Test
    • Labels:
      None
    • Environment:
      windows with wctme5.7's jcl:foun implementation of JSR 169 - j9_foundation or wctme5.7_foundation.
    • Urgency:
      Normal

      Description

      Running the jdbcapi/_Suite with the test harness with wctme5.7_foundation results in the following error:

      0 add
      > Failed to invoke suite():java.lang.NoClassDefFoundError: javax.sql.PooledConnection
      Test Failed.

      This is the only information available.

      This error is especially strange because wctme5.7_foundation should support javax.sql.PooledConnection (in contrast to wctme5.7, which is not JDBC3.0 complient).

        Activity

        Hide
        Myrna van Lunteren added a comment -

        The same problem occurs without the 'old' test harness, i.e. when I run:

        j9 -jcl:foun10 -Xbootclasspath/a:c:\wctme5.7\ive\lib\jdbc.jar junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite

        I see the same error:

        Failed to invoke suite():java.lang.NoClassDefFoundError: javax.sql.PooledConnection

        In actual fact, indeed the javax.sql.PooledConnection isn't in the jdbc.jar I have for/from this product.
        Should it be there?

        Myrna

        Show
        Myrna van Lunteren added a comment - The same problem occurs without the 'old' test harness, i.e. when I run: j9 -jcl:foun10 -Xbootclasspath/a:c:\wctme5.7\ive\lib\jdbc.jar junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.jdbcapi._Suite I see the same error: Failed to invoke suite():java.lang.NoClassDefFoundError: javax.sql.PooledConnection In actual fact, indeed the javax.sql.PooledConnection isn't in the jdbc.jar I have for/from this product. Should it be there? Myrna
        Hide
        Deepa Remesh added a comment -

        I too don't see this class in the jdbc.jar for wctme5.7/foundation. JSR169 is a subset of JDBC3.0. javax.sql.PooledConnection is not listed in the JSR169 API here: http://developers.sun.com/techtopics/mobility/configurations/articles/cdc/jdbc/

        I think we will have to exclude tests which use above class from running in this environment.

        Show
        Deepa Remesh added a comment - I too don't see this class in the jdbc.jar for wctme5.7/foundation. JSR169 is a subset of JDBC3.0. javax.sql.PooledConnection is not listed in the JSR169 API here: http://developers.sun.com/techtopics/mobility/configurations/articles/cdc/jdbc/ I think we will have to exclude tests which use above class from running in this environment.
        Hide
        Daniel John Debrunner added a comment -

        Committed revision 465020.

        DataSourcePropertiesTest required PooledConnection when loading it, made it only be loaded in the _Suite file if JDBC 3 was supported.

        suites.All passes for me on wctme 5.7 foundation on windows.

        Show
        Daniel John Debrunner added a comment - Committed revision 465020. DataSourcePropertiesTest required PooledConnection when loading it, made it only be loaded in the _Suite file if JDBC 3 was supported. suites.All passes for me on wctme 5.7 foundation on windows.
        Hide
        Myrna van Lunteren added a comment -

        need to set fixed in and port to 10.2

        Show
        Myrna van Lunteren added a comment - need to set fixed in and port to 10.2
        Hide
        Myrna van Lunteren added a comment -

        svn merge -r 465019:465020 https://svn.apache.org/repos/asf/db/derby/code/trunk
        and committed with: http://svn.apache.org/viewvc?view=rev&revision=476838
        M java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java

        Show
        Myrna van Lunteren added a comment - svn merge -r 465019:465020 https://svn.apache.org/repos/asf/db/derby/code/trunk and committed with: http://svn.apache.org/viewvc?view=rev&revision=476838 M java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/_Suite.java

          People

          • Assignee:
            Daniel John Debrunner
            Reporter:
            Myrna van Lunteren
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development