You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (JIRA)" <ji...@apache.org> on 2016/04/07 11:40:25 UTC
[jira] [Created] (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
Alex Rudyy created QPID-7189:
--------------------------------
Summary: [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: qpid-java-6.0.1, qpid-java-6.0, 0.32
Reporter: Alex Rudyy
If broker replies with AMQP 0.9.1 during protocol negotiation, the client is not able to create a delegate as it looks for delegate using the 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