qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robbie Gemmell (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (QPID-5673) NPE during authentication when using Messenger API
Date Thu, 01 May 2014 13:20:17 GMT

     [ https://issues.apache.org/jira/browse/QPID-5673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robbie Gemmell resolved QPID-5673.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.29

> 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: Robbie Gemmell
>             Fix For: 0.29
>
>         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


Mime
View raw message