java icon indicating copy to clipboard operation
java copied to clipboard

duplicate class definition for name: "com/jsoniter/IterImpl" when use treaming processing

Open mrfeiii opened this issue 3 years ago • 1 comments

22/11/06 08:57:30 ERROR javassist.CannotCompileException: by java.lang.ClassFormatError: loader (instance of org/apache/spark/util/MutableURLClassLoader): attempted duplicate class definition for name: "com/jsoniter/IterImpl" 22/11/06 08:57:30 ERROR : readObject: expect { or , or } or n, but found: , head: 1, peek: , buf: 22/11/06 08:57:30 ERROR Executor: Exception in task 0.0 in stage 0.0 (TID 0) java.lang.RuntimeException: com.jsoniter.spi.JsonException: readObject: expect { or , or } or n, but found: , head: 1, peek: , buf:

mrfeiii avatar Nov 06 '22 09:11 mrfeiii

It seems there might be conflicting or duplicate class definitions, possibly due to the MutableURLClassLoader attempting to load the same class from different sources. Check your classpath or dependencies to ensure there are no conflicting versions of the JSONiter library or other dependencies that might include it.

kothakokila avatar Jun 24 '24 14:06 kothakokila