Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Duplicate
-
1.0.0
-
None
-
None
-
windows IBM jdk 1.4 , sun JDK 1.5
Description
When trying to read an object from a classic client using the ObjectSerializationInputStream, I faced java.nio.BufferUnderflowException,
I reviewed the ObjectSerializationInputStream.readObject() code and found that the problem is in the line:
buf.limit( objectSize );
because the buffer limit should be set the objectSize + 4 ( four bytes for writing the size before the object bytes itself )
so I made a simple change => "buf.limit( objectSize + 4);"
and everything went ok, therefore i believe this modification should be added to your next release.
Regards,
Gasser