Posted: Sat Feb 24, 2007 9:23 pm Post subject: Invalid stream header exception StreamCorruptedException
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..
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...
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.
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