ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » JMSBytesMessage cannot be cast to javax.jms.TextMessage

Post new topic  Reply to topic
 JMSBytesMessage cannot be cast to javax.jms.TextMessage « View previous topic :: View next topic » 
Author Message
Gideon
PostPosted: Tue Nov 18, 2014 2:04 pm    Post subject: JMSBytesMessage cannot be cast to javax.jms.TextMessage Reply with quote

Chevalier

Joined: 18 Aug 2009
Posts: 403

I am getting the following error from a Java program that accesses MQ

java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage cannot be cast to javax.jms.TextMessage

Does this mean I am reading a ByteMessage into a TextMessage variable ?

I have found very limited information on this erro. I have read this site:

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q032110_.htm

But I am not sure it addresses my problem

Could someone please help me diagnose this problem (I do not have the source code yet, but I do have the extensive configuration parameters of the java program)

Thanks
Back to top
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Tue Nov 18, 2014 11:38 pm    Post subject: Re: JMSBytesMessage cannot be cast to javax.jms.TextMessage Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Gideon wrote:
I am getting the following error from a Java program that accesses MQ

java.lang.ClassCastException: com.ibm.jms.JMSBytesMessage cannot be cast to javax.jms.TextMessage

Does this mean I am reading a ByteMessage into a TextMessage variable ?

I have found very limited information on this erro. I have read this site:

http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q032110_.htm

But I am not sure it addresses my problem

Could someone please help me diagnose this problem (I do not have the source code yet, but I do have the extensive configuration parameters of the java program)

Thanks


Which part of http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q032110_.htm did you not understand. There are examples there in particular at the bottom of the page in figure6 and figure7


Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » JMSBytesMessage cannot be cast to javax.jms.TextMessage
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.