Hello
I am currently upgrading our applications to the current plug-ins shipped with luna RC1 and I ran into trouble with services not beeing started as expected.
For instance: We use the p2 GarbageCollector to clean up after updates. Using the updated target, we run into following exception:
!ENTRY org.eclipse.equinox.p2.garbagecollector 4 2 2014-05-26 15:42:31.714
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.p2.garbagecollector".
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.WhatIsRunning.getBundlesBeingRun(WhatIsRunning.java:17)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.addRunningBundles(EclipseMarkSetProvider.java:101)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.EclipseMarkSetProvider.getMarkSets(EclipseMarkSetProvider.java:46)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:69)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.contributeMarkSets(GarbageCollector.java:97)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.traverseMainProfile(GarbageCollector.java:202)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.runGC(GarbageCollector.java:159)
at de.emsw.gosa.p2.GarbageCollectionAction.execute(GarbageCollectionAction.java:38)
...
Debugging the code the reason for the error ist that LazyManipulator.getFrameworkAdmin() now returns null. I'm not sure what change is responsible for this, since this code hasn't changed (as far I as I can see). This used to return an instance of org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwAdminImpl (a dynamic service implementing FrameworkAdmin started by org.eclipse.equinox.frameworkadmin.equinox).
Using the console I noticed that the state of the bundle org.eclipse.equinox.frameworkadmin.equinox is STARTING. Before it would be ACTIVE.
Before:
154 ACTIVE org.eclipse.equinox.frameworkadmin_2.0.100.v20130327-2119
155 ACTIVE org.eclipse.equinox.frameworkadmin.equinox_1.0.500.v20131211-1531
Now:
154 ACTIVE org.eclipse.equinox.frameworkadmin_2.0.100.v20131209-2144
155 STARTING org.eclipse.equinox.frameworkadmin.equinox_1.0.500.v20131211-1531
Checking for the service in the console I used to see:
{org.eclipse.equinox.internal.provisional.frameworkadmin.FrameworkAdmin}={org.eclipse.equinox.frameworkhandler.launcher.version=3.2, component.name=org.eclipse.equinox.frameworkadmin.equinox, component.id=33, org.eclipse.equinox.frameworkhandler.framework.name=Equinox, org.eclipse.equinox.frameworkhandler.launcher.name=Eclipse.exe, org.eclipse.equinox.frameworkhandler.framework.version=3.3, service.id=80}
"Registered by bundle:" org.eclipse.equinox.frameworkadmin.equinox_1.0.500.v20131211-1531 [155]
"No bundles using service."
Now the service is missing.
What can I do? Any pointers are very welcome.
Thanks!
Christoph
[Updated on: Mon, 26 May 2014 16:53]
Report message to a moderator