[
https://issues.apache.org/jira/browse/QPID-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13968206#comment-13968206
]
Justin Ross commented on QPID-5673:
-----------------------------------
I tried again and got a somewhat different result. (I acknowledge that the
vhost issue has not been addressed; hoping this is helpful nonetheless.)
{noformat}
jross@localhost bailey$ PN_TRACE_FRM=1 qmlist types
Connected to 0.0.0.0:5672
[0x112dc90]: -> SASL
[0x112dc90]:0 -> @sasl-init(65) [mechanism=:PLAIN,
initial-response=b"\x00guest\x00guest"]
[0x112dc90]: <- SASL
[0x112dc90]:0 <- @sasl-mechanisms(64)
[sasl-server-mechanisms=@PN_SYMBOL[:AMQPLAIN, :PLAIN, :"CRAM-MD5"]]
[0x112dc90]:0 <- @sasl-outcome(68) [code=0]
[0x112dc90]: <- AMQP
[0x112dc90]: -> AMQP
[0x112dc90]:0 -> @open(16)
[container-id="8ae49239-d6f9-4476-a06a-7428aa17f7c9", hostname="0.0.0.0"]
[0x112dc90]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647,
outgoing-window=0]
[0x112dc90]: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]
[0x112dc90]:0 <- @begin(17) [remote-channel=0, next-outgoing-id=0,
incoming-window=2048, outgoing-window=2048]
[0x112dc90]:0 <- @close(24) [error=@error(29)
[condition=:"amqp:connection:forced",
description="java.lang.NullPointerException"]]
[0x112dc90]: <- EOS
CONNECTION ERROR (amqp:connection:forced) java.lang.NullPointerException
[0x112dc90]:0 -> @close(24) []
[0x112dc90]: -> EOS
Closed 0.0.0.0:5672
{noformat}
{noformat}
2014-04-14 06:12:35,413 DEBUG [IoReceiver - /127.0.0.1:35621] (FRM) -
SEND[/127.0.0.1:35621|0] :
Begin{remoteChannel=0,nextOutgoingId=0,incomingWindow=2048,outgoingWindow=2048}
2014-04-14 06:12:35,414 DEBUG [IoReceiver - /127.0.0.1:35621] (RAW) -
SEND[/127.0.0.1:35621] :
\x00\x00\x00\x1c\x02\x00\x00\x00\x00S\x11\xc0\x0f\x04`\x00\x00Cp\x00\x00\x08\x00p\x00\x00\x08\x00
2014-04-14 06:12:35,418 DEBUG [IoReceiver - /127.0.0.1:35621] (FRM) -
RECV[/127.0.0.1:35621|0] :
Attach{name=receiver-xxx,handle=0,role=receiver,sndSettleMode=mixed,rcvSettleMode=first,source=Source{address=responses,durable=none,timeout=0,dynamic=false},target=Target{address=responses,durable=none,timeout=0,dynamic=false},initialDeliveryCount=0}
00 53 12 d0 00 00 00 5f 00 00 00 0a a1 0c 72 65 63
65 69 76 65 72 2d 78 78 78 52 00 41 50 02 50 00 00
53 28 d0 00 00 00 1b 00 00 00 0b a1 09 72 65 73 70
6f 6e 73 65 73 52 00 40 52 00 42 40 40 40 40 40 40
00 53 29 d0 00 00 00 17 00 00 00 07 a1 09 72 65 73
70 6f 6e 73 65 73 52 00 40 52 00 42 40 40 40 40 52
00
2014-04-14 06:12:35,426 DEBUG [IoReceiver - /127.0.0.1:35621] (FRM) -
SEND[/127.0.0.1:35621|0] :
Close{error=Error{condition=connection-forced,description=java.lang.NullPointerException}}
2014-04-14 06:12:35,427 DEBUG [IoReceiver - /127.0.0.1:35621] (RAW) -
SEND[/127.0.0.1:35621] :
\x00\x00\x00L\x02\x00\x00\x00\x00S\x18\xc0?\x01\x00S\x1d\xc09\x02\xa3\x16amqp:connection:forced\xa1\x1ejava.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.qpid.server.protocol.v1_0.Session_1_0.remoteLinkCreation(Session_1_0.java:134)
at
org.apache.qpid.server.protocol.v1_0.Connection_1_0$2$1.run(Connection_1_0.java:170)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at
org.apache.qpid.server.protocol.v1_0.Connection_1_0$2.remoteLinkCreation(Connection_1_0.java:165)
at
org.apache.qpid.amqp_1_0.transport.SessionEndpoint.receiveAttach(SessionEndpoint.java:283)
at
org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receiveAttach(ConnectionEndpoint.java:609)
at
org.apache.qpid.amqp_1_0.type.transport.Attach.invoke(Attach.java:352)
at
org.apache.qpid.amqp_1_0.transport.ConnectionEndpoint.receive(ConnectionEndpoint.java:774)
at
org.apache.qpid.amqp_1_0.framing.FrameHandler.parse(FrameHandler.java:242)
at
org.apache.qpid.amqp_1_0.framing.AMQPProtocolHeaderHandler.parse(AMQPProtocolHeaderHandler.java:70)
at
org.apache.qpid.amqp_1_0.codec.ProtocolHeaderHandler.parse(ProtocolHeaderHandler.java:107)
at
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL$4.run(ProtocolEngine_1_0_0_SASL.java:382)
at
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL$4.run(ProtocolEngine_1_0_0_SASL.java:378)
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:377)
at
org.apache.qpid.server.protocol.v1_0.ProtocolEngine_1_0_0_SASL.received(ProtocolEngine_1_0_0_SASL.java:65)
at
org.apache.qpid.server.protocol.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:133)
at
org.apache.qpid.server.protocol.MultiVersionProtocolEngine.received(MultiVersionProtocolEngine.java:49)
at
org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:161)
at java.lang.Thread.run(Thread.java:744)
2014-04-14 06:12:35,431 DEBUG [IoReceiver - /127.0.0.1:35621] (RAW) -
RECV[/127.0.0.1:35621] :
\x00\x00\x00\x15\x02\x00\x00\x00\x00S\x18\xd0\x00\x00\x00\x05\x00\x00\x00\x01@
2014-04-14 06:12:35,431 DEBUG [IoReceiver - /127.0.0.1:35621] (FRM) -
RECV[/127.0.0.1:35621|0] : Close{}
{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
> 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:[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]