Skip to content

OSGi bundle resolving problems #1091

Closed
Closed
@thjaeckle

Description

@thjaeckle

Hi.
With the latest 2.0.0-RC8 there seem to be some problems with the OSGi manifests.
When trowing following bundles into into a Felix container I get 2 errors.

The Bundles

(which are transitive dependencies of async-http-client):

  • netty-transport-4.0.34.Final.jar
  • netty-handler-4.0.34.Final.jar
  • netty-common-4.0.34.Final.jar
  • netty-codec-4.0.34.Final.jar
  • netty-codec-http-4.0.34.Final.jar
  • netty-buffer-4.0.34.Final.jar
  • javassist-3.18.1-GA.jar
  • netty-reactive-streams-1.0.2.jar
  • async-http-client-2.0.0-RC8.jar
  • netty-codec-dns-2.0.0-RC8.jar
  • netty-resolver-dns-2.0.0-RC8.jar
  • netty-resolver-2.0.0-RC8.jar

Error 1

2016-02-04 12:51:46,425 | WARN  | ? | org.apache.felix.fileinstall | Error while starting bundle: file:/D:/felix/osgi/deploy/netty-resolver-dns-2.0.0-RC8.jar
org.osgi.framework.BundleException: Uses constraint violation. Unable to resolve bundle revision org.asynchttpclient.netty-resolver-dns [105.0] because it exports package 'io.netty.channel' and is also exposed to it from bundle revision io.netty.transport [95.0] via the following dependency chain:

  org.asynchttpclient.netty-resolver-dns [105.0]
    import: (&(osgi.wiring.package=io.netty.handler.codec.dns)(version>=2.0.0)(!(version>=3.0.0)))
     |
    export: osgi.wiring.package=io.netty.handler.codec.dns; uses:=io.netty.channel.socket
  org.asynchttpclient.netty-codec-dns [102.0]
    import: (&(osgi.wiring.package=io.netty.channel.socket)(version>=4.0.0)(!(version>=5.0.0)))
     |
    export: osgi.wiring.package=io.netty.channel.socket; uses:=io.netty.channel
    export: osgi.wiring.package=io.netty.channel

Error 2

2016-02-04 12:51:46,430 | WARN  | ? | org.apache.felix.fileinstall | Error while starting bundle: file:/D:/felix/osgi/deploy/async-http-client-2.0.0-RC8.jar
org.osgi.framework.BundleException: Unresolved constraint in bundle org.asynchttpclient.async-http-client [90]: Unable to resolve 90.0: missing requirement [90.0] osgi.wiring.package; (osgi.wiring.package=com.typesafe.netty)

*Edit: the Error 2 probably is because artifact netty-reactive-streams-1.0.2.jar is no OSGi bundle (no MANIFEST exports).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions