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 » MQ EOFException

Post new topic  Reply to topic
 MQ EOFException « View previous topic :: View next topic » 
Author Message
spprash
PostPosted: Mon Nov 21, 2005 5:35 pm    Post subject: MQ EOFException Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Mon Nov 21, 2005 10:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
spprash
PostPosted: Tue Nov 22, 2005 9:39 am    Post subject: Reply with quote

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
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 » MQ 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.