You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Thomas Watson (JIRA)" <ji...@apache.org> on 2012/12/16 14:34:12 UTC
[jira] [Created] (ARIES-990) NPE while establishing the root
subsystem
Thomas Watson created ARIES-990:
-----------------------------------
Summary: 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