Justin Ross created QPID-5673:
---------------------------------

             Summary: NPE during authentication when using Messenger API
                 Key: QPID-5673
                 URL: https://issues.apache.org/jira/browse/QPID-5673
             Project: Qpid
          Issue Type: Bug
          Components: Java Broker
    Affects Versions: 0.29
            Reporter: Justin Ross


When I try to authenticate with an existing user (admin:admin), I get the 
exception.  When I try to authenticate with a made-up user (test:test), I get a 
"(null)" error response.

Exception:

{noquote}
java.lang.NullPointerException
        at 
org.apache.qpid.server.protocol.v1_0.Connection_1_0.closeReceived(Connection_1_0.java:220)
        at 
org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receiveClose(ConnectionEndpoint.java:369)
        at org.apache.qpid.amqp_1_0.type.transport.Close.invoke(Close.java:75)
        at 
org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receive(ConnectionEndpoint.java:731)
        at 
org.apache.qpid.amqp_1_0.framing.FrameHandler.parse(FrameHandler.java:242)
        at 
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL$3.run(ProtocolEngine_1_0_0_SASL.java:367)
        at 
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL$3.run(ProtocolEngine_1_0_0_SASL.java:363)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:356)
        at 
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL.received(ProtocolEngine_1_0_0_SASL.java:362)
        at 
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL.received(ProtocolEngine_1_0_0_SASL.java:64)
        at 
org.apache.qpid.server.protocol.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:132)
        at 
org.apache.qpid.server.protocol.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:48)
        at 
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:161)
        at java.lang.Thread.run(Thread.java:744)
{noquote}

Test code:

{noquote}
from proton import Message, Messenger

msgr = Messenger()
msgr.start()

try:
    msg = Message()
    msg.address = "amqp://admin:[email protected]:5672/test"
    msg.body = "test"

    msgr.put(msg)
    msgr.send()
finally:
    msgr.stop()
{noquote}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to