Posted: Thu Mar 11, 2004 9:07 am Post subject: App crashes upon readString() method
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?
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.
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