You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Rob Godfrey (JIRA)" <ji...@apache.org> on 2014/05/01 15:14:17 UTC
[jira] [Updated] (QPID-5673) NPE during authentication when using
Messenger API
[ https://issues.apache.org/jira/browse/QPID-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Godfrey updated QPID-5673:
------------------------------
Status: Reviewable (was: In Progress)
> 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
> Assignee: Rob Godfrey
> Attachments: broker.out
>
>
> 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:
> {noformat}
> 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)
> {noformat}
> Test code:
> {noformat}
> from proton import Message, Messenger
> msgr = Messenger()
> msgr.start()
> try:
> msg = Message()
> msg.address = "amqp://admin:admin@0.0.0.0:5672/test"
> msg.body = "test"
> msgr.put(msg)
> msgr.send()
> finally:
> msgr.stop()
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org