Nov11 / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Kryo deserialization fails with large data #106

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Serialize an object with a big list (more then 1000 elements)
2. Try to deserialize it, you get an exception

What is the expected output? What do you see instead?
Deserialization fails with KryoException: Encountered unregistered class ID: 
-668407074
(exception change based on number of elements, I've got also ClassCastException)

What version of the Kryo are you using?
2.21

Please provide any additional information below.
Attached you will find a sample java code that reproduce the issue

Original issue reported on code.google.com by Da...@path.com on 5 Apr 2013 at 10:45

Attachments:

GoogleCodeExporter commented 8 years ago
1) Close or flush your output.
2) You are writing to stream, so read from the stream, not the output buffer.

Original comment by nathan.s...@gmail.com on 11 Apr 2013 at 4:36