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.