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 » IBM MQ Java / JMS » App crashes upon readString() method

Post new topic  Reply to topic
 App crashes upon readString() method « View previous topic :: View next topic » 
Author Message
ml_black
PostPosted: Thu Mar 11, 2004 9:07 am    Post subject: App crashes upon readString() method Reply with quote

Novice

Joined: 09 Feb 2004
Posts: 20

All was working yesterday until I messed with charactersets.

I have a Java App that reads an MQ message (MQSTR and charset 437). It then uses retrievedMessage.readString() to put the message data into a string. Everything was working fine, until I investigated charactersets yesterday. I attempted to put a message to the queue in a different charset and then retrieve it (using CONVERT on the GET). The app crashed on the readString. Now I have reset everything in the app and in my PUT utility, but the app still crashes on the readString.

I can display my message's length, format (still MQSTR) and charset (437). Any ideas why I can't do the readString?

Thanks!
Back to top
View user's profile Send private message
ml_black
PostPosted: Thu Mar 11, 2004 9:12 am    Post subject: Reply with quote

Novice

Joined: 09 Feb 2004
Posts: 20

I guess what I am asking is, did something get messed up because I attempted to put an incompatible characterset onto the queue?
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Mar 11, 2004 10:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I'm not sure what 'crashed' means. I'm assuming that there is probably an exception thrown. Try catching it and put the stack trace here. I know that there are differences between bytes and strings and the length associated with them. I'd double-check that you aren't trying to read more characters than are in the string. You can search for readString and you should get some hits with more info.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » App crashes upon readString() method
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.