• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is java object serialization/deserialization compatible between 1.5 and 1.6  RSS feed

 
kaustuv saha
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am using JMS object messages over Tibco EMS to communicate between two applications.

Problem is that my message publisher application is using Java 1.5 while listener application is using Java 1.6.

The bean that I am trying to serialize and deserialize has just a few fields (String and primitive datatypes) with setter/gettters and a serialVersionUID filed

Even through I am maintaining a serialversionUID field, when I am trying to deserialize my object messages, I get the following error :

Execution of JMS message listener failed
javax.jms.MessageFormatException: Deserialization failed: invalid type code: 37
at com.tibco.tibjms.TibjmsObjectMessage.getObject(TibjmsObjectMessage.java:199)
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know one can have problems going between Java versions. I've seen it using WLST between different versions of Weblogic. Unfortunately, I'm not sure exactly what is possible between Java versions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!