You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org> on 2012/07/17 11:41:34 UTC

[jira] [Created] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found

Robin Kåveland Hansen created AMQ-3934:
------------------------------------------

             Summary: QueueViewMBean.getMessage throws NullPointerException when message not found
                 Key: AMQ-3934
                 URL: https://issues.apache.org/jira/browse/AMQ-3934
             Project: ActiveMQ
          Issue Type: Bug
          Components: JMX
    Affects Versions: 5.6.0
         Environment: Linux 64-bit.
            Reporter: Robin Kåveland Hansen
            Priority: Minor


When calling QueueViewMBean.getMessage(String messageID), a NullpointerException is thrown from QueueView.java:40 when the message is not found on the queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Resolved] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timothy Bish resolved AMQ-3934.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.7.0
         Assignee: Timothy Bish

Patch applied with thanks.
                
> QueueViewMBean.getMessage throws NullPointerException when message not found
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-3934
>                 URL: https://issues.apache.org/jira/browse/AMQ-3934
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.6.0
>         Environment: Linux 64-bit.
>            Reporter: Robin Kåveland Hansen
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.7.0
>
>         Attachments: GetMessageNPETest.java, amqpatch.diff
>
>
> When calling QueueViewMBean.getMessage(String messageID), a NullpointerException is thrown from QueueView.java:40 when the message is not found on the queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found

Posted by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Kåveland Hansen updated AMQ-3934:
---------------------------------------

    Attachment: GetMessageNPETest.java

This unit test demonstrates the issue.
                
> QueueViewMBean.getMessage throws NullPointerException when message not found
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-3934
>                 URL: https://issues.apache.org/jira/browse/AMQ-3934
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.6.0
>         Environment: Linux 64-bit.
>            Reporter: Robin Kåveland Hansen
>            Priority: Minor
>         Attachments: GetMessageNPETest.java, amqpatch.diff
>
>
> When calling QueueViewMBean.getMessage(String messageID), a NullpointerException is thrown from QueueView.java:40 when the message is not found on the queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] [Updated] (AMQ-3934) QueueViewMBean.getMessage throws NullPointerException when message not found

Posted by "Robin Kåveland Hansen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AMQ-3934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robin Kåveland Hansen updated AMQ-3934:
---------------------------------------

    Attachment: amqpatch.diff

This diff fixes the issue.
                
> QueueViewMBean.getMessage throws NullPointerException when message not found
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-3934
>                 URL: https://issues.apache.org/jira/browse/AMQ-3934
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMX
>    Affects Versions: 5.6.0
>         Environment: Linux 64-bit.
>            Reporter: Robin Kåveland Hansen
>            Priority: Minor
>         Attachments: GetMessageNPETest.java, amqpatch.diff
>
>
> When calling QueueViewMBean.getMessage(String messageID), a NullpointerException is thrown from QueueView.java:40 when the message is not found on the queue. Adding a nullcheck in QueueView.getMessage(String messageID) fixes the issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira