[
https://issues.apache.org/jira/browse/QPID-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13966995#comment-13966995
]
Justin Ross commented on QPID-5673:
-----------------------------------
I reproduced this another way and got the client trace this time:
{noformat}
jross@localhost bailey$ PN_TRACE_FRM=1 qmlist types
Connected to 0.0.0.0:5672
[0x9e7e00]: -> SASL
[0x9e7e00]:0 -> @sasl-init(65) [mechanism=:PLAIN,
initial-response=b"\x00guest\x00guest"]
[0x9e7e00]: <- SASL
[0x9e7e00]:0 <- @sasl-mechanisms(64)
[sasl-server-mechanisms=@PN_SYMBOL[:AMQPLAIN, :PLAIN, :"CRAM-MD5"]]
[0x9e7e00]:0 <- @sasl-outcome(68) [code=0]
[0x9e7e00]: -> AMQP
[0x9e7e00]:0 -> @open(16) [container-id="e5a7ed9d-37b4-43a5-9da6-c509773369c1",
hostname="0.0.0.0"]
[0x9e7e00]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647,
outgoing-window=0]
[0x9e7e00]:0 -> @attach(18) [name="receiver-xxx", handle=0, role=true,
snd-settle-mode=2, rcv-settle-mode=0, source=@source(40) [address="responses",
durable=0, timeout=0, dynamic=false], target=@target(41) [address="responses",
durable=0, timeout=0, dynamic=false], initial-delivery-count=0]
[0x9e7e00]: <- AMQP
[0x9e7e00]:0 <- @close(24) [error=@error(29)
[condition=:"amqp:connection:forced",
description="java.lang.NullPointerException"]]
[0x9e7e00]: <- EOS
CONNECTION ERROR (amqp:connection:forced) java.lang.NullPointerException
[0x9e7e00]:0 -> @close(24) []
[0x9e7e00]: -> EOS
Closed 0.0.0.0:5672
{noformat}
> 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
> 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:[email protected]: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: [email protected]
For additional commands, e-mail: [email protected]