Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73C4F98AD for ; Mon, 20 Feb 2012 12:37:59 +0000 (UTC) Received: (qmail 62126 invoked by uid 500); 20 Feb 2012 12:37:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62103 invoked by uid 500); 20 Feb 2012 12:37:59 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 62095 invoked by uid 99); 20 Feb 2012 12:37:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 12:37:59 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 12:37:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 839091C2776 for ; Mon, 20 Feb 2012 12:37:34 +0000 (UTC) Date: Mon, 20 Feb 2012 12:37:34 +0000 (UTC) From: "Knut Anders Hatlen (Commented) (JIRA)" To: derby-dev@db.apache.org Message-ID: <15406033.2263.1329741454540.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-2687) store/encryptDatabase.sql fails intermittently with ClassNotFoundException, Log Corrupted MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-2687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211810#comment-13211810 ] Knut Anders Hatlen commented on DERBY-2687: ------------------------------------------- Looks like a good improvement, I agree. Some small suggestions: - The method assertFailedStatement() could be replaced by BaseJDBCTestCase.assertStatementError(). - In the catch block of assertFailedBoot(), the search for the SQLState might be expressed more concisely as: boolean found = Arrays.asList(accepted).contains(e.getSQLState()); (Or perhaps factor out in a helper method that could be used by other tests? Seems useful enough, and already implemented in RolesConferredPrivilegesTest.assertSQLState().) - When checking the results of a query that returns a single value, assertSingleValueResultSet() is slightly less verbose than assertFullResultSet(). - Perhaps you could add a comment that explains the purpose of the first line in testEncryption()? > store/encryptDatabase.sql fails intermittently with ClassNotFoundException, Log Corrupted > ----------------------------------------------------------------------------------------- > > Key: DERBY-2687 > URL: https://issues.apache.org/jira/browse/DERBY-2687 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.2.2.1, 10.3.1.4 > Environment: Microsoft Windows XP Professional - 5.1.2600 Service Pack 2, Sun JVM 1.4.2_08-b03, 10.2.2.1. > SUSE Linux Enterprise Server 10 (x86_64) (Linux 2.6.16.21-0.8-smp), Sun JVM 1.6.0_01-b06, trunk (SVN 531991). > Solaris 10 x86, Sun JVM 1.5.0, SVN 371617 (2006-01-23). > Solaris 9 SPARC, Sun JVM 1.5.0, SVN 169872 (2005-05-13). > etc... > Reporter: John H. Embretsen > Assignee: Dag H. Wanvik > Labels: derby_triage10_5_2 > Attachments: derby-2687-1.diff, derby-2687-1.stat, derby.log, tmp-82.zip, wombat.zip > > > Failure seen in derbyall/encryptionAll run on WinXP (10.2.2.1). So far unable to reproduce (standalone or as part of derbyall, encryptionAll or encryptionBlowfish). > > store/encryptDatabase.sql > > > Failure details: > ********* Diff file derbyall/encryptionAll/encryptionBlowfish/encryptDatabase.diff > *** Start: encryptDatabase jdk1.4.2_08 encryptionAll:encryptionBlowfish 2007-05-21 05:07:55 *** > 95 del > < ERROR XBM06: Startup failed. An encrypted database cannot be accessed without the correct boot password. > 95a95 > > ERROR XJ001: Java exception: 'ERROR XBM0U: No class was registered for identifier 15009.: java.lang.ClassNotFoundException'. > Test Failed. > *** End: encryptDatabase jdk1.4.2_08 encryptionAll:encryptionBlowfish 2007-05-21 05:08:12 *** > > derby.log also reports "ERROR XSLA3: Log Corrupted, has invalid data in the log stream." -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira