com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): java.util.EnumMap Serialization trace: map (kryotest.CopyTest$Foo)

GitHub | fabienrenaud | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    EnumMap not supported

    GitHub | 4 months ago | fabienrenaud
    com.esotericsoftware.kryo.KryoException: Class cannot be created (missing no-arg constructor): java.util.EnumMap Serialization trace: map (kryotest.CopyTest$Foo)
  2. 0
    samebug 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.
    via GitHub by ghost
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Seeing java.lang.IllegalAccessError when upgrading to 2.24.0

    GitHub | 3 years ago | lichtin
    java.lang.IllegalAccessError: tried to access method mypkg.MyClazz$MyInnerClazz.<init>()V from class mypkg.MyClazz$MyInnerClazzConstructorAccess
  5. 0

    com.esotericsoftware.kryo.KryoException: java.lang.NullPointerException (cant serialize observablemap)

    GitHub | 8 months ago | miho
    com.esotericsoftware.kryo.KryoException: java.lang.NullPointerException Serialization trace: map (eu.mihosoft.vrl.lang.model.diff.ClassWithFXCollections)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.esotericsoftware.kryo.KryoException

      Class cannot be created (missing no-arg constructor): java.util.EnumMap Serialization trace: map (kryotest.CopyTest$Foo)

      at com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.newInstantiatorOf()
    2. Kryo
      Kryo.copy
      1. com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.newInstantiatorOf(Kryo.java:1310)
      2. com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1127)
      3. com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1136)
      4. com.esotericsoftware.kryo.serializers.MapSerializer.createCopy(MapSerializer.java:168)
      5. com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:172)
      6. com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:39)
      7. com.esotericsoftware.kryo.Kryo.copy(Kryo.java:914)
      8. com.esotericsoftware.kryo.serializers.UnsafeCacheFields$UnsafeObjectField.copy(UnsafeCacheFields.java:315)
      9. com.esotericsoftware.kryo.serializers.FieldSerializer.copy(FieldSerializer.java:682)
      10. com.esotericsoftware.kryo.Kryo.copy(Kryo.java:914)
      10 frames
    3. kryotest
      CopyTest.main
      1. kryotest.CopyTest.main(CopyTest.java:14)
      1 frame