StreamCorruptedException thrown when attempting to deserialize an object sent over socket connection
0 posts in topic
Flat View  Flat View

Posted By:   Vladimir_Berger
Posted On:   Tuesday, April 17, 2001 01:04 PM

I am using a ObjectOutputStream to serialize and send an object over a socket connection. When attempting to deserialize this object on the server side, "StreamCorruptedException:InputStream does not contain a serialized object" is thrown periodically.
This problem is not persistent and occurs in about 5% of cases. Recreating the object that needs to be serialized and resending it over the wire resolves the problem in majority of cases.

About | Sitemap | Contact