Kryo Deserialization fails with “KryoException: Buffer underflow”

前端 未结 3 584
醉酒成梦
醉酒成梦 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:48

    I saw this error because of a true Java serialization issue; my class definition was not the same on the producer and consumer side (two different applications) and as a result I got this exception.

    Just wanted to leave this as an FYI if you hadn't checked that yet.

提交回复
热议问题