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 2016/04/07 17:45:25 UTC

[jira] [Commented] (ARIES-1522) NullPointerException (NPE) when creating a RequireBundleHeader using the filter provided by FelixRequirementAdapter.

    [ https://issues.apache.org/jira/browse/ARIES-1522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230436#comment-15230436 ] 

John Ross commented on ARIES-1522:
----------------------------------

The FelixRequirementAdapter returns a filter similar to the following for bundle requirements.

(&(symbolicname=a.b.c)(mandatory:<*symbolicname))

This causes the NPE in RequireBundleHeader because the path is null since it expects an attribute with osgi.wiring.bundle as the name in the filter. The symbolicname attribute should be translated into osgi.wiring.bundle as part of the adaptation.



> NullPointerException (NPE) when creating a RequireBundleHeader using the filter provided by FelixRequirementAdapter.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARIES-1522
>                 URL: https://issues.apache.org/jira/browse/ARIES-1522
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.8
>            Reporter: John Ross
>            Assignee: John Ross
>
> Stack Dump = org.osgi.service.subsystem.SubsystemException: java.lang.NullPointerException
> 	at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:98)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:27)
> 	at java.security.AccessController.doPrivileged(AccessController.java:594)
> 	at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:665)
> 	at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:659)
> 	at com.ibm.ws.app.manager.esa.internal.DeploySubsystemAction.installSubsystem(DeploySubsystemAction.java:190)
> 	at com.ibm.ws.app.manager.esa.internal.DeploySubsystemAction.deploySubsystem(DeploySubsystemAction.java:163)
> 	at com.ibm.ws.app.manager.esa.internal.DeploySubsystemAction.deploy(DeploySubsystemAction.java:113)
> 	at com.ibm.ws.app.manager.esa.internal.SubsystemHandler.install(SubsystemHandler.java:356)
> 	at com.ibm.ws.app.manager.esa.internal.EBAToSubsystemHandler.install(EBAToSubsystemHandler.java:189)
> 	at com.ibm.ws.app.manager.internal.statemachine.StartAction.execute(StartAction.java:141)
> 	at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.enterState(ApplicationStateMachineImpl.java:1192)
> 	at com.ibm.ws.app.manager.internal.statemachine.ApplicationStateMachineImpl.run(ApplicationStateMachineImpl.java:805)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> 	at java.lang.Thread.run(Thread.java:785)
> Caused by: java.lang.NullPointerException
> 	at org.apache.aries.subsystem.core.archive.AbstractClause.<init>(AbstractClause.java:95)
> 	at org.apache.aries.subsystem.core.archive.RequireBundleHeader$Clause.<init>(RequireBundleHeader.java:46)
> 	at org.apache.aries.subsystem.core.archive.RequireBundleHeader$Clause.valueOf(RequireBundleHeader.java:82)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeRequireBundleHeader(RawSubsystemResource.java:384)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.addRequireBundleHeader(RawSubsystemResource.java:311)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.computeSubsystemManifestAfterRequirements(RawSubsystemResource.java:548)
> 	at org.apache.aries.subsystem.core.internal.RawSubsystemResource.<init>(RawSubsystemResource.java:139)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:91)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:60)
> 	... 15 more 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)