You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christian Danner (Jira)" <ji...@apache.org> on 2022/03/10 13:17:00 UTC

[jira] [Created] (ARTEMIS-3717) NullPointerException in AMQPMessage when browsing queue with Artemis web console

Christian Danner created ARTEMIS-3717:
-----------------------------------------

             Summary: NullPointerException in AMQPMessage when browsing queue with Artemis web console
                 Key: ARTEMIS-3717
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3717
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: AMQP
    Affects Versions: 2.19.1
            Reporter: Christian Danner
         Attachments: MessagingBroker_activemq_artemis.log, image-2022-03-10-14-15-14-686.png

Attached is a stack trace of a NullPointerException that happens when browsing a dead letter queue. It seems the NPE is caused by the following code (line 874):

 

{{map.put(extraPropertiesPrefix + s.toString(), JsonUtil.truncate(o.toString(), valueSizeLimit));}}

 

because the property value can obviously be null. Applying a patch that calls String.valueOf(o) instead fixes the NPE and it can be seen that the problem is caused by the AMQ_ORIG_QUEUE property whose value is null:

!image-2022-03-10-14-15-14-686.png!

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)