qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6025) Java port of QpidConfig give NPE when listing queue/exchanges
Date Wed, 20 Aug 2014 17:08:27 GMT

    [ https://issues.apache.org/jira/browse/QPID-6025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104136#comment-14104136

ASF subversion and git services commented on QPID-6025:

Commit 1619161 from [~fadams] in branch 'qpid/trunk'
[ https://svn.apache.org/r1619161 ]

QPID-6025: Java port of QpidConfig give NPE when listing queue/exchanges, added code to agentdata
Queue and Exchange to return empty Map to be consistent with C++ Broker and also for good
measure added some defensive code to QpidConfig.java

> 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

This message was sent by Atlassian JIRA

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

View raw message