Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3717

NullPointerException in AMQPMessage when browsing queue with Artemis web console

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.19.1
    • None
    • AMQP
    • None

    Description

      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 in org.apache.activemq.artemis.protocol.amqp.broker.AMQPMessage (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:

       

      Attachments

        1. image-2022-03-10-14-15-14-686.png
          2 kB
          Christian Danner
        2. AMQPMessage_NPE_StackTrace.txt
          15 kB
          Christian Danner
        3. AMQPMessage.java
          74 kB
          Christian Danner

        Issue Links

          Activity

            People

              Unassigned Unassigned
              perdurabo Christian Danner
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: