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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
