|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
java.io.UnsupportedEncodingException |
« View previous topic :: View next topic » |
Author |
Message
|
platondaniel |
Posted: Wed Aug 14, 2002 1:23 am Post subject: java.io.UnsupportedEncodingException |
|
|
Novice
Joined: 04 Aug 2002 Posts: 12
|
Hello !
Here's the problem: I'm trying to get a message (any message) from a queue. The message is put on the queue by a Lotus Notes application; i specify the format MQFMT_STRING when i put the message and i'm trying to read them from a Java app with message.readString(20), but when i do that it throws THIS exception. Works perfectly with readChar if the message has only one character, but i intend to write longer messages . What's the problem ?!
Thx a lot,
DAN |
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Aug 14, 2002 7:48 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
What did you specify in your getOptions?
Try something like:
Code: |
getOptions.options = MQC.MQGMO_NO_WAIT + MQC.MQGMO_FAIL_IF_QUIESCING + MQC.MQGMO_CONVERT;
_inQ.get(getMsg, getOptions);
byte[] b = new byte[getMsg.getMessageLength()];
getMsg.readFully(b);
replyMsg = new String(b); |
later
Roger... _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
platondaniel |
Posted: Thu Aug 15, 2002 2:50 am Post subject: |
|
|
Novice
Joined: 04 Aug 2002 Posts: 12
|
Thx a lot, problem solved !
DAN |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|