Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to interpret a Serialized Object ?  RSS feed

 
chandra mohan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have content of the Serialized Object like //x01//x09......

Is there any ways to intrepret these values into readable format.

Thanks in Advance
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only way I know to read a serialized object is ObjectInputStream.
 
chandra mohan
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually We are doing testing of our application using load runner tool.we placed that tool in between client and server.all the server request will come to the tool. Problem is it is coming as serialized java object like //x01 //x45...... how to intrepret the object as in this case I can't use input stream . I need to see the values returned from the server.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The format of serialized Java objects is binary, so I doubt that you'll be able to make much sense of it by looking at it.

It's possible to write code that interprets serialized Java objects in some language other than Java. The source of the java.io.ObjectInputStream and ObjectOutputStream classes has all the information about what the format looks like. Is that what you're asking?
 
Prakash Subramanian
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would be knowing those values only after you deserialize it back into the right type. Is there something preventing that? Else it would mean extra work, which might not be really necessary. Maybe you can give a code snippet of what you tried to do till now.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!