Kryo (missing no-arg constructor): java.nio.HeapByteBuffer
While serializing ByteBuffer using Kryo we will run into the following issue. Class cannot be created (missing no-arg constructor): java.nio.HeapByteBuffer To fix this we can create a custom serializer that will take a ByteBuffer and serialize it to and from Kryo. Serializer is rather simple all we need is two pieces of data, length of …
Kryo (missing no-arg constructor): java.nio.HeapByteBuffer Read More »