Posted: Thu Apr 05, 2007 1:13 am Post subject: java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage
Newbie
Joined: 05 Apr 2007 Posts: 1
Hi Guys,
In WAS 5.1 admin console, the TargetClient value set to “JMS”. The xml message is something <?xml version="1.0"?>.....
Now when we drop the message we are getting java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage at the method
message= ((TextMessage)_message).getText();
ITs working in one enivronment and failing in other env both same) help me to solve this issue.
Joined: 31 Jan 2006 Posts: 60 Location: Hursley, UK
The ClassCastException is telling you that you received a BytesMessage, but you're trying to cast it to a TextMessage - you can't do that. Is another application putting messages to the same queue?
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum