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)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

Solutions on the web

via Stack Overflow by lalaland
, 1 year ago
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)
via Stack Overflow by Yoga
, 1 year ago
java.lang.ArrayIndexOutOfBoundsException: 1 Serialization trace: dummyOps (org.apache.hadoop.hive.ql.plan.ReduceWork) left (org.apache.commons.lang3.tuple.ImmutablePair) edgeProperties (org.apache.hadoop.hive.ql.plan.SparkWork)
via apache.org by Unknown author, 2 years ago
java.lang.NullPointerException Serialization trace: string_array (bughunt.TestStruct)
via google.com by Unknown author, 1 year ago
java.lang.IndexOutOfBoundsException: Index: 120, Size: 2 Serialization trace: treeMap (com.zina.serializer.beans.test.TreeMapSerializerTestData)
via GitHub by ghost
, 2 years ago
java.lang.IndexOutOfBoundsException: Index: 120, Size: 2 Serialization trace: treeMap (com.zina.serializer.beans.test.TreeMapSerializerTestData)
via GitHub by dabukster
, 2 years ago
java.lang.IllegalArgumentException: Can not set datatypes.MetaDataClass field entities.AbstractBaseEvent.metaData to java.lang.String Serialization trace: metaData (entities.LocationEvent)
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)
at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:221)
at com.esotericsoftware.kryo.Kryo.readObject(Kryo.java:648)
at com.esotericsoftware.kryo.serializers.FieldSerializer$ObjectField.read(FieldSerializer.java:605)
at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:221)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.