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 » Unsupported Encoding Exception

Post new topic  Reply to topic
 Unsupported Encoding Exception « View previous topic :: View next topic » 
Author Message
Kling253
PostPosted: Thu Jul 22, 2004 7:44 am    Post subject: Unsupported Encoding Exception Reply with quote

Novice

Joined: 28 Jun 2004
Posts: 10

Part of a project we are working on involves simply getting a message from a queue. We have code that has worked in the past, but today we received an java.io UnsupportedEncodingException: Cp437. It does this no matter what method we use to put a msg on the queue(test msg, rfhutil....).

The only documentation i can find online about this is based on having MQSeries 5.2. We are currently at 5.3.

here is the get portion of our code if that is used to get the message:

MQMessage retrievedMessage = new MQMessage();
retrievedMessage.messageId = retrievedMessage.messageId;

MQGetMessageOptions gmo = new MQGetMessageOptions();
m_queue.get(retrievedMessage, gmo); <---**FAILS HERE**


If anyone has any insights it would be very helpful.

Thanks
Back to top
View user's profile Send private message
Kling253
PostPosted: Thu Jul 22, 2004 7:48 am    Post subject: Reply with quote

Novice

Joined: 28 Jun 2004
Posts: 10

sorry, i directed you to the wrong portion of the code for the error. my apologies.

MQMessage retrievedMessage = new MQMessage();
retrievedMessage.messageId = retrievedMessage.messageId;
MQGetMessageOptions gmo = new MQGetMessageOptions();
m_queue.get(retrievedMessage, gmo);

int iLength = retrievedMessage.getTotalMessageLength();
strMessage = retrievedMessage.readString(iLength); *fails here*
Back to top
View user's profile Send private message
Kling253
PostPosted: Thu Jul 22, 2004 8:24 am    Post subject: solved problem Reply with quote

Novice

Joined: 28 Jun 2004
Posts: 10

we have solved the problem. it was just us doing something dumb in the code.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Unsupported Encoding Exception
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.