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 » MQJMS1061 Unserializable.

Post new topic  Reply to topic
 MQJMS1061 Unserializable. « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Fri Feb 07, 2003 1:36 pm    Post subject: MQJMS1061 Unserializable. Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

I am getting this error while copying an object message from one queue to another. Message body has java.util.ArrayList.

Getting from Q1
Putting to Q2

Getting
In Msg Body:

<Exception occurred reading message body: javax.jms.MessageFormatException: MQJM
S1061: Unable to deserialize object>

Please help me.

thanks
Shiva.
Back to top
View user's profile Send private message
techno
PostPosted: Fri Feb 07, 2003 1:38 pm    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

Some more info:
This is what I am doing, essentially.

msg = fromBTransport.receiveMessage(1000);
toBTransport.sendMessage(msg);
Back to top
View user's profile Send private message
kingdon
PostPosted: Sat Feb 08, 2003 2:07 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

It looks like the ArrayList contains one or more objects for which your forwarding application doesn't have the class files. The odd thing is that I think (without actually checking) that this should work if your app' just did

msg = QueueReceiver.receive();
QueueSender.send(msg);

Does your application actually try and get the content from the message?

Regards,
James.
Back to top
View user's profile Send private message
techno
PostPosted: Sat Feb 08, 2003 7:32 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

ArrayList has objects of String class.

What may be the problem?

thanks,
Shiva.
Back to top
View user's profile Send private message
kingdon
PostPosted: Sun Feb 09, 2003 1:37 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

No idea. Perhaps you could post the stack trace from the JMSException, it might give me an idea for where to look. Am I correct in assuming that you get the exception from a call to ObjectMessage.getObject()?

Regards,
James.
Back to top
View user's profile Send private message
techno
PostPosted: Sun Feb 09, 2003 8:51 am    Post subject: Reply with quote

Chevalier

Joined: 22 Jan 2003
Posts: 429

getObject() gives the ArrayList and it could be read properly.

But when I do
msg = receiveMessage() from Q1
and = sendMessage(msg) from Q2

and I read the same message from Q2, I get UnserializableException.


thanks,
Shiva.
Back to top
View user's profile Send private message
kingdon
PostPosted: Sun Feb 09, 2003 11:34 pm    Post subject: Reply with quote

Acolyte

Joined: 14 Jan 2002
Posts: 63
Location: UK

Sounds vaguely reminiscent of an old bug. If you're not using the latest version of the classes (either those bundled with MQ5.3 or the latest MA88) then I'd try an upgrade. If you're already on the latest level then probably the best thing is to contact IBM support.

Cheers,
James.
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 » MQJMS1061 Unserializable.
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.