[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2019-06-28 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16875036#comment-16875036
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Alex-Vol-SV commented on issue #20: Issue QPIDJMS-400: Add missing OSGI 
resolution:=optional to native tr…
URL: https://github.com/apache/qpid-jms/pull/20#issuecomment-506795013
 
 
   Thank you @gemmellr for including this fix.
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2019-06-28 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16875029#comment-16875029
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


gemmellr commented on issue #20: Issue QPIDJMS-400: Add missing OSGI 
resolution:=optional to native tr…
URL: https://github.com/apache/qpid-jms/pull/20#issuecomment-506792486
 
 
   I incorporated this into other changes made in 
https://issues.apache.org/jira/browse/QPIDJMS-462
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2019-06-28 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16875024#comment-16875024
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


asfgit commented on pull request #20: Issue QPIDJMS-400: Add missing OSGI 
resolution:=optional to native tr…
URL: https://github.com/apache/qpid-jms/pull/20
 
 
   
 

This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16542321#comment-16542321
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user Alex-Vol-SV commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
I will try to manipulate the dependencies so that kqueue is the 
platform-neutral version. If that works I will close this pull request.


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541664#comment-16541664
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user gemmellr commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
That wont actually work since the epoll bits are required by default, as 
the classes are used by default, in determining whether the functionality is 
currently available. 


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541645#comment-16541645
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user Alex-Vol-SV commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
I will try that but IMHO using "optional" is the right approach. Lets the 
OSGI dependency system do the right thing automatically without forcing 
developers to play games with the dependency selections. I can create an OSGI 
bundle that works on either platform without having to change its contents. On 
the target host the OSGI container will select the appropriate native transport 
automatically based on its availability.


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541596#comment-16541596
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user gemmellr commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
> FYI, attempting to exclude the transitive dependency on the kqueue jar so 
only the epoll jar is available in the bundle does not fix the problem, the 
OSGI container again complains about the missing kqueue dependency because the 
OSGI manifest "requires" the bundle to be present.

Which makes sense. Rather than exclude it entirely, did you try using the 
platform-neutral non-classified dependency instead?
i.e try:

http://repo2.maven.org/maven2/io/netty/netty-transport-native-kqueue/4.1.25.Final/netty-transport-native-kqueue-4.1.25.Final.jar
(rather than:

http://repo2.maven.org/maven2/io/netty/netty-transport-native-kqueue/4.1.25.Final/netty-transport-native-kqueue-4.1.25.Final-osx-x86_64.jar)


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541568#comment-16541568
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user Alex-Vol-SV commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
We are using the qpid-jms client as the primary dependency in a Felix 
container. The change fixed the activation issue for what its worth. The 
"Optional" flag does not mean the activation does not happen, it means if is 
not required to happen if it cannot be activated. The error is actually very 
telling, it complains about the required bundle kqueue on the platform it 
cannot be activated.

After the change the epoll bundle remains activated and the kqueue bundle 
is not activated which results in a running system.

FYI, attempting to exclude the transitive dependency on the kqueue jar so 
only the epoll jar is available in the bundle does not fix the problem, the 
OSGI container again complains about the missing kqueue dependency because the 
OSGI manifest "requires" the bundle to be present.


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-12 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16541413#comment-16541413
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user gemmellr commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
I agree the Travis CI OSX failure is unrelated. There isn't a way to 
trigger a new build on the github mirror without updating the PR.

I don't think this change is actually quite the way to go. The 'optional' 
flag was not missing for the epoll bits since the codebase actually needs the 
epoll classes by default, its used by default and the 'is epoll functionality 
available currently' checking exists in that code. The kqueue bits are not used 
by default and so perhaps that could be marked optional.

Regardless, there are actually two variants of the jars published, a 
classified platform-specific one, and a non-classified neutral one that doesn't 
actually contain the native libs but still provides the Java code. Which were 
you trying to use?


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-03 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16531295#comment-16531295
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


Github user Alex-Vol-SV commented on the issue:

https://github.com/apache/qpid-jms/pull/20
  
The failure in the Travis CI seems unrelated to my changes. I did not have 
a failure when building this on Ubuntu with Java 8. Should I try the same on 
MacOS? I have access to a Mac with XCode to run this on.


> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org



[jira] [Commented] (QPIDJMS-400) qpid-jms-client OSGI metadata should use resolution:="optional" for io.netty.channel.epoll and io.netty.channel.kqueue

2018-07-02 Thread ASF GitHub Bot (JIRA)


[ 
https://issues.apache.org/jira/browse/QPIDJMS-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16530647#comment-16530647
 ] 

ASF GitHub Bot commented on QPIDJMS-400:


GitHub user Alex-Vol-SV opened a pull request:

https://github.com/apache/qpid-jms/pull/20

Issue QPIDJMS-400: Add missing OSGI resolution:=optional to native tr…

…ansports

The packages io.netty.channel.epoll and io.netty.channel.kqueue need
to be marked as optional since only one of them can be activated at a
time depending on the target platform of choice. The OSGI system fails
to activate the bundle that does not match the platform where the
client is deployed and fails the application activation that attempts
to use it.

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/simplivity/qpid-jms bugfix/QPIDJMS-400

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/qpid-jms/pull/20.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #20


commit ac80df9dc0175ab84ec396cef20d8c4faf436d44
Author: Alex Volanis 
Date:   2018-07-03T00:53:16Z

Issue QPIDJMS-400: Add missing OSGI resolution:=optional to native 
transports

The packages io.netty.channel.epoll and io.netty.channel.kqueue need
to be marked as optional since only one of them can be activated at a
time depending on the target platform of choice. The OSGI system fails
to activate the bundle that does not match the platform where the
client is deployed and fails the application activation that attempts
to use it.




> qpid-jms-client OSGI metadata should use resolution:="optional" for 
> io.netty.channel.epoll and io.netty.channel.kqueue
> --
>
> Key: QPIDJMS-400
> URL: https://issues.apache.org/jira/browse/QPIDJMS-400
> Project: Qpid JMS
>  Issue Type: Bug
>  Components: qpid-jms-client
>Affects Versions: 0.34.0
> Environment: Java 8
> Ubuntu 14.04 LTS
>  
>Reporter: Alexander Volanis
>Priority: Major
>
> 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:
> {quote}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)(!(version>=4.2.0)))
>  Unresolved requirements: [[org.apache.qpid.jms.client [36](R 36.0)] 
> osgi.wiring.package; 
> (&(osgi.wiring.package=io.netty.channel.kqueue)(version>=4.1.0)(!(version>=4.2.0)))])
> {quote}
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

-
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org