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 C068E98A0 for ; Fri, 5 Oct 2012 18:13:37 +0000 (UTC) Received: (qmail 51940 invoked by uid 500); 5 Oct 2012 18:13:37 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 51917 invoked by uid 500); 5 Oct 2012 18:13:37 -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 51910 invoked by uid 99); 5 Oct 2012 18:13:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 18:13:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_ADULT2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msatoor@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vb0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 18:13:32 +0000 Received: by mail-vb0-f44.google.com with SMTP id fc26so2542591vbb.31 for ; Fri, 05 Oct 2012 11:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=A6wA7c6KzpMZvolqWYXy7JcAa47Cv70ekG2KhtEroZc=; b=CSlFXv9s1iQocPOkT5FmlnzQjajooVDD/wGXDRiUnWvRwBn2LY7ELxE7/hYAOApDFp V5r+KdYDeXU9KKLvC5TJaVwwK0T6Ng8PD+gSYYJBuNgKU2P5tYbSAedjs3LvC2/o1RM7 iWghWXybRIr8H8QRhcI6zO/SjJHtYvXSOm+ol4aJvcgdNUFvrOxhJjlQ2+yskf03tGB/ OIk0DedAUHtyKMiwG6mGvTM/thR/qME7WetGkTGE+0AJTfwrDpXe3YK6QNsxJNq0s2nR t0o2sq/pzGo/BRdeeDKpJkTykTn4tXWOu/aK+Yj+CccE2NMrsc7GxpZ5GeHu1NounkuW f+Yg== MIME-Version: 1.0 Received: by 10.52.16.179 with SMTP id h19mr4580426vdd.107.1349460792100; Fri, 05 Oct 2012 11:13:12 -0700 (PDT) Received: by 10.58.179.82 with HTTP; Fri, 5 Oct 2012 11:13:11 -0700 (PDT) In-Reply-To: <506E771A.2090406@oracle.com> References: <506E771A.2090406@oracle.com> Date: Fri, 5 Oct 2012 11:13:11 -0700 Message-ID: Subject: Re: Failed to invoke class org.apache.derbyTesting.functionTests.tests.compatibility._Suite From: Mamta Satoor To: derby-dev@db.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Kristian, Thanks for your reply. Yes, I have always run the tests off of classes. I can start building the jars and include derbyrun.jar and derbyTesting.jar in my classpath before firing the tests. As for the old released jars for upgrade testing, I very rarely use derbyTesting.oldReleasePath(only when I don't have access to the internet). I use following to start suites.All and I am assuming, it picked up the released jar files from Apache Derby since I didn't specify derbyTesting.oldReleasePath. Is it correct that if derbyTesting.oldReleasePath is not set, we go to Apache Derby website to get the released jars? time java -Dderby.tests.trace=true junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All > runall.out 2>&1 thanks, Mamta On Thu, Oct 4, 2012 at 10:58 PM, Kristian Waagan wrote: > On 05.10.2012 06:29, Mamta Satoor wrote: >> >> Hello, >> >> Not sure if I am encountering following problem because of my >> environment but I did a svn update earlier today on trunk and after >> building the classes, I fired junit suite but I get following error. I >> started the junit suite with following command >> time java -Dderby.tests.trace=true junit.textui.TestRunner >> org.apache.derbyTesting.functionTests.suites.All> runall.out 2>&1 >> Prepare to run upgrade tests from 10.9.1.0 >> {ReleaseRepository} 0 candidate releases at >> C:\Users\IBM_ADMIN\.derbyTestingReleases >> ALARM: No old releases found for current configuration/environment >> Failed to invoke class >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> at java.lang.reflect.Method.invoke(Method.java:611) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:179) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.addSuiteByReflection(AllPackages.java:149) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:61) >> at >> org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> at java.lang.reflect.Method.invoke(Method.java:611) >> at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126) >> at junit.textui.TestRunner.start(TestRunner.java:184) >> at junit.textui.TestRunner.main(TestRunner.java:143) >> Caused by: java.lang.IllegalStateException: only running off jars is >> supported, currently running off >> C:\p4clients\svnmain\client3\trunk\classes >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.getRunningDistribution(VersionCombinationConfigurator.java:260) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.filterVersions(VersionCombinationConfigurator.java:236) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.addTests(VersionCombinationConfigurator.java:168) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite.addVersionCombinations(_Suite.java:81) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite.suite(_Suite.java:135) >> ... 15 more >> FAILED to invoke >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite >> java.lang.reflect.InvocationTargetException >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> at java.lang.reflect.Method.invoke(Method.java:611) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.invokeSuite(AllPackages.java:179) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.addSuiteByReflection(AllPackages.java:149) >> at >> org.apache.derbyTesting.functionTests.suites.AllPackages.suite(AllPackages.java:61) >> at >> org.apache.derbyTesting.functionTests.suites.All.suite(All.java:51) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) >> at >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) >> at java.lang.reflect.Method.invoke(Method.java:611) >> at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:126) >> at junit.textui.TestRunner.start(TestRunner.java:184) >> at junit.textui.TestRunner.main(TestRunner.java:143) >> Caused by: java.lang.IllegalStateException: only running off jars is >> supported, currently running off >> C:\p4clients\svnmain\client3\trunk\classes >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.getRunningDistribution(VersionCombinationConfigurator.java:260) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.filterVersions(VersionCombinationConfigurator.java:236) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility.VersionCombinationConfigurator.addTests(VersionCombinationConfigurator.java:168) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite.addVersionCombinations(_Suite.java:81) >> at >> org.apache.derbyTesting.functionTests.tests.compatibility._Suite.suite(_Suite.java:135) >> ... 15 more >> Failed to invoke suite():java.lang.reflect.InvocationTargetException >> >> I reran the junit test by overriding the location of the released jars >> but that did not fix the problem. What could I be doing wrong? This is >> on Windows XP running the tests with ibm 1.6 > > > Hi Mamta, > > According to the error message, the test is refusing to run because you are > running with the classes directory on the classpath instead of the jars. > Is this the case? > > When run off the classes directory the test can't easily include only a > component of Derby in a spawned process. For instance, it can't easily > include only the trunk client - it's all or nothing. > I added the restriction given that only two jars have to be added to the > classpath (derbyrun.jar and derbyTesting.jar), and it only takes a minute or > so to build the jars. That seemed like a small price to pay before running > suites.All. We could make the test emit another ALARM and skip itself. > Opinions? > > My commit from yesterday should enable the test on Windows systems where the > old releases reside on a local disk (non UNC path / network drive). Based on > your output you have the old releases in a non-standard location. That > should only result in the ALARM message and no failure. That can be fixed by > installing the old releases in the expected location > ($HOME/.derbyTestingReleases), or by specifying > -DderbyTesting.oldReleasePath. > > > Regards, > -- > Kristian > > >> >> For now, I have removed the compatibility suite from the suites being >> run and that has gotten rid of the error. >> >> thanks, >> Mamta