Return-Path: Delivered-To: apmail-felix-dev-archive@www.apache.org Received: (qmail 89033 invoked from network); 3 Aug 2009 14:30:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Aug 2009 14:30:20 -0000 Received: (qmail 8674 invoked by uid 500); 3 Aug 2009 14:30:24 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 8582 invoked by uid 500); 3 Aug 2009 14:30:24 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 8572 invoked by uid 99); 3 Aug 2009 14:30:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Aug 2009 14:30:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of heavy@ungoverned.org designates 69.89.24.3 as permitted sender) Received: from [69.89.24.3] (HELO outbound-mail-113.bluehost.com) (69.89.24.3) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 03 Aug 2009 14:30:13 +0000 Received: (qmail 11791 invoked by uid 0); 3 Aug 2009 14:29:53 -0000 Received: from unknown (HELO host118.hostmonster.com) (74.220.207.118) by outboundproxy3.bluehost.com with SMTP; 3 Aug 2009 14:29:53 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=ungoverned.org; h=Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=JXJTqpE+wwopyonl3br+//qf9LPCeFn0bU4oaS6b0nNmfvUROQj8ArScJxcGP1QcnHvMoC7A13bnZ0GkrqjH38GZQlOnJVZUeqlvyUgofKTDSpuCOQn1Lu0qYlUY+/RW; Received: from adsl-75-40-240-247.dsl.klmzmi.sbcglobal.net ([75.40.240.247] helo=[192.168.1.71]) by host118.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1MXyXw-0007WF-QD for dev@felix.apache.org; Mon, 03 Aug 2009 08:29:52 -0600 Message-ID: <4A76F45F.2080203@ungoverned.org> Date: Mon, 03 Aug 2009 10:29:51 -0400 From: "Richard S. Hall" User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: dev@felix.apache.org Subject: Re: A problem when debug in classloading of felix References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1027:host118.hostmonster.com:ungovern:ungoverned.org} {sentby:smtp auth 75.40.240.247 authed with heavy@ungoverned.org} X-Virus-Checked: Checked by ClamAV on apache.org On 8/3/09 6:21, galaxy wrote: > Hi all > I have encountered a rather strange problem in debug when I want to see the > classloading in felix > > Below is the setting > > First launch the framework ,then the following code fragments : > .... > bundle = m_felix.getBundleContext().getBundle(1); // 1 is the ID > of Apache Felix Shell Service (1.2.0) > clazz = bundle.loadClass("org.apache.felix.shell.impl.HelpCommandImpl"); > System.out.println(clazz.getClassLoader()); > .... > > So I set a breakpoint in the BundleImpl.loadClass() ,which I expected to > encounter but never got there . > Instead , when I press F5 at line ( > "clazz = bundle.loadClass("org.apache.felix.shell.impl.HelpCommandImpl");" > in eclipse , it came to the red line in [1]. > I did some search but still don't know why this happens . > Could anyone help me ?Thanks > Are you sure your source version matches your binary version? -> richard > [1]BundleImpl > void setPersistentStateActive() > { > try > { > m_archive.setPersistentState(Bundle.ACTIVE); > } > catch (Exception ex) > { > getFramework().getLogger().log( > Logger.LOG_ERROR, > "Error writing persistent state to bundle archive.", > ex); > } > } > >