|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Special Characters & EOFException |
« View previous topic :: View next topic » |
Author |
Message
|
catwood2 |
Posted: Thu Jan 26, 2006 7:45 am Post subject: Special Characters & EOFException |
|
|
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 |
|
 |
EddieA |
Posted: Thu Jan 26, 2006 10:54 am Post subject: |
|
|
 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 |
|
 |
catwood2 |
Posted: Thu Jan 26, 2006 11:56 am Post subject: |
|
|
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 |
|
 |
mvic |
Posted: Thu Jan 26, 2006 12:35 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|