Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 3819 invoked from network); 20 Oct 2010 22:34:47 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Oct 2010 22:34:47 -0000 Received: (qmail 31357 invoked by uid 500); 20 Oct 2010 22:34:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 31269 invoked by uid 500); 20 Oct 2010 22:34:47 -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 31262 invoked by uid 99); 20 Oct 2010 22:34:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 22:34:47 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Oct 2010 22:34:45 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9KMYNx9005089 for ; Wed, 20 Oct 2010 22:34:23 GMT Message-ID: <30877458.21101287614063253.JavaMail.jira@thor> Date: Wed, 20 Oct 2010 18:34:23 -0400 (EDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-4860) RunSuite on derbylang and other subsuites fails with java.lang.NoClassDefFoundError because of prepended ^ In-Reply-To: <25480382.18751287607348401.JavaMail.jira@thor> 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/DERBY-4860?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden updated DERBY-4860: ---------------------------------- Attachment: derby-4860_diff.txt Here is a fix for this issue. The harness was not careful when merging flags to prevent prepending or appending ^'s. It really should have a separate method abstracted out for merging the flags, but since the old harness is hopefully dead code, I didn't bother. > RunSuite on derbylang and other subsuites fails with java.lang.NoClassDefFoundError because of prepended ^ > ---------------------------------------------------------------------------------------------------------- > > Key: DERBY-4860 > URL: https://issues.apache.org/jira/browse/DERBY-4860 > Project: Derby > Issue Type: Bug > Components: Test > Affects Versions: 10.5.3.0 > Reporter: Kathey Marsden > Assignee: Kathey Marsden > Priority: Minor > Attachments: derby-4860_diff.txt > > > -Djvmflags works fine when run RunTest or with RunSuite and derbyall, but with derbylang, derbtools and other subsuites it fails as follows, because it prepends ^ inappropriately to the options when launching the process. > > java -Dverbose=true -Djvmflags="-Xgcpolicy:optthruput^-Xjit:count=0" > org.apache.derbyTesting.functionTests.harness.RunSuite derbylang > With the second command I see the following in derbylang.sum > > Exception in thread "main" java.lang.NoClassDefFoundError: > ^-Xgcpolicy:optthruput^-Xjit:count=0 > > Caused by: java.lang.ClassNotFoundException: > ^-Xgcpolicy:optthruput^-Xjit:count=0 > > Could not find the main class: ^-Xgcpolicy:optthruput^-Xjit:count=0. > Program will exit. > Test Failed. > *** End: checkConstraint jdk1.6.0 derbylang:derbylang 2010-10-19 > 16:58:24 *** -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.