Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
2.19.1
-
None
-
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
Attachments
Issue Links
- duplicates
-
ARTEMIS-3677 Mitigate NPE when browsing messages
- Closed