You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" com.esotericsoftware.kryo.KryoException: java.lang.ArrayIndexOutOfBoundsException: 1
Serialization trace:
kids (Bug$Node)
at com.esotericsoftware.kryo.serializers.ReflectField.write(ReflectField.java:101)
at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:108)
at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:711)
at Bug.main(Bug.java:27)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:140)
at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:42)
at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:642)
at com.esotericsoftware.kryo.serializers.ReflectField.write(ReflectField.java:70)
... 3 more
Environment:
OS: [e.g. Ubuntu]
JDK Version: 1.8.0_312
Kryo Version: 5.2.0
fastutil Version: 8.5.6
The text was updated successfully, but these errors were encountered:
@catap: Kryo has buit-in support for most JDK data structures, but needs help (i.e. a custom serializer) when serializing complex third-party data structures.
Please take a look at magro/kryo-serializers#76. The linked serializer might help, or you can always fall back to plain Java serialization.
@catap: I would suggest you do some performance tests. If fastutil has optimized custom serialization logic it might be faster and/or smaller than FieldSerializer. But good to know that this works for you!
Describe the bug
Kryo can't serialize fastutils' structures with error:
java.lang.ArrayIndexOutOfBoundsException: 1
.To Reproduce
fails as:
Environment:
The text was updated successfully, but these errors were encountered: