Qpid
  1. Qpid
  2. QPID-3416

Incorrect credentials reported by client as "[error code 320: context in use]" on 0-10 code path

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10, 0.11, 0.12
    • Fix Version/s: 0.13
    • Component/s: Java Broker, Java Client
    • Labels:
      None

      Description

      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

      
      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)
      
      
      

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Robbie Gemmell
            Reporter:
            Keith Wall
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development