Kryo Deserialization fails with “KryoException: Buffer underflow”

前端 未结 3 580
醉酒成梦
醉酒成梦 2021-02-13 07:41

I use Kryo to write Objects into byte arrays. It works fine. But when the byte arrays are converted into the Objects, it throws, com.esotericsoftware.kryo.KryoException: B

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-13 07:51

    This happend to me when I used the serializer in multiple threads. It's not thread safe, so if you use it in that way, it may give you "Buffer underflow" or other exceptions.

提交回复
热议问题