ClassCastException when consuming messages using Openwire

Solution Verified - Updated -

Issue

When setting one of the following message properties:

"__HDR_BROKER_PATH"
"__HDR_CLUSTER"
"__HDR_USER_ID"

in an Openwire producer, the consumer will fail with the following error:

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 java.lang.String

Environment

Red Hat AMQ, 7.8.1

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