com.esotericsoftware.kryo.KryoException: Unable to find class: Country Code Serialization trace: country (kryo.application.model.Supplier)

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

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

,
Expert tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

Solutions on the web

via GitHub by oassuncao
, 1 year ago
Unable to find class: Country Code Serialization trace: country (kryo.application.model.Supplier)
via GitHub by yonitouitou
, 1 year ago
Unable to find class: ^AA^]^A^@^A^B^C^_^C ^C!^C^A59927910321794 Serialization trace: payload (com.trade.common.messagebus.AMQPPacket)
via Stack Overflow by Yoni
, 1 year ago
Unable to find class: ^AA^]^A^@^A^B^C^_^C ^C!^C^A59927910321794 Serialization trace: payload (com.trade.common.messagebus.AMQPPacket)
via GitHub by soubhik-c
, 8 months ago
Unable to find class: IntegerUDF Serialization trace: func$1 (org.apache.spark.sql.internal.UDFFunction$$anonfun$makeFunctionBuilder$1$$anonfun$apply$1) func$2 (org.apache.spark.sql.catalyst.expressions.ScalaUDF$$anonfun$2) f (org.apache.spark.sql.catalyst.expressions.ScalaUDF)
via GitHub by JoshRosen
, 1 year ago
Unable to find class: com.twitter.chill.KryoSpec$$Lambda$3401/1855666130 Serialization trace: cmp$1 (scala.math.Ordering$$anon$9) $outer (scala.math.Ordering$$anon$4)
via Stack Overflow by Vic Torious
, 1 year ago
Unable to find class: ����( Serialization trace: badQuality (de.myproject.data.transform.MyPendingUpload)
java.lang.ClassNotFoundException: Country Code
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)
at com.esotericsoftware.kryo.util.DefaultClassResolver.readName(DefaultClassResolver.java:154)
at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:133)
at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:670)
at com.esotericsoftware.kryo.serializers.ObjectField.read(ObjectField.java:118)
at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:551)
at kryo.example.AppTest.readApplicationA(AppTest.java:20)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

2 times, 1 day ago
2 times, 1 day ago
29 times, 1 day ago
Once, 1 day ago
Once, 2 days ago

Write tip

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