whueric / kryo

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

java.nio.BufferOverflowException #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When you serialise a large amount of data the ByteBuffer has not enought
available space and throw an exception.

Original issue reported on code.google.com by xjod...@gmail.com on 28 Oct 2009 at 4:06

Attachments:

GoogleCodeExporter commented 8 years ago
I think you can try the new ObjectBuffer(kryo,100000) constructor

Original comment by rafa...@gmail.com on 28 Oct 2009 at 6:14

GoogleCodeExporter commented 8 years ago
The ObjectBuffer must be large enough to contain all the bytes for an object 
graph
being serialized. As rafalax mentioned, you can increase the buffer size from 
the
default of 2048.

Original comment by nathan.s...@gmail.com on 6 Jan 2010 at 7:07

GoogleCodeExporter commented 8 years ago
ObjectBuffer has since been enhanced to provide both an initial and maximum 
size.

Original comment by nathan.s...@gmail.com on 7 Apr 2010 at 2:45