[
https://issues.apache.org/jira/browse/ARTEMIS-3861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Phil Haeusler updated ARTEMIS-3861:
-----------------------------------
Description:
This fix for ARTEMIS-3677 is needed for the v2.19.x series to allow browsing of
messages in Java 8 environments
{code:java}
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)
~[?:?] {code}
was:This fix for ARTEMIS-3677 is needed for the v2.19.x series to allow
browsing of messages in Java 8 environments
> Java 8 Mitigate NPE when browsing messages
> ------------------------------------------
>
> Key: ARTEMIS-3861
> URL: https://issues.apache.org/jira/browse/ARTEMIS-3861
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.19.1
> Reporter: Phil Haeusler
> Assignee: Justin Bertram
> Priority: Major
>
> This fix for ARTEMIS-3677 is needed for the v2.19.x series to allow browsing
> of messages in Java 8 environments
>
> {code:java}
> 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)
> ~[?:?] {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)