Fraser Adams created QPID-6025:
----------------------------------

             Summary: Java port of QpidConfig give NPE when listing 
queue/exchanges
                 Key: QPID-6025
                 URL: https://issues.apache.org/jira/browse/QPID-6025
             Project: Qpid
          Issue Type: Bug
    Affects Versions: 0.30
            Reporter: Fraser Adams


As pointed out by Robbie Gemmell doing:

./QpidConfig.sh -a guest/guest@localhost:5672
queues
Queue Name                                    Attributes
======================================================================
TempQueue359495ce-d501-46b0-863a-9ab46ad36ce2 auto-del excl Exception in
thread "main" java.lang.NullPointerException
    at org.apache.qpid.qmf2.tools.QpidConfig.queueList(QpidConfig.java:679)
    at org.apache.qpid.qmf2.tools.QpidConfig.<init>(QpidConfig.java:1467)
    at org.apache.qpid.qmf2.tools.QpidConfig.main(QpidConfig.java:1540)

The QMF Plugin Queue and Exchange agentdata classes that map from the Java 
Broker Model to QMF2 haven't implemented Queue or Exchange arguments yet and so 
the arguments property is set to null.

These should be changes to return an empty Map to be consistent with the C++ 
broker, but also to be doubly safe the QpidConfig port needs some defensive 
code for null arguments property





--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to