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 API Support » Special Characters & EOFException

Post new topic  Reply to topic
 Special Characters & EOFException « View previous topic :: View next topic » 
Author Message
catwood2
PostPosted: Thu Jan 26, 2006 7:45 am    Post subject: Special Characters & EOFException Reply with quote

Centurion

Joined: 17 May 2002
Posts: 108

When using the websphere MQ base java classes to grab a message with a special character, such as é. I get an java.Eio.EEOFException
and am unable to read the entire string.
Question: Is there another way to read these special character into the string?
Code:

      MQMessage getmsg = new MQMessage();

      // Set the get message options...
      MQGetMessageOptions gmo = new MQGetMessageOptions(); // accept the defaults
                                                           // same as  MQGMO_DEFAULT
      gmo.options = MQC.MQGMO_SYNCPOINT;

      // get the message off the queue...
      System.out.println("Get Message ..");

      queue.get(getmsg,gmo);
      int stringLength = getmsg.getMessageLength();
      String msgText = getmsg.readString(stringLength);
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Jan 26, 2006 10:54 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

What version of MQ Java are you running. There was a problem a couple of years back that could give this error on non-single byte CCSIDs.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
catwood2
PostPosted: Thu Jan 26, 2006 11:56 am    Post subject: Reply with quote

Centurion

Joined: 17 May 2002
Posts: 108

I'm posting this for our developer and we are unsure how to answer. MQ 5.2 csd6.
com.ibm.mq.jar has a datestamp of Sunday, May 27, 2001, 10:00:00 PM
Not sure if that answers your question or not.
thx
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Jan 26, 2006 12:35 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

catwood2 wrote:
I'm posting this for our developer and we are unsure how to answer. MQ 5.2 csd6.
com.ibm.mq.jar has a datestamp of Sunday, May 27, 2001, 10:00:00 PM

That is very old code. See if the problem is still there if you use the latest client from the SupportPacs page. We're up to version 6 now.
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 API Support » Special Characters & EOFException
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.