You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Knut Anders Hatlen (JIRA)" <ji...@apache.org> on 2012/09/06 06:06:08 UTC

[jira] [Created] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Knut Anders Hatlen created DERBY-5917:
-----------------------------------------

             Summary: NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
                 Key: DERBY-5917
                 URL: https://issues.apache.org/jira/browse/DERBY-5917
             Project: Derby
          Issue Type: Bug
          Components: Test
    Affects Versions: 10.10.0.0
            Reporter: Knut Anders Hatlen
            Assignee: Knut Anders Hatlen


The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:

- The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)

- The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5917:
--------------------------------------

    Attachment: d5917-2a.diff

Attaching d5917-2a which fixes the remaining issues:

XATransactionTest: Use XATestUtil to create Xid instead of using ClientXid (also needed to add hashCode() and equals() methods to the utilXid class used by XATestUtil so that it could be used in assertEquals().)

CacheSessionDataTest: Test for usingDerbyNetClient() instead of instanceof client.am.Connection

Compatibility tests: disable if derbyclient.jar or derbynet.jar is missing.

derbyrunjartest: Don't test the server command if the server is not available.

All the regression tests ran cleanly with the patch (tested both with and without server/client jars in classpath).
                
> NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-5917
>                 URL: https://issues.apache.org/jira/browse/DERBY-5917
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5917-1a.diff, d5917-2a.diff
>
>
> The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:
> - The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)
> - The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450658#comment-13450658 ] 

Knut Anders Hatlen commented on DERBY-5917:
-------------------------------------------

There are still two tests failing when running without client and server jars. Didn't notice them in the first attempt, since the failure in the suite() method prevented the jdbcapi from running. XATransactionTest fails because it uses the ClientXid class directly, also when running embedded tests. CacheSessionDataTest fails because it checks if the connection is a client.am.Connection instance in order to find out if it's running with the client.
                
> NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-5917
>                 URL: https://issues.apache.org/jira/browse/DERBY-5917
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5917-1a.diff
>
>
> The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:
> - The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)
> - The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen closed DERBY-5917.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 10.10.0.0

Committed revision 1382791.
                
> NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-5917
>                 URL: https://issues.apache.org/jira/browse/DERBY-5917
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>             Fix For: 10.10.0.0
>
>         Attachments: d5917-1a.diff, d5917-2a.diff
>
>
> The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:
> - The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)
> - The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Knut Anders Hatlen updated DERBY-5917:
--------------------------------------

    Attachment: d5917-1a.diff

The patch d5917-1a.diff makes the following changes:

- TestConfiguration: Shortcut helper methods for client/server tests earlier if the client or server is missing, to prevent attempts to load client classes when building intermediate test suites that are eventually discarded.

- Wrapper41, Wrapper41Conn, Wrapper41DataSource: Reorder the instanceof checks in the constructors so that the checks for embedded classes come first. Then we won't check for client classes if only the embedded tests run.

This changes makes the previously failing tests pass when run without client and server jars. I've also successfully run the full regression suite (with client/server jars).
                
> NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-5917
>                 URL: https://issues.apache.org/jira/browse/DERBY-5917
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5917-1a.diff
>
>
> The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:
> - The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)
> - The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-5917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450652#comment-13450652 ] 

Knut Anders Hatlen commented on DERBY-5917:
-------------------------------------------

Committed revision 1382032.
                
> NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
> ---------------------------------------------------------------------------------
>
>                 Key: DERBY-5917
>                 URL: https://issues.apache.org/jira/browse/DERBY-5917
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.10.0.0
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d5917-1a.diff
>
>
> The following errors are seen when running tests without derbynet.jar and derbyclient.jar in the classpath:
> - The suite() method in jdbcapi.ClientConnectionPoolDataSourceTest fails with a NoClassDefFoundError (for org/apache/derby/jdbc/ClientConnectionPoolDataSource)
> - The test_jdbc4_1() test cases in jdbc4.CallableStatementTest, jdbc4.DataSourceTest, jdbc4.ConnectionMethodsTest and jdbc4.AbortTest fail with NoClassDefFoundErrors (for org/apache/derby/client/net/NetResultSet40, org/apache/derby/jdbc/ClientDataSource40 and org/apache/derby/client/net/NetConnection40)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira