felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall" <he...@ungoverned.org>
Subject Re: A problem when debug in classloading of felix
Date Mon, 03 Aug 2009 14:29:51 GMT
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);
>          }
>      }
>
>    

Mime
View raw message