Author |
Message
|
techno |
Posted: Fri Feb 07, 2003 1:36 pm Post subject: MQJMS1061 Unserializable. |
|
|
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 |
|
 |
techno |
Posted: Fri Feb 07, 2003 1:38 pm Post subject: |
|
|
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 |
|
 |
kingdon |
Posted: Sat Feb 08, 2003 2:07 am Post subject: |
|
|
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 |
|
 |
techno |
Posted: Sat Feb 08, 2003 7:32 am Post subject: |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
ArrayList has objects of String class.
What may be the problem?
thanks,
Shiva. |
|
Back to top |
|
 |
kingdon |
Posted: Sun Feb 09, 2003 1:37 am Post subject: |
|
|
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 |
|
 |
techno |
Posted: Sun Feb 09, 2003 8:51 am Post subject: |
|
|
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 |
|
 |
kingdon |
Posted: Sun Feb 09, 2003 11:34 pm Post subject: |
|
|
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 |
|
 |
|