You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "John Ross (JIRA)" <ji...@apache.org> on 2013/01/03 14:14:13 UTC
[jira] [Resolved] (ARIES-990) NPE while establishing the root
subsystem
[ https://issues.apache.org/jira/browse/ARIES-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Ross resolved ARIES-990.
-----------------------------
Resolution: Fixed
Fixed in http://svn.apache.org/viewvc?view=revision&revision=1428323.
> NPE while establishing the root subsystem
> -----------------------------------------
>
> Key: ARIES-990
> URL: https://issues.apache.org/jira/browse/ARIES-990
> Project: Aries
> Issue Type: Bug
> Components: Subsystem
> Reporter: Thomas Watson
>
> I got the following NPE while the subsystem core was activating and establishing the root subsystem. I think at the time many bundles in the 'root' subsystem may have been getting deleted:
> >Caused by: java.lang.NullPointerException
> > at org.apache.aries.subsystem.core.internal.ResourceHelper.getIdentityAttribute(ResourceHelper.java:62)
> > at org.apache.aries.subsystem.core.internal.ResourceHelper.getTypeAttribute(ResourceHelper.java:92)
> > at org.apache.aries.subsystem.core.internal.ResourceInstaller.newInstance(ResourceInstaller.java:27)
> > at org.apache.aries.subsystem.core.internal.Subsystems.populateRootSubsystem(Subsystems.java:173)
> > at org.apache.aries.subsystem.core.internal.Subsystems.getRootSubsystem(Subsystems.java:131)
> There is a TODO in Subsystems.populateRootSubsystem that I think is showing itself in this NPE. In the following line of code the bundle revision may be null if the bundle got uninstalled:
> BundleRevision revision = bundle.adapt(BundleRevision.class);
> I think a check for null is needed here.
--
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