You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org> on 2008/06/10 09:55:45 UTC

[jira] Created: (QPID-1128) NPE displayed when adding queue to navigation

NPE displayed when adding queue to navigation
---------------------------------------------

                 Key: QPID-1128
                 URL: https://issues.apache.org/jira/browse/QPID-1128
             Project: Qpid
          Issue Type: Bug
          Components: Java Management Console
    Affects Versions: M2.1, M2
            Reporter: Martin Ritchie
             Fix For: M3


Summary:
If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.


Workaround:

Ensure that 'Consumer conut' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-1128:
---------------------------------

    Description: 
Summary:
If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.


Workaround:

Ensure that 'Consumer count' is not the chosen 'Sort by' value.

  was:
Summary:
If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.


Workaround:

Ensure that 'Consumer conut' is not the chosen 'Sort by' value.


> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management Console
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>             Fix For: M3
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie updated QPID-1128:
---------------------------------

    Status: Ready To Review  (was: In Progress)

> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : JMX Console
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>         Attachments: QPID-1128_23nov2008.patch
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Assigned: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie reassigned QPID-1128:
------------------------------------

    Assignee: Aidan Skinner  (was: Martin Ritchie)

Can you check this is ok for you too.


> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : JMX Console
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>         Attachments: QPID-1128_23nov2008.patch
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack updated QPID-1128:
-----------------------------------

        Fix Version/s: Eclipse MC M5
    Affects Version/s:     (was: M2.1)
                           (was: M2)

Sscoping items for early 2009 release of Java Eclipse Mgt Console 

> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : JMX Console
>            Reporter: Martin Ritchie
>            Assignee: Aidan Skinner
>             Fix For: Eclipse MC M5
>
>         Attachments: QPID-1128_23nov2008.patch
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Martin Ritchie (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Ritchie resolved QPID-1128.
----------------------------------

    Resolution: Fixed
      Assignee: Martin Ritchie  (was: Aidan Skinner)

Work committed and reviewed by Martin

> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : JMX Console
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>             Fix For: Eclipse MC M5
>
>         Attachments: QPID-1128_23nov2008.patch
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Robert Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Gemmell updated QPID-1128:
---------------------------------

    Attachment: QPID-1128_23nov2008.patch

This issue occurs because the queue items are stored in a map created in the abstract MBeanTypeTabControl class by a method within the QueueTypeTabControl subclass, using a key consisting of their name and the queue depth. The first issue is that this results in the sort by name list also having the items queue depths, and the second is that it results in an NPE when attempting to add queues when they are sorted by consumer count. This occurs because the items are then requested back from the map by a method in MBeanTypeTabControl with a key which now consists of their name and consumer count due to the resorting altering the displayed list items which are utilised as keys, and this results in it returning null.

The attached patch QPID-1128_23nov2008.patch corrects this issue by altering the QueueTypeTabControl class to use only the queue name when inserting the queues into the map, and to display the appropriate data (name only, name + queue depth, or name + consumer count) in the selection list. Additionally it modifies MBeanTypeTabControl to ensure it utilises only the name from the keys passed to its method which adds to the navigation by having it strip everything from the first occurance of the string " (", which only occurs after the name.

> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management : JMX Console
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>         Attachments: QPID-1128_23nov2008.patch
>
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (QPID-1128) NPE displayed when adding queue to navigation

Posted by "Marnie McCormack (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Marnie McCormack updated QPID-1128:
-----------------------------------

    Fix Version/s:     (was: M4)

Moving items not being worked on for M4 afaik out of scope

> NPE displayed when adding queue to navigation
> ---------------------------------------------
>
>                 Key: QPID-1128
>                 URL: https://issues.apache.org/jira/browse/QPID-1128
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Management Console
>    Affects Versions: M2, M2.1
>            Reporter: Martin Ritchie
>            Assignee: Martin Ritchie
>
> Summary:
> If you sort the queues on a Virtualhost by 'Consumer count' and then proceed to '<- Add to Navigation' then it will fail and a box stating 'Manged Object is null : NPE' will be displayed.
> Workaround:
> Ensure that 'Consumer count' is not the chosen 'Sort by' value.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.