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 23:03:07 UTC

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

     [ 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