ClassCastException when consuming a message using OpenWire

Solution In Progress - Updated -

Issue

When consuming messages that have message properties set, such as "_HDR_BROKER_PATH", "__HDR_CLUSTER", "test-cluster", "__HDR_USER_ID", The following error get thrown by the broker:

WARN [org.apache.activemq.artemis.core.server] Error during message dispatch: java.lang.ClassCastException: org.apache.activemq.artemis.api.core.SimpleString cannot be cast to [B
 at org.apache.activemq.artemis.core.protocol.openwire.OpenWireMessageConverter.toAMQMessage(OpenWireMessageConverter.java:629) [artemis-openwire-protocol-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.protocol.openwire.OpenWireMessageConverter.createMessageDispatch(OpenWireMessageConverter.java:501) [artemis-openwire-protocol-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQConsumer.handleDeliver(AMQConsumer.java:258) [artemis-openwire-protocol-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.protocol.openwire.amq.AMQSession.sendMessage(AMQSession.java:312) [artemis-openwire-protocol-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl.deliverStandardMessage(ServerConsumerImpl.java:1161) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.ServerConsumerImpl.proceedDeliver(ServerConsumerImpl.java:504) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.QueueImpl.proceedDeliver(QueueImpl.java:3510) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.QueueImpl.deliver(QueueImpl.java:2856) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.QueueImpl.access$2300(QueueImpl.java:122) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.core.server.impl.QueueImpl$DeliverRunner.run(QueueImpl.java:3848) [artemis-server-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42) [artemis-commons-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31) [artemis-commons-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at org.apache.activemq.artemis.utils.actors.ProcessorBase.executePendingTasks(ProcessorBase.java:66) [artemis-commons-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_232]

Environment

AMQ 7.8 GA

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content