[
https://issues.apache.org/jira/browse/ARIES-922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450683#comment-13450683
]
John Ross commented on ARIES-922:
---------------------------------
This issue is occurring on a framework restart with a persisted root subsystem.
A bundle within the root region is apparently being uninstalled outside of the
subsystems api while the bundle event hook is not registered, leaving the
bundle within the persisted memory. On restart, the bundle is sought while
initializing the root subsystem but is null.
> NPE in SubsystemResource.findContent
> ------------------------------------
>
> Key: ARIES-922
> URL: https://issues.apache.org/jira/browse/ARIES-922
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Reporter: John Ross
> Assignee: John Ross
>
> Stack Dump = org.osgi.service.coordinator.CoordinationException: Coordination
> has failed
> at
> org.eclipse.equinox.coordinator.CoordinationImpl.checkTerminated(CoordinationImpl.java:393)
> at
> org.eclipse.equinox.coordinator.CoordinationImpl.terminate(CoordinationImpl.java:401)
> at
> org.eclipse.equinox.coordinator.CoordinationImpl.end(CoordinationImpl.java:152)
> at
> org.eclipse.equinox.coordinator.CoordinationReferent.end(CoordinationReferent.java:38)
> at
> org.apache.aries.subsystem.core.internal.Subsystems.getRootSubsystem(Subsystems.java:162)
> at
> org.apache.aries.subsystem.core.internal.Activator.activate(Activator.java:155)
> at
> org.apache.aries.subsystem.core.internal.Activator.addingService(Activator.java:240)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)
> at
> org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)
> at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229)
> at
> org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894)
> at
> org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130)
> at
> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950)
> at org.apache.felix.resolver.Activator.start(Activator.java:43)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
> at
> org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1177)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
> at
> org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
> at
> org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
> Caused by: org.osgi.service.subsystem.SubsystemException:
> java.lang.NullPointerException
> at
> org.apache.aries.subsystem.core.internal.AriesSubsystem.getResource(AriesSubsystem.java:359)
> at
> org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installAriesSubsystem(SubsystemResourceInstaller.java:97)
> at
> org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.install(SubsystemResourceInstaller.java:37)
> at
> org.apache.aries.subsystem.core.internal.Subsystems.getRootSubsystem(Subsystems.java:158)
> ... 34 more
> Caused by: java.lang.NullPointerException
> at
> org.apache.aries.subsystem.core.internal.SubsystemResource.findContent(SubsystemResource.java:534)
> at
> org.apache.aries.subsystem.core.internal.SubsystemResource.computeContentResources(SubsystemResource.java:333)
> at
> org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:110)
> at
> org.apache.aries.subsystem.core.internal.AriesSubsystem.getResource(AriesSubsystem.java:356)
> ... 37 more
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira