com.esotericsoftware.kryo.KryoException

tip

Kryo doesn't accept multi-threaded data access, there's a few workarounds for this, such as duplicating the buffer, but they sacrifice a bit of performance.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Deserializing LongMap in Kryo
    via Stack Overflow by lalaland
    ,
  • TreeMap deserialization error
    via GitHub by ghost
    ,
    • com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Can not set final scala.collection.mutable.LongMap field com.name.of.field to scala.collection.mutable.HashMap Serialization trace: field (com.name.of) at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.read(FieldSerializer.java:626)[com.esotericsoftware.kryo.kryo-2.21.jar:na] at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:221)[com.esotericsoftware.kryo.kryo-2.21.jar:na] at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:648)[com.esotericsoftware.kryo.kryo-2.21.jar:na] at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.read(FieldSerializer.java:605)[com.esotericsoftware.kryo.kryo-2.21.jar:na] at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:221)[com.esotericsoftware.kryo.kryo-2.21.jar:na] at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:729)[com.esotericsoftware.kryo.kryo-2.21.jar:na]

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    12 more bugmates