Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Problem integrating equinox transforms (xslt)
Problem integrating equinox transforms (xslt) [message #332494] Thu, 23 October 2008 07:50 Go to next message
Ch. Hager is currently offline Ch. HagerFriend
Messages: 15
Registered: July 2009
Junior Member
Hi everyone,

I am currently trying to integrate equinox transforms as described on
http://wiki.eclipse.org/Equinox_Transforms. For my sample application this
works perfectly but not when I try to integrate it into my real
application.

What I'm trying to do:

I'm trying to disable menu contributions from org.eclipse.ui.ide. The
"Working sets"-item from the "Window" menu would be an example. Therefore
I'm trying to integrate equinox transforms as described in the wiki.

What I've done so far:

1. I created a new Plugin containing an Activator including the following
code

Properties properties = new Properties();
properties.put("equinox.transformerType", "xslt");
registration = context.registerService(URL.class.getName(),
context.getBundle().getEntry("/transform.csv"), properties);

2. I created the transform.csv an a xsl-stylesheet

3. I added the new plugin to my feature

4. I created a config.ini file containing the following

#Product Runtime Configuration File

osgi.splashPath=platform:/base/plugins/de.tecis.excalibur.e2
eclipse.product=de.tecis.excalibur.e2.product
osgi.bundles=org.eclipse.equinox.transforms.xslt@1:start,de.tecis.excalibur.equinox.transforms@1:start,org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
osgi.bundles.defaultStartLevel=4
osgi.framework.extensions=org.eclipse.equinox.transforms.hoo k

The plugin de.tecis.excalibur.equinox.transforms is the newly created
plugin.

The equinox transforms service seems to start correctly when I comment the
following line from config.ini
osgi.framework.extensions=org.eclipse.equinox.transforms.hoo k because the
osgi console gives me the following

0 ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
Fragments=68
1 ACTIVE de.tecis.excalibur.equinox.transforms_1.4.0.rc3
68 RESOLVED org.eclipse.equinox.transforms.hook_1.0.0.v20080610
Master=0

When I uncomment the above line I get the following error.

org.osgi.framework.BundleException: The activator
de.tecis.excalibur.e2.E2Plugin for bundle de.tecis.excalibur.e2 is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:165)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
Caused by: java.lang.NullPointerException
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateProtectionDomain(DefaultClassLoader.java:226)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateClassPathEntry(DefaultClassLoader.java:157)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.createC lassPathEntry(ClasspathManager.java:252)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.getClas spath(ClasspathManager.java:219)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.addClas sPathEntry(ClasspathManager.java:182)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssPathEntry(ClasspathManager.java:160)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildCl asspath(ClasspathManager.java:138)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initial ize(ClasspathManager.java:72)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.ini tialize(DefaultClassLoader.java:177)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create BCL(BundleLoader.java:714)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create BCLPrevileged(BundleLoader.java:689)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create ClassLoader(BundleLoader.java:318)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
... 33 more
Root exception:
java.lang.NullPointerException
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateProtectionDomain(DefaultClassLoader.java:226)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateClassPathEntry(DefaultClassLoader.java:157)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.createC lassPathEntry(ClasspathManager.java:252)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.getClas spath(ClasspathManager.java:219)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.addClas sPathEntry(ClasspathManager.java:182)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssPathEntry(ClasspathManager.java:160)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildCl asspath(ClasspathManager.java:138)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initial ize(ClasspathManager.java:72)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.ini tialize(DefaultClassLoader.java:177)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create BCL(BundleLoader.java:714)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create BCLPrevileged(BundleLoader.java:689)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.create ClassLoader(BundleLoader.java:318)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:165)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
at org.eclipse.equinox.launcher.Main.main(Main.java:1148)

Somehow suddly he doesn't seem to find the activator of my application
bundle anymore.

I guess there is a problem with the classloader but I cannot find where
the problem is. Maybe someone could point me into the right direction and
give me a hint of what I might be doing wrong.

Thanks in advance for any help.

Ch. Hager
Re: Problem integrating equinox transforms (xslt) [message #332498 is a reply to message #332494] Thu, 23 October 2008 13:33 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ch. Hager wrote:
> Hi everyone,
>
> I am currently trying to integrate equinox transforms as described on
> http://wiki.eclipse.org/Equinox_Transforms. For my sample application
> this works perfectly but not when I try to integrate it into my real
> application.
>
> What I'm trying to do:
>
> I'm trying to disable menu contributions from org.eclipse.ui.ide. The
> "Working sets"-item from the "Window" menu would be an example.
> Therefore I'm trying to integrate equinox transforms as described in the
> wiki.
>
> What I've done so far:
>
> 1. I created a new Plugin containing an Activator including the
> following code
>
> Properties properties = new Properties();
> properties.put("equinox.transformerType", "xslt");
> registration = context.registerService(URL.class.getName(),
> context.getBundle().getEntry("/transform.csv"), properties);
>
> 2. I created the transform.csv an a xsl-stylesheet
>
> 3. I added the new plugin to my feature
>
> 4. I created a config.ini file containing the following
>
> #Product Runtime Configuration File
>
> osgi.splashPath=platform:/base/plugins/de.tecis.excalibur.e2
> eclipse.product=de.tecis.excalibur.e2.product
> osgi.bundles=org.eclipse.equinox.transforms.xslt@1:start,de.tecis.excalibur.equinox.transforms@1:start,org.eclipse.equinox.common@2:start,org.eclipse.update.configurator@3:start,org.eclipse.core.runtime@start
>
> osgi.bundles.defaultStartLevel=4
> osgi.framework.extensions=org.eclipse.equinox.transforms.hoo k
>
> The plugin de.tecis.excalibur.equinox.transforms is the newly created
> plugin.
>
> The equinox transforms service seems to start correctly when I comment
> the following line from config.ini
> osgi.framework.extensions=org.eclipse.equinox.transforms.hoo k because
> the osgi console gives me the following
>
> 0 ACTIVE org.eclipse.osgi_3.3.2.R33x_v20080105
> Fragments=68
> 1 ACTIVE de.tecis.excalibur.equinox.transforms_1.4.0.rc3
> 68 RESOLVED org.eclipse.equinox.transforms.hook_1.0.0.v20080610
> Master=0
>
> When I uncomment the above line I get the following error.
>
> org.osgi.framework.BundleException: The activator
> de.tecis.excalibur.e2.E2Plugin for bundle de.tecis.excalibur.e2 is invalid
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:165)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
> Caused by: java.lang.NullPointerException
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateProtectionDomain(DefaultClassLoader.java:226)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateClassPathEntry(DefaultClassLoader.java:157)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.createC lassPathEntry(ClasspathManager.java:252)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.getClas spath(ClasspathManager.java:219)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.addClas sPathEntry(ClasspathManager.java:182)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssPathEntry(ClasspathManager.java:160)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildCl asspath(ClasspathManager.java:138)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initial ize(ClasspathManager.java:72)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.ini tialize(DefaultClassLoader.java:177)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create BCL(BundleLoader.java:714)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create BCLPrevileged(BundleLoader.java:689)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create ClassLoader(BundleLoader.java:318)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
>
> .. 33 more
> Root exception:
> java.lang.NullPointerException
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateProtectionDomain(DefaultClassLoader.java:226)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.cre ateClassPathEntry(DefaultClassLoader.java:157)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.createC lassPathEntry(ClasspathManager.java:252)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.getClas spath(ClasspathManager.java:219)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.addClas sPathEntry(ClasspathManager.java:182)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssPathEntry(ClasspathManager.java:160)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.buildCl asspath(ClasspathManager.java:138)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.initial ize(ClasspathManager.java:72)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.ini tialize(DefaultClassLoader.java:177)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create BCL(BundleLoader.java:714)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create BCLPrevileged(BundleLoader.java:689)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.create ClassLoader(BundleLoader.java:318)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
> at java.lang.Class.getConstructor0(Unknown Source)
> at java.lang.Class.newInstance0(Unknown Source)
> at java.lang.Class.newInstance(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:136)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
>
> at
> org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
> at
> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
>
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:788)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
>
> at
> org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
>
> at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:165)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 508)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
>
> Somehow suddly he doesn't seem to find the activator of my application
> bundle anymore.
>
> I guess there is a problem with the classloader but I cannot find where
> the problem is. Maybe someone could point me into the right direction
> and give me a hint of what I might be doing wrong.
>
> Thanks in advance for any help.
>
> Ch. Hager
>

What does the config.ini look like when you launch your test app from
eclipse (you can usually find it if you look at the command line eclipse
generates in the debug view).

I've redirected to equinox as they're in a better position to answer this.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Disable rename/move popup menu
Next Topic:Marker Annotations disapperaring in vertical toolbar
Goto Forum:
  


Current Time: Fri Dec 27 03:19:11 GMT 2024

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

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

Back to the top