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

Java 8 Mitigate NPE when browsing messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.19.0, 2.19.1
    • None
    • None
    • None

    Description

      The fix fromĀ ARTEMIS-3677 is needed for the v2.19.x series to allow browsing of messages in Java 8 environments otherwise this NPE is thrown:

      Caused by: java.lang.NullPointerException
          at org.apache.activemq.artemis.api.core.JsonUtil.truncate(JsonUtil.java:331) ~[?:?]
          at org.apache.activemq.artemis.api.core.Message.toPropertyMap(Message.java:763) ~[?:?]
          at org.apache.activemq.artemis.api.core.ICoreMessage.toMap(ICoreMessage.java:114) ~[?:?]
          at org.apache.activemq.artemis.core.management.impl.QueueControlImpl.getFirstMessage(QueueControlImpl.java:907) ~[?:?]
          at org.apache.activemq.artemis.core.management.impl.QueueControlImpl.getFirstMessageAsJSON(QueueControlImpl.java:922) ~[?:?]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              philpme Phil Haeusler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: