java
java copied to clipboard
duplicate class definition for name: "com/jsoniter/IterImpl" when use treaming processing
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:
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.