Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 92015 invoked from network); 22 Mar 2007 10:33:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Mar 2007 10:33:54 -0000 Received: (qmail 32205 invoked by uid 500); 22 Mar 2007 10:34:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 32160 invoked by uid 500); 22 Mar 2007 10:34:01 -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 32115 invoked by uid 99); 22 Mar 2007 10:34:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 03:34:01 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2007 03:33:52 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7BEBB714057 for ; Thu, 22 Mar 2007 03:33:32 -0700 (PDT) Message-ID: <3579119.1174559612501.JavaMail.jira@brutus> Date: Thu, 22 Mar 2007 03:33:32 -0700 (PDT) From: "John H. Embretsen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-2479) ArrayIndexOutOfBoundsException in system.nstest if derby.nstest.backupRestore=false MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ArrayIndexOutOfBoundsException in system.nstest if derby.nstest.backupRestore=false ----------------------------------------------------------------------------------- Key: DERBY-2479 URL: https://issues.apache.org/jira/browse/DERBY-2479 Project: Derby Issue Type: Bug Components: Test Affects Versions: 10.3.0.0 Environment: derby.nstest.backupRestore=false Reporter: John H. Embretsen As described in a comment for DERBY-2248, there is a bug in the Network Server system test (org.apache.derbyTesting.system.nstest) which is triggered if the derby.nstest.backupRestore property is set to false when running the test: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 71 at org.apache.derbyTesting.system.nstest.NsTest.main(NsTest.java:443) >From https://issues.apache.org/jira/browse/DERBY-2248#action_12474445: NsTest.java, line 429->: while (numTestThread < maxTestThreads) { ... It seems that numTestThread will always be equal to maxTestThreads after one iteration, except when derby.nstest.backupRestore=false, in which case the entire loop will re-run, numTestThread will be incremented far above maxTestThreads, and you end up with an ArrayIndexOutOfBoundsException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.