Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-400

qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.34.0
    • Fix Version/s: None
    • Component/s: qpid-jms-client
    • Labels:
      None
    • Environment:

      Java 8

      Ubuntu 14.04 LTS

       

      Description

      Attempting to use the qpid-jms-client JAR as a dependency of an application bundle in Apache Felix container results in the following error and failure to activate qpid-jms bundle:

      ERROR: Bundle org.apache.qpid.jms.client [36] Error starting file:/var/tmp/build/java/dispatcher/qpid-jms-client-0.34.0.jar (org.osgi.framework.BundleException: Unable to resolve org.apache.qpid.jms.client [36](R 36.0): missing requirement [org.apache.qpid.jms.client [36](R 36.0)] osgi.wiring.package; (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(Unable to render embedded object: File ( [[org.apache.qpid.jms.client [36](R 36.0)] osgi.wiring.package; (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)() not found.(version>=4.2.0)))])

      This is on a Ubuntu host where the correct native transport would be the io.netty.channel.epoll package. The io.netty.channel.kqueue is appropriate when the host is MacOSX.

      On a hunch I patched the JAR file to add the missing resolution:="optional" to both the io.netty.channel.epoll and io.netty.channel.kqueue packages. As soon as I tried with my patched JAR file the bundles deployed and activated with the epoll bundle being selected automatically. No more activation errors.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alex.vol Alexander Volanis
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: