Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Error while loading plugin in RAP env
Error while loading plugin in RAP env [message #559208] Thu, 16 September 2010 00:51 Go to next message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

Hi,

I am migrating a plugin which was earlier based on PDE to RAP environment.
The plugin was using a dependency: "org.eclipse.core.runtime.compatibility"
In RAP environment, this dependency was not there and i removed it. There were no compilation issues as well.
But now, when i am trying to access any class form that plugin i get following error. Any clue on what is missing here ? What is the usage of compatibility plugin ? Is there any alternative to fix it ?
Quote:

Caused by: java.lang.ClassNotFoundException: org.eclipse.core.internal.compatibility.PluginActivator
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:506)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:422)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:410)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:338)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:232)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:149)




Regards,
Ashwani Kr Sharma

[Updated on: Thu, 16 September 2010 00:52]

Report message to a moderator

Re: Error while loading plugin in RAP env [message #559468 is a reply to message #559208] Thu, 16 September 2010 17:35 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
it's impossible to diagnose the problem only from the stack trace. Could
you post the result of osgi "ss" command (active plugins list)?
Regards,
Ivan

On 09/16/2010 3:51 AM, Ashwani Kr Sharma wrote:
> Hi,
>
> I am migrating a plugin which was earlier based on PDE to RAP
> environment.
> The plugin was using a dependency:
> In RAP environment, this dependency was not there and i removed it.
> There were no compilation issues as well.
> But now, when i am trying to access any class form that plugin i get
> following error. Any clue on what is missing here ? What is the usage
> of compatibility plugin ? Is there any alternative to fix it ?
> Quote:
>> Caused by: java.lang.ClassNotFoundException:
>> org.eclipse.core.internal.compatibility.PluginActivator
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
>> nal(BundleLoader.java:506)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.java:422)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.java:410)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
>> dClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund
>> leLoader.java:338)
>> at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas
>> s(BundleHost.java:232)
>> at org.eclipse.osgi.framework.internal.core.AbstractBundle.load
>> BundleActivator(AbstractBundle.java:149)
>
>
>
> Regards,
> Ashwani Kr Sharma
Re: Error while loading plugin in RAP env [message #559469 is a reply to message #559208] Thu, 16 September 2010 17:41 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Here is the description of "|org.eclipse.core.runtime.compatibility|"
plugin:
"The |org.eclipse.core.runtime.compatibility |project exists for
backwards compatibility purposes only. It contains deprecated APIs.
(mostly dealing with the old plug-in registry)".
Maybe you are using some outdated/deprecated APIs??!!

On 09/16/2010 3:51 AM, Ashwani Kr Sharma wrote:
> Hi,
>
> I am migrating a plugin which was earlier based on PDE to RAP
> environment.
> The plugin was using a dependency:
> In RAP environment, this dependency was not there and i removed it.
> There were no compilation issues as well.
> But now, when i am trying to access any class form that plugin i get
> following error. Any clue on what is missing here ? What is the usage
> of compatibility plugin ? Is there any alternative to fix it ?
> Quote:
>> Caused by: java.lang.ClassNotFoundException:
>> org.eclipse.core.internal.compatibility.PluginActivator
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClassInter
>> nal(BundleLoader.java:506)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.java:422)
>> at org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund
>> leLoader.java:410)
>> at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa
>> dClass(DefaultClassLoader.java:107)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund
>> leLoader.java:338)
>> at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas
>> s(BundleHost.java:232)
>> at org.eclipse.osgi.framework.internal.core.AbstractBundle.load
>> BundleActivator(AbstractBundle.java:149)
>
>
>
> Regards,
> Ashwani Kr Sharma
Re: Error while loading plugin in RAP env [message #629708 is a reply to message #559469] Wed, 29 September 2010 10:39 Go to previous message
Ashwani Kr Sharma is currently offline Ashwani Kr SharmaFriend
Messages: 119
Registered: July 2009
Location: Bangalore, India
Senior Member

Thanks. I will check what old APIs we are using will migrate them.

Thanks and Regards,
Ashwani Kr Sharma
Previous Topic:RAP with XWT in Helios or e4
Next Topic:Jetty Location in the IDE
Goto Forum:
  


Current Time: Sun Sep 22 03:54:32 GMT 2024

Powered by FUDForum. Page generated in 0.03689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top