aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom De Wolf (JIRA)" <>
Subject [jira] [Updated] (ARIES-1368) BundleResource is not able to compute capabilities for fragments
Date Fri, 07 Aug 2015 17:57:45 GMT


Tom De Wolf updated ARIES-1368:
    Attachment: test-service-fragment-subsystem-1.0.1-SNAPSHOT.esa

It is the Aries ESA plugin at

Installing the attached subsystem including a fragment with the install gogo command results
in the stacktrace below. Thus the included fragment is not found. The gogo commands are the
ones included in the aries code base at:

Cause: OsgiIdentityCapability identifies all bundles as osgi.bundle via the osgi.identity
capability, it should check for fragments and use osgi.fragment.

install file:/Users/tom/Downloads/test-service-fragment-subsystem-1.0.1-SNAPSHOT.esa
Caused by: org.osgi.service.subsystem.SubsystemException: A required content resource could
not be found. This means the resource was either missing or not recognized as a supported
resource format due to, for example, an invalid bundle manifest or blueprint XML file. Turn
on debug logging for more information. The resource was: org.apache.aries.subsystem.core.archive.SubsystemContentRequirement:
namespace=osgi.identity, attributes={}, directives={filter=(&(osgi.identity=be.aca.test-service-fragment)(type=osgi.fragment)(&(version>=1.0.1.SNAPSHOT)(version<=1.0.1.SNAPSHOT)))},
	at org.apache.aries.subsystem.core.internal.SubsystemResource.computeContentResources(
	at org.apache.aries.subsystem.core.internal.SubsystemResource.computeContentResources(
	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(
	at org.apache.aries.subsystem.core.internal.SubsystemResource.<init>(
	at org.apache.aries.subsystem.core.internal.InstallAction.createSubsystemResource(
	at Method)
	at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(
	at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(
	at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(
	... 30 more

> BundleResource is not able to compute capabilities for fragments
> ----------------------------------------------------------------
>                 Key: ARIES-1368
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-core-1.2.0
>            Reporter: Wouter Bancken
>         Attachments: OsgiIdentityCapability.OsgiIdentityCapability(Resource,BundleManifest)-CallHierarchy.jpg,
> The computeOsgiIdentityCapability method of the BundleResource is not able to compute
capabilities for fragments (only for bundles). 
> This is caused by the fact that the BundleResource is hardcoded to always assume a type
of osgi.bundle without inspecting the manifest.
> Link to mailinglist thread:

This message was sent by Atlassian JIRA

View raw message