You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Lorenz Quack (JIRA)" <ji...@apache.org> on 2015/05/11 13:29:00 UTC

[jira] [Updated] (QPID-6234) (0-10) Absence of destination argument to the message.subscribe command causes Java Broker to NPE

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

Lorenz Quack updated QPID-6234:
-------------------------------
    Attachment: 0001-QPID-6234-Java-Broker-The-Java-broker-no-longer-acce.patch
                0001-QPID-6234-Java-Broker-prevent-0-10-clients-from-subs.patch

0001-QPID-6234-Java-Broker-prevent-0-10-clients-from-subs.patch makes the broker reject subscriptions that do not provide a destination.
0001-QPID-6234-Java-Broker-The-Java-broker-no-longer-acce.patch changes the test to now provide a destination. It now fails for a different reason.

> (0-10) Absence of destination argument to the message.subscribe command causes Java Broker to NPE
> -------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6234
>                 URL: https://issues.apache.org/jira/browse/QPID-6234
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.31
>            Reporter: Keith Wall
>         Attachments: 0001-QPID-6234-Java-Broker-The-Java-broker-no-longer-acce.patch, 0001-QPID-6234-Java-Broker-prevent-0-10-clients-from-subs.patch
>
>
> If I pass a message.subscribe command to the Java Broker but omit the optional destination flag, the test fails and the Java Broker exits due to the following NPE.
> It appears the code assumes destination will never be absent.
> The easiest way to reproduce the issue is to run Python test (which is excluded in the Java010PythonExcludes file)
> qpid_tests.broker_0_10.queue.QueueTests.test_declare_exclusive_alreadyinuse
> Exception is:
> {noformat}
> ########################################################################
> #
> # Unhandled Exception java.lang.NullPointerException in Thread IoReceiver - /0:0:0:0:0:0:0:1:49316
> #
> # Exiting
> #
> ########################################################################
> java.lang.NullPointerException
> 	at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
> 	at java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1175)
> 	at org.apache.qpid.server.protocol.v0_10.ServerSession.unregister(ServerSession.java:556)
> 	at org.apache.qpid.server.protocol.v0_10.ServerSession.unregisterSubscriptions(ServerSession.java:940)
> 	at org.apache.qpid.server.protocol.v0_10.ServerConnection.closeSubscriptions(ServerConnection.java:542)
> 	at org.apache.qpid.server.protocol.v0_10.ServerConnection.closed(ServerConnection.java:534)
> 	at org.apache.qpid.transport.network.Assembler.closed(Assembler.java:112)
> 	at org.apache.qpid.transport.network.InputHandler.closed(InputHandler.java:214)
> 	at org.apache.qpid.server.protocol.v0_10.ProtocolEngine_0_10.closed(ProtocolEngine_0_10.java:231)
> 	at org.apache.qpid.server.protocol.MultiVersionProtocolEngine.closed(MultiVersionProtocolEngine.java:129)
> 	at org.apache.qpid.transport.network.io.IoReceiver.run(IoReceiver.java:222)
> 	at java.lang.Thread.run(Thread.java:744)
> Process finished with exit code 1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org