You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/04/08 19:50:25 UTC

[jira] [Commented] (QPID-7189) [Java Client 0-8..0-10] Client fails to create delegate for AMQP 0.9.1 in response to broker supported protocol recieved during protocol negotiation

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

ASF subversion and git services commented on QPID-7189:
-------------------------------------------------------

Commit 1738271 from [~k-wall] in branch 'java/trunk'
[ https://svn.apache.org/r1738271 ]

QPID-7189: [Java Client] Consistently name the connection delegates

* The previous inconsistency with the naming of 0-91's delegate was caused by the fact that
  AMQP 0-10 implementation misinterpreted 0-91 header.
* Also on the 0-8..0-91 path ensure that a AMQProtocolHeaderException is promptly reported to the caller (rather than causing a hang).

> [Java Client 0-8..0-10] Client fails to create delegate for AMQP 0.9.1 in response to broker supported protocol recieved during protocol negotiation
> ----------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-7189
>                 URL: https://issues.apache.org/jira/browse/QPID-7189
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Client
>    Affects Versions: 0.32, qpid-java-6.0, qpid-java-6.0.1
>            Reporter: Alex Rudyy
>            Assignee: Keith Wall
>            Priority: Minor
>             Fix For: qpid-java-6.0.2, qpid-java-6.1
>
>         Attachments: 0001-QPID-7189-Rename-connection-delegates-to-match-proto.patch
>
>
> If broker replies with AMQP 0.9.1 during protocol negotiation, the client is not able to create a delegate as it is looking for delegate using the code below:
> {code}
> String delegateClassName = String.format("org.apache.qpid.client.AMQConnectionDelegate_s_%s",  pe.getMajorVersion(), pe.getMinorVersion());
> {code} 
> There is no delegate AMQConnectionDelegate_0_91
> The client fails with exception as below:
> {noformat}
> Exception in thread "main" javax.jms.JMSException: Error creating connection: Protocol: 0.91 is rquired by the broker but is not currently supported by this client library implementation
> 	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:134)
> 	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:57)
> 	at org.apache.qpid.example.Hello.runTest(Hello.java:50)
> 	at org.apache.qpid.example.Hello.main(Hello.java:36)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:497)
> Caused by: org.apache.qpid.AMQProtocolException: Protocol: 0.91 is rquired by the broker but is not currently supported by this client library implementation [error code 543: client unsupported protocol]
> 	at org.apache.qpid.client.AMQConnection.initDelegate(AMQConnection.java:626)
> 	at org.apache.qpid.client.AMQConnection.makeConnection(AMQConnection.java:521)
> 	at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:474)
> 	at org.apache.qpid.client.AMQConnectionFactory.createConnection(AMQConnectionFactory.java:130)
> 	... 8 more
> Caused by: java.lang.ClassNotFoundException: org.apache.qpid.client.AMQConnectionDelegate_0_91
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Class.java:264)
> 	at org.apache.qpid.client.AMQConnection.initDelegate(AMQConnection.java:616)
> 	... 11 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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