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 » java.io.UnsupportedEncodingException

Post new topic  Reply to topic
 java.io.UnsupportedEncodingException « View previous topic :: View next topic » 
Author Message
platondaniel
PostPosted: Wed Aug 14, 2002 1:23 am    Post subject: java.io.UnsupportedEncodingException Reply with quote

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
View user's profile Send private message Yahoo Messenger
RogerLacroix
PostPosted: Wed Aug 14, 2002 7:48 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
platondaniel
PostPosted: Thu Aug 15, 2002 2:50 am    Post subject: Reply with quote

Novice

Joined: 04 Aug 2002
Posts: 12

Thx a lot, problem solved !

DAN
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.io.UnsupportedEncodingException
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.