ClassCastException: TextMessageProxy cannot be cast to javax.jms.ObjectMessage in EAP 5
Issue
In the onMessage(...) method of a message driven bean, encountering the exception below
java.lang.ClassCastException: org.jboss.jms.message.TextMessageProxy cannot be cast to javax.jms.ObjectMessage
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.