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

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

Solutions on the web

via GitHub by fabienrenaud
, 10 months ago
Class cannot be created (missing no-arg constructor): java.util.EnumMap Serialization trace: map (kryotest.CopyTest$Foo)
via GitHub by liukefeng2008
, 2 months ago
Class cannot be created (missing no-arg constructor): java.util.Collections$UnmodifiableRandomAccessList Serialization trace: suppressedExceptions (java.lang.IllegalStateException) cause (java.lang.IllegalArgumentException)
via GitHub by danielyli
, 2 months ago
Class cannot be created (missing no-arg constructor): java.time.zone.ZoneRulesException
via GitHub by emi80
, 2 years ago
Class cannot be created (missing no-arg constructor): groovy.lang.GString$3
via GitHub by sramli
, 1 year ago
Class cannot be created (missing no-arg constructor): org.jasig.cas.support.saml.authentication.principal.SamlService Serialization trace: service (org.jasig.cas.ticket.ServiceTicketImpl)
via GitHub by emi80
, 2 months ago
Class cannot be created (missing no-arg constructor): java.util.LinkedHashMap$Entry
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(Kryo.java:1310)
at com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1127)
at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1136)
at com.esotericsoftware.kryo.serializers.MapSerializer.createCopy(MapSerializer.java:168)
at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:172)
at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:39)
at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:914)
at com.esotericsoftware.kryo.serializers.UnsafeCacheFields$UnsafeObjectField.copy(UnsafeCacheFields.java:315)
at com.esotericsoftware.kryo.serializers.FieldSerializer.copy(FieldSerializer.java:682)
at kryotest.CopyTest.main(CopyTest.java:14)

Users with the same issue

57 times, 1 year ago

Write tip

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