Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 54683 invoked from network); 22 Jul 2010 16:40:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Jul 2010 16:40:20 -0000 Received: (qmail 90052 invoked by uid 500); 22 Jul 2010 16:40:20 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 89982 invoked by uid 500); 22 Jul 2010 16:40:19 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 89975 invoked by uid 99); 22 Jul 2010 16:40:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 16:40:19 +0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=FREEMAIL_FROM,HK_RANDOM_ENVFROM,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rickmcg@gmail.com designates 209.85.160.182 as permitted sender) Received: from [209.85.160.182] (HELO mail-gy0-f182.google.com) (209.85.160.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jul 2010 16:40:10 +0000 Received: by gyg4 with SMTP id 4so1074058gyg.13 for ; Thu, 22 Jul 2010 09:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=YQs9ebLPW2h3ZXy1BmaNnLC1GBNya1hDk1YWofgFLto=; b=wVHlDb9G/ol7C1/obTgzUHlSHvndAF47+vFaLVSwG0IP5QTIzJgRx9pi+wvlu/62u+ ocRA7MgrZCfh7hVPm+w2TSNQHCXQ4KckvfPRBNdaBtPioTNXOEnup2EEEKI0U5Kw74M/ Jp+uqCAIRo9Vfiwsnh7LNmPcFgCKN3/VnQLhc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=GGxlV46WZjMwZeP4YJVEkJZoxsKtMJfTNCYyYKUVZN5pUfQ9k7N9oOv/6zRLgGJ5Tp 9IaOg6aFntRpxcSV1AoOt4x5Y/ph4RPuPPnZc8e7ap0gdyhzgiH1secZd8Qcfck772tP ZdAcAV97kcKDulVbjD+ZpZmlEiqy1otif90Pw= Received: by 10.150.181.3 with SMTP id d3mr4213304ybf.28.1279816740207; Thu, 22 Jul 2010 09:39:00 -0700 (PDT) Received: from [192.168.1.100] (68-191-49-15.dhcp.nwtn.ct.charter.com [68.191.49.15]) by mx.google.com with ESMTPS id v6sm7590053ybm.11.2010.07.22.09.38.56 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Jul 2010 09:38:56 -0700 (PDT) Message-ID: <4C48741F.6020404@gmail.com> Date: Thu, 22 Jul 2010 12:38:55 -0400 From: Rick McGuire Reply-To: rickmcg@gmail.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.11) Gecko/20100711 Thunderbird/3.0.6 MIME-Version: 1.0 To: Geronimo Dev Subject: Re: Possible split package issue References: <4C45E20B.3090907@gmail.com> In-Reply-To: <4C45E20B.3090907@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 7/20/2010 1:51 PM, Rick McGuire wrote: > On 7/6/2010 3:38 AM, David Jencks wrote: >> In the last couple days I've started seeing major problems running >> the tck here. Generally tests subclass com.sun.ts.lib.harness.EETest >> which is not included in tsharness.jar, instead it's in each test >> ear. However there are plenty of other classes in >> com.sun.ts.lib.harness that are in tsharness.jar and are needed for >> tests to work. >> >> I've seen this after upgrading the cts bundles to the latest tck, but >> don't see any change in them to explain this new behavior. >> >> I don't see why it wouldn't have been a problem previously, but it >> just started for me. >> >> Does anyone else see this? Anyone have an idea what might be causing >> this problem now? >> >> I'm wondering if we could create a tsharness bundle that does include >> all the classes in the packages it supplies. >> >> thanks >> david jencks >> >> > I was able to create a very simple test to demonstrate this problem > and opened a Jira against Felix. The should be able to recreate this > fairly easily now, so hopefully we'll see a fix in 3.1.0. The Jira is > here: > > https://issues.apache.org/jira/browse/FELIX-2479 Richard Hall's come up with a fix for this, so I'll bump the felix version to 3.1.0-SNAPSHOT. I'm not sure when this will be deployed, so we should keep the TCK runs using equinox for now. Rick > > and includes a full maven project for running the tests. > > For the curious, this was sort of an interesting problem. I created a > series of jars/bundles that recreated the class/package structure of > the test case, then used the following method calls: > > Class cls = > bundle1.loadClass("org.apache.geronimo.embedded.TestClass"); > // this will force the fields classes to be resolved. > cls.getDeclaredFields(); > > This worked without error on all framework versions I ran it against. > However, if I changed this to: > > // if this line is commented out, then the second loadClass() > call will succeed. If > // this load occurs first, then a NoClassDefFound error > results on the load for TestClass. > Class cls1 = > bundle1.loadClass("org.apache.geronimo.harness.EETestDummy"); > > Class cls = > bundle1.loadClass("org.apache.geronimo.embedded.TestClass"); > // this will force the fields classes to be resolved. > cls.getDeclaredFields(); > > The getDeclaredFields() call gave the same NoClassDefFound error as > the TCK. The class resolution result has been altered by first > loading a class that gets pulled in from the Require-Bundle reference. > > Rick