[
https://issues.apache.org/jira/browse/QPID-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102524#comment-13102524
]
Robbie Gemmell commented on QPID-3416:
--------------------------------------
This was the result of a constant having the incorrect text 'context in use'
instead of 'connection forced'. Rob Godfrey updated this during the recent work
to remove our dependency on Mina so this is now resolved.
> Incorrect credentials reported by client as "[error code 320: context in
> use]" on 0-10 code path
> ------------------------------------------------------------------------------------------------
>
> Key: QPID-3416
> URL: https://issues.apache.org/jira/browse/QPID-3416
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker, Java Client
> Affects Versions: 0.10, 0.11, 0.12
> Reporter: Keith Wall
> Assignee: Robbie Gemmell
>
> If a client specifies the wrong credentials, the stack trace includes the
> message [error code 320: context in use]. 320 is the correct error code from
> this condition, but "context in use" is incorrect and misleading.
> Here's a stack from Spout from the examples package pointed at 0.10 release
> Java broker.
> java -cp lib/qpid-all.jar:lib/qpid-client-example-0.10.jar
> org.apache.qpid.example.Spout -b=guest:wrong@localhost:5672 ping
> {code}
> main 2011-08-12 08:55:34,333 INFO [apache.qpid.client.AMQConnection] Unable
> to connect to broker at tcp://localhost:5672
> org.apache.qpid.AMQException: Cannot connect to broker: Error processing
> data: javax.security.sasl.SaslException: Authentication failed [error code
> 320: context in use]
> at
> org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:203)
> at
> org.apache.qpid.client.AMQConnection.makeBrokerConnection(AMQConnection.java:617)
> at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:396)
> at org.apache.qpid.client.AMQConnection.<init>(AMQConnection.java:246)
> at
> org.apache.qpid.example.OptionParser.createConnection(OptionParser.java:281)
> at org.apache.qpid.example.Spout.<init>(Spout.java:87)
> at org.apache.qpid.example.Spout.main(Spout.java:146)
> Caused by: org.apache.qpid.transport.ConnectionException: Error processing
> data: javax.security.sasl.SaslException: Authentication failed
> at
> org.apache.qpid.transport.ConnectionException.rethrow(ConnectionException.java:67)
> at org.apache.qpid.transport.Connection.connect(Connection.java:267)
> at
> org.apache.qpid.client.AMQConnectionDelegate_0_10.makeBrokerConnection(AMQConnectionDelegate_0_10.java:184)
> ... 6 more
> Caused by: org.apache.qpid.transport.ConnectionException: Error processing
> data: javax.security.sasl.SaslException: Authentication failed
> at org.apache.qpid.transport.Connection.closeCode(Connection.java:525)
> at
> org.apache.qpid.transport.ConnectionDelegate.connectionClose(ConnectionDelegate.java:76)
> at
> org.apache.qpid.transport.ConnectionDelegate.connectionClose(ConnectionDelegate.java:40)
> at
> org.apache.qpid.transport.ConnectionClose.dispatch(ConnectionClose.java:100)
> at
> org.apache.qpid.transport.ConnectionDelegate.control(ConnectionDelegate.java:49)
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]