Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 38041 invoked from network); 13 Aug 2009 13:46:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Aug 2009 13:46:32 -0000 Received: (qmail 4830 invoked by uid 500); 13 Aug 2009 13:46:39 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 4809 invoked by uid 500); 13 Aug 2009 13:46:39 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 4780 invoked by uid 99); 13 Aug 2009 13:46:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 13:46:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Aug 2009 13:46:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E33CF234C051 for ; Thu, 13 Aug 2009 06:46:14 -0700 (PDT) Message-ID: <490439479.1250171174929.JavaMail.jira@brutus> Date: Thu, 13 Aug 2009 06:46:14 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6296) [classlib][sql][test] derby.jar used in java5 testing required java6 classes In-Reply-To: <828495939.1249502834788.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12742822#action_12742822 ] Mark Hindess commented on HARMONY-6296: --------------------------------------- Nathan: No particular test - just all tests that require the derby driver to be loaded. Testing with -Dtest.case=org.apache.harmony.sql.tests.internal.rowset.JoinRowSetTest and adding Java 6 classes one by one, I found that if I *prepend* the following set of Java 6 classes to the bootclasspath then the test executes with no failures nor errors: java.sql.SQLTransactionRollbackException java.sql.SQLInvalidAuthorizationSpecException java.sql.SQLSyntaxErrorException java.sql.SQLIntegrityConstraintViolationException java.sql.SQLClientInfoException java.sql.SQLDataException java.sql.SQLTransientException java.sql.SQLTransientConnectionException java.sql.SQLException java.sql.SQLNonTransientException java.sql.SQLFeatureNotSupportedException The first time it works (after a clean-test) the derby.log file complains about the database not existing subsequent runs have no errors/warnings in derby.log. I tried removing the prepended Java 6 classes - after running the tests successfully and creating the database - but the exception still occurs so it is *not* related to the database not existing on the first run. The tests should probably remove the database once the test run has completed. This makes me pretty sure that we are using a derby.jar that is not suitable for java5 use. > [classlib][sql][test] derby.jar used in java5 testing required java6 classes > ---------------------------------------------------------------------------- > > Key: HARMONY-6296 > URL: https://issues.apache.org/jira/browse/HARMONY-6296 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Mark Hindess > > I see errors with the sql tests on java5 occasionally. The test failures just shows that the driver is unregistered but derby.log contains: > ERROR XBM01: Startup failed due to an exception. See next exception for details. > ... > Caused by: java.lang.NoClassDefFoundError: java.sql.SQLTransientConnectionException > Adding missing java6 classes causes the tests to pass reliably. I wonder if there is a version of derby.jar more suitable for java 5 testing? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.