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


Solutions on the web

Solution icon of github
via GitHub by fabienrenaud
, 9 months ago
Class cannot be created (missing no-arg constructor): java.util.EnumMap Serialization trace: map (kryotest.CopyTest$Foo)

Solution icon of github
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)

Solution icon of github
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: services (org.jasig.cas.ticket.TicketGrantingTicketImpl)

Solution icon of github
Class cannot be created (missing no-arg constructor): java.util.Collections$UnmodifiableRandomAccessList Serialization trace: suppressedExceptions (java.lang.IllegalStateException) cause (java.lang.IllegalArgumentException)

Solution icon of stackoverflow
Class cannot be created (missing no-arg constructor): org.codehaus.jackson.map.DeserializationConfig Serialization trace: _deserializationConfig (org.codehaus.jackson.map.ObjectMapper) mapper (com.datatorrent.contrib.couchbase.CouchBaseJSONSerializer) serializer (com.datatorrent.contrib.couchbase.CouchbasePOJOSetOperator)

Solution icon of github
Class cannot be created (missing no-arg constructor): groovy.lang.GString$3

Solution icon of github
Class cannot be created (missing no-arg constructor): java.time.zone.ZoneRulesException

Solution icon of github
Class cannot be created (missing no-arg constructor): java.util.LinkedHashMap$Entry

Stack trace

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 com.esotericsoftware.kryo.Kryo.copy(Kryo.java:914)
	at kryotest.CopyTest.main(CopyTest.java:14)

Write tip

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

Users with the same issue

57 times, 1 year ago