diff --git a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java index 56ac1f5aac..60aae4cfb0 100644 --- a/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java +++ b/artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/broker/AMQPMessage.java @@ -80,6 +80,7 @@ public class AMQPMessage extends RefCountMessage { this.data = Unpooled.wrappedBuffer(data); this.messageFormat = messageFormat; this.bufferValid = true; + parseHeaders(); } @@ -897,5 +898,6 @@ public class AMQPMessage extends RefCountMessage { record.readBytes(recordArray); this.data = Unpooled.wrappedBuffer(recordArray); this.bufferValid = true; + parseHeaders(); } }