db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DERBY-5917) NoClassDefFoundErrors when running tests without derbynet.jar and derbyclient.jar
Date Mon, 10 Sep 2012 12:17:08 GMT

     [ 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:
>            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

View raw message