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 » Invalid stream header exception StreamCorruptedException

Post new topic  Reply to topic
 Invalid stream header exception StreamCorruptedException « View previous topic :: View next topic » 
Author Message
razzmatazz_uno
PostPosted: Sat Feb 24, 2007 9:23 pm    Post subject: Invalid stream header exception StreamCorruptedException Reply with quote

Newbie

Joined: 24 Feb 2007
Posts: 1

Hi All

In request reply MQ scenario i place an serialized object Message in Request Que which is picked up by MDB and places back serialized response object in response Que. But while reading object from response Queue msg.readObject() where msg is MQMessage which i get from Queue.. iam getting Invalid stream header exception StreamCorruptedException.. When i put some debug statement before reading the object from MQMessage msg.. like msg.messageType or messageTimeout it shows valid value..

Dont know whats causing this .. It worked fine in Development env i use IBM 5.1 and IBM MQ 6.0. In staging env on IBM A/X and IBM 5.1 and IBM MQ 6.0 this is causing StreamCorruptedException..

Thanks in Advance ..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Feb 25, 2007 6:39 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are you sure you're using an object message in both cases?
Are the sending jvm and the receiving jvm both at the same version level? Or from the same vendor?

Remember sometimes there are incompatibilities between serialization and deserialization across JVM's and vendors... The assumption here is of course that your class and all the contained classes implement the serializable interface...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Sun Feb 25, 2007 8:20 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

XML is a much less fragile format, and with use of XML-RPC or JAXB you can easily marshall and unmarshall to a Java object.
_________________
I am *not* the model of the modern major general.
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 » Invalid stream header exception StreamCorruptedException
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.