You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Andre Pearce (IG) (JIRA)" <ji...@apache.org> on 2017/05/02 15:56:04 UTC

[jira] [Created] (ARTEMIS-1138) OSGI Netty Issue

Michael Andre Pearce (IG) created ARTEMIS-1138:
--------------------------------------------------

             Summary: OSGI Netty Issue
                 Key: ARTEMIS-1138
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-1138
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: osgi
    Affects Versions: 2.next
            Reporter: Michael Andre Pearce (IG)
             Fix For: 2.next


I was going to release today, but ArtemisFeatureTest is failing *... I
don't want to release with that failure (Karaf integration wouldn't
work).

 

*=https://github.com/apache/activemq-artemis/blob/master/tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/karaf/ArtemisFeatureTest.java



The Current failure is because of the missing epoll package from netty.

org.osgi.service.resolver.ResolutionException: Unable to resolve root:
missing requirement [root] osgi.identity; osgi.identity=artemis;
type=karaf.feature; version="[2.1.0.SNAPSHOT,2.1.0.SNAPSHOT]";
filter:="(&(osgi.identity=artemis)(type=karaf.feature)(version>=2.1.0.SNAPSHOT)(version<=2.1.0.SNAPSHOT))"
[caused by: Unable to resolve artemis/2.1.0.SNAPSHOT: missing
requirement [artemis/2.1.0.SNAPSHOT] osgi.identity;
osgi.identity=artemis-amqp; type=karaf.feature [caused by: Unable to
resolve artemis-amqp/2.1.0.SNAPSHOT: missing requirement
[artemis-amqp/2.1.0.SNAPSHOT] osgi.identity;
osgi.identity=org.apache.activemq.artemis-amqp-protocol;
type=osgi.bundle; version="[2.1.0.SNAPSHOT,2.1.0.SNAPSHOT]";
resolution:=mandatory [caused by: Unable to resolve
org.apache.activemq.artemis-amqp-protocol/2.1.0.SNAPSHOT: missing
requirement [org.apache.activemq.artemis-amqp-protocol/2.1.0.SNAPSHOT]
osgi.wiring.package;
filter:="(osgi.wiring.package=org.apache.activemq.artemis.api.core)"
[caused by: Unable to resolve
org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT: missing
requirement [org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]
osgi.wiring.package;
filter:="(osgi.wiring.package=io.netty.channel.epoll)"]]]]




So, if I edited features.xml and add this:

<bundle>mvn:io.netty/netty-transport-native-epoll/${netty.version}</bundle>



I will get a different error... and I can't get past that...



Anyone have any ideas... please?????



org.osgi.service.resolver.ResolutionException: Uses constraint
violation. Unable to resolve resource
org.apache.activemq.artemis-server-osgi
[org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT] because it is
exposed to package 'io.netty.buffer' from resources
org.apache.activemq.artemis-server-osgi
[org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT] and
io.netty.buffer [io.netty.buffer/4.1.10.Final] via two dependency
chains.


Chain 1:

  org.apache.activemq.artemis-server-osgi
[org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]

    import: 
(&(osgi.wiring.package=io.netty.buffer)(version>=2.1.0)(!(version>=3.0.0)))

     |

    export: osgi.wiring.package: io.netty.buffer

  org.apache.activemq.artemis-server-osgi
[org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]


Chain 2:

  org.apache.activemq.artemis-server-osgi
[org.apache.activemq.artemis-server-osgi/2.1.0.SNAPSHOT]

    import: (osgi.wiring.package=io.netty.bootstrap)

     |

    export: osgi.wiring.package=io.netty.bootstrap; uses:=io.netty.buffer

  io.netty.transport [io.netty.transport/4.1.10.Final]

    import: 
(&(osgi.wiring.package=io.netty.buffer)(version>=4.1.0)(!(version>=5.0.0)))



-- 
Clebert Suconic




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)