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 3473ED99A for ; Fri, 5 Oct 2012 05:59:27 +0000 (UTC) Received: (qmail 75484 invoked by uid 500); 5 Oct 2012 05:59:27 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 75245 invoked by uid 500); 5 Oct 2012 05:59:24 -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 75206 invoked by uid 99); 5 Oct 2012 05:59:23 -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 05:59:23 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS,T_FRT_ADULT2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kristian.waagan@oracle.com designates 148.87.113.117 as permitted sender) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2012 05:59:13 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q955wq9K009759 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 5 Oct 2012 05:58:53 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q955wp0X006501 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 5 Oct 2012 05:58:52 GMT Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q955wpJU028671 for ; Fri, 5 Oct 2012 00:58:51 -0500 Received: from [192.168.1.238] (/84.215.229.154) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Oct 2012 22:58:51 -0700 Message-ID: <506E771A.2090406@oracle.com> Date: Fri, 05 Oct 2012 07:58:50 +0200 From: Kristian Waagan Organization: Oracle Corporation User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Failed to invoke class org.apache.derbyTesting.functionTests.tests.compatibility._Suite References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-Virus-Checked: Checked by ClamAV on apache.org 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