|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ EOFException |
« View previous topic :: View next topic » |
Author |
Message
|
spprash |
Posted: Mon Nov 21, 2005 5:35 pm Post subject: MQ EOFException |
|
|
Apprentice
Joined: 29 Dec 2002 Posts: 25
|
We are using MQworkflow 3.5 in solaris.
We occasionally get the below EOF errors while browsing from our UPES Queue defined in Workflow QueueManager
java.io.EOFException
at com.ibm.mq.MQMessage.readConvertedString(MQMessage.java:1943)
at com.ibm.mq.MQMessage.readString(MQMessage.java:960)
at com.jpmorgan.cc.common.utils.workflowmanager.QueueAdapter.browseMessage(QueueAdapter.java:192)
The code snippet doing the read is below
browseMsgOptions = new MQGetMessageOptions();
browseMsgOptions.options = MQC.MQGMO_NO_WAIT | MQC.MQGMO_BROWSE_NEXT;
MQMessage retrievedMessage = new MQMessage();
queue.get(retrievedMessage, browseMsgOptions);
message = retrievedMessage.readString(retrievedMessage.getMessageLength());
There are two threads parallely getting and browsing messages from this queue. Any reason why this error comes? _________________ Prash |
|
Back to top |
|
 |
EddieA |
Posted: Mon Nov 21, 2005 10:30 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
It's going back a couple of years now, but I once had a problem with readString blowing up with an EOFException sometimes. It turned out to be a combination of the Java client (MA88, as it was), the jre, and UTF-8 data.
What version of MQ Java are you running.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
spprash |
Posted: Tue Nov 22, 2005 9:39 am Post subject: |
|
|
Apprentice
Joined: 29 Dec 2002 Posts: 25
|
The version information in our com.ib.mq.jar file is below
Manifest-Version: 1.0
Name: com/ibm/mq/
Sealed: false
Implementation-Version: 5.304 - j5304-05-030915
Specification-Title: WebSphere MQ classes for Java
Specification-Version: 5.304
Implementation-Title: WebSphere MQ classes for Java
Created-By: 1.3.1_01 (Sun Microsystems Inc.)
Class-Path: com.ibm.mq.jar
Implementation-Vendor: IBM Corporation
Specification-Vendor: IBM Corporation
This issue never occured to us earlier. In recent times we changes the get option to a browse option and introducted 2 polling threads, one doing a get and another doing a browse. After this change we notice this error occasionally _________________ Prash |
|
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
|
|
|
|