felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Bosschaert (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-4571) NullPointerException when using Repository impl with Aries subsystem impl
Date Fri, 19 Sep 2014 14:22:33 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Bosschaert updated FELIX-4571:
------------------------------------
    Fix Version/s: bundlerepository-2.0.4

> NullPointerException when using Repository impl with Aries subsystem impl
> -------------------------------------------------------------------------
>
>                 Key: FELIX-4571
>                 URL: https://issues.apache.org/jira/browse/FELIX-4571
>             Project: Felix
>          Issue Type: Bug
>          Components: Bundle Repository (OBR)
>            Reporter: Thomas Watson
>            Assignee: David Bosschaert
>             Fix For: bundlerepository-2.0.4
>
>         Attachments: obr.test_1.0.0.201407241433.jar
>
>
> I get the following while trying to use the OSGi  Repository service  implementation
with Apache Aries subsystems implementation:
> Caused by: java.lang.NullPointerException
> 	at org.apache.felix.bundlerepository.impl.LazyHashMap.put(LazyHashMap.java:88)
> 	at org.apache.felix.bundlerepository.impl.OSGiRepositoryImpl.newOSGiContentCapability(OSGiRepositoryImpl.java:155)
> 	at org.apache.felix.bundlerepository.impl.FelixResourceAdapter.getCapabilities(FelixResourceAdapter.java:50)
> 	at org.apache.felix.resolver.Util.isFragment(Util.java:62)
> 	at org.apache.felix.resolver.Candidates.processCandidates(Candidates.java:606)
> 	at org.apache.felix.resolver.Candidates.populateResource(Candidates.java:273)
> 	at org.apache.felix.resolver.Candidates.populate(Candidates.java:161)
> 	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:146)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(SubsystemResource.java:410)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(SubsystemResource.java:393)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:101)
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(SubsystemResource.java:92)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.createSubsystemResource(InstallAction.java:114)
> 	at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:52)
> It appears a null capability size attribute is causing the exception:
>  contentAttrs.put(ContentNamespace.CAPABILITY_SIZE_ATTRIBUTE, resource.getSize());
> I'm not sure why it is null or if it is not allowed to be null.



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

Mime
View raw message