qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [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 received during protocol negotiation
Date Tue, 12 Apr 2016 10:38:25 GMT

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

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

Commit 1738758 from orudyy@apache.org in branch 'java/branches/6.0.x'
[ https://svn.apache.org/r1738758 ]

QPID-7189: Fix creation of delegate for AMQP 0-9-1 in response to broker supported protocol
on protocol negotiation

          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.

          Merged from trunk
          svn merge -c 1738135,1738271 ^/qpid/java/trunk

> [Java Client 0-8..0-10] Client fails to create delegate for AMQP 0.9.1 in response to
broker supported protocol received 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


Mime
View raw message