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 » javax.jms.MessageFormatException: MQJMS1061: Unable to deser

Post new topic  Reply to topic
 javax.jms.MessageFormatException: MQJMS1061: Unable to deser « View previous topic :: View next topic » 
Author Message
JustinM
PostPosted: Wed Apr 17, 2002 1:08 am    Post subject: Reply with quote

Novice

Joined: 10 Apr 2002
Posts: 13

Hi

I have a queue onto which ObjectMessages are placed from a stand-alone application. The messages are then read off the queue by a listener within a J2EE application (not a message bean - just a servlet that starts up a message listener thread). When the Message Listener tries to read a message from the queue I get the following exception:

javax.jms.MessageFormatException: MQJMS1061: Unable to deserialize object
at com.ibm.jms.JMSMessage.newMessageFormatException(JMSMessage.java:247)
at com.ibm.jms.JMSObjectMessage.getObject(JMSObjectMessage.java:230)
at za.co.sanlamhealth.orion.web.correspondence.StatusQueueListener.onMe)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:583)
at com.ibm.mq.jms.contact admin.run(contact admin.java:189)

Yes - my object is serializable and contains a serial version UID. Here is the code for the object.
The class is included in the classpath on the server (it resides in a jar file)

public final class RequestStatus implements Serializable {

private int requestId;
private Date dateProcessed;
private Vector /* of String */ errors = new Vector();
private final static long serialVersionUID = 6739271624628766788L;
}

I am using the same classes on the server and the stand alone application.

Does anyone have any suggestions as to why I am getting this message and what I can do to resolve it.

Thanks

Justin
Back to top
View user's profile Send private message
bower5932
PostPosted: Wed Apr 17, 2002 1:42 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

I thought that there was a known bug when trying to deserialize objects with MQSeries and WebSphere. You'll need to get an efix from IBM support to get around it. I don't have an APAR number.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
JustinM
PostPosted: Wed Apr 17, 2002 11:46 pm    Post subject: Reply with quote

Novice

Joined: 10 Apr 2002
Posts: 13

Hi

Does anyone have an APAR / efix number for this problem (MQSeries 5.2 and WAS 4 on solaris). I have scanned the archives but to no avail.
I found a reference on google to a document which deals with this problem:

http://dbsd01.boulder.ibm.com/wsdd/library/techarticles/0112 deboer/deboer.html

- but the document does not exist. - I don't think the url is quite right.

Ideas ??

Thanks
Justin

Back to top
View user's profile Send private message
bf1967
PostPosted: Fri Apr 19, 2002 6:45 am    Post subject: Reply with quote

Newbie

Joined: 17 Apr 2002
Posts: 3
Location: Bob Fox

I had this same problem. MQ dev came up with an efix for me. You can get it from MQ support. It is called "MQ_WAS_EFIX.JAR". It goes in the webapp classpath before any of the other MQ java libs.

The other way to fix it is to put the serialized object in the application classpath (which breaks auto reload of changed classes).
Back to top
View user's profile Send private message
JustinM
PostPosted: Sun Apr 21, 2002 6:00 am    Post subject: Reply with quote

Novice

Joined: 10 Apr 2002
Posts: 13

Thanks

Got the E_FIX from IBM and all is now well.

Justin
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 » javax.jms.MessageFormatException: MQJMS1061: Unable to deser
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.