aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Ross (JIRA)" <>
Subject [jira] [Commented] (ARIES-1452) Subsystem throws exception when bundle imports osgi framework
Date Wed, 03 Feb 2016 19:24:39 GMT


John Ross commented on ARIES-1452:

I'm able to successfully install and start the attached EBA in my environment, which is basically
an extension of the existing itest framework. You should be able to take the attached
file, drop it in org.apache.aries.subsystem.itests/org.apache.aries.subsystem.itests.defect,
modify the DIR variable as needed, and run it as a JUnit tests from within Eclipse. If we
can get that to fail, that would help.

I noticed that one of your poms has the following entry:


Is that the system bundle implementation from Felix or is that the core api library (i.e.
the equivalent of osgi.core)? If the latter then you may very well have two different bundles
in your environment exporting org.osgi.framework at different versions.

> Subsystem throws exception when bundle imports osgi framework
> -------------------------------------------------------------
>                 Key: ARIES-1452
>                 URL:
>             Project: Aries
>          Issue Type: Bug
>          Components: Subsystem
>    Affects Versions: subsystem-2.0.6, subsystem-2.0.8
>         Environment: Mac OS X
> Apache Felix (inside Apache Sling 9-SNAPSHOT)
>            Reporter: Roy Teeuwen
>         Attachments:
> When building an OSGi subsystem feature, I created two bundles, an api and a core. The
core has following embedded dependency:
> <dependency>
>    <groupId>com.squeakysand.osgi</groupId>
>    <artifactId>squeakysand-osgi</artifactId>
>    <version>0.4.0</version>
> </dependency>
> Using  previous dependency in the core, it creates the Import-Package org.osgi.framework;version="[1.5,2)”
when using maven-bundle-plugin version 3.0.1.
> Starting up this subsystem through the webconsole subsystem plugin of Apache Felix, following
error is thrown:
> 13.11.2015 22:01:23.849 *ERROR* [Thread-95]
Uncaught exception in Thread Thread[Thread-95,5,main]
> org.osgi.service.subsystem.SubsystemException: org.osgi.service.resolver.ResolutionException:
Uses constraint violation. Unable to resolve resource idoneus.mdm-parser-core [/var/folders/h1/k9tr352j615f8jrrzh5yr5b80000gn/T/]
because it is exposed to package 'org.osgi.framework' from resources org.apache.felix.framework
[org.apache.felix.framework [0](R 0)] and org.apache.felix.framework [org.apache.felix.framework
[0](R 0)] via two dependency chains.
> Chain 1:
>   idoneus.mdm-parser-core [/var/folders/h1/k9tr352j615f8jrrzh5yr5b80000gn/T/]
>     import: (&(osgi.wiring.package=org.osgi.framework)(&(version>=1.5.0)(!(version>=2.0.0))))
>      |
>     export: osgi.wiring.package: org.osgi.framework
>   org.apache.felix.framework [org.apache.felix.framework [0](R 0)]
> Chain 2:
>   idoneus.mdm-parser-core [/var/folders/h1/k9tr352j615f8jrrzh5yr5b80000gn/T/]
>     import: (&(>=1.2.0)(!(version>=2.0.0))))
>      |
>     export:; uses:=org.osgi.service.event
> [ [103](R 103.0)]
>     import: (&(osgi.wiring.package=org.osgi.service.event)(version>=1.2.0)(!(version>=2.0.0)))
>      |
>     export: osgi.wiring.package=org.osgi.service.event; uses:=org.osgi.framework
>   org.apache.felix.eventadmin [org.apache.felix.eventadmin [9](R 9.0)]
>     import: (&(osgi.wiring.package=org.osgi.framework)(version>=1.3.0)(!(version>=2.0.0)))
>      |
>     export: osgi.wiring.package: org.osgi.framework
>   org.apache.felix.framework [org.apache.felix.framework [0](R 0)]
> 	at org.apache.aries.subsystem.core.internal.SubsystemResource.computeDependencies(
> This does not happen when I install the api and core as seperate bundles in the OSGi

This message was sent by Atlassian JIRA

View raw message