Description
When I try to run a job with a wrapped beam component I get an exception
Exception in thread "main" java.lang.ClassFormatError: Duplicate method name "writeReplace" with signature "()Ljava.lang.Object;" in class file org/talend/component/beam/testcomponent/TestSource$CurrentDoFn at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at org.talend.sdk.component.classloader.ConfigurableClassLoader.loadInternal(ConfigurableClassLoader.java:484) at org.talend.sdk.component.classloader.ConfigurableClassLoader.loadClass(ConfigurableClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) at java.lang.Class.getConstructors(Unknown Source) at org.talend.sdk.component.runtime.manager.reflect.Constructors.findConstructor(Constructors.java:32) at org.talend.sdk.component.runtime.manager.ComponentManager$ComponentMetaBuilder.onPartitionMapper(ComponentManager.java:1333) at org.talend.sdk.component.runtime.visitor.ModelVisitor.visit(ModelVisitor.java:55) at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.lambda$onCreate$21(ComponentManager.java:1137) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) at java.util.LinkedList$LLSpliterator.forEachRemaining(Unknown Source) at java.util.stream.ReferencePipeline$Head.forEach(Unknown Source) at java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.forEach(Unknown Source) at org.talend.sdk.component.runtime.manager.ComponentManager$Updater.onCreate(ComponentManager.java:1111) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$null$1(ContainerManager.java:370) at org.talend.sdk.component.container.ContainerManager.safeInvoke(ContainerManager.java:144) at org.talend.sdk.component.container.ContainerManager.access$1100(ContainerManager.java:54) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.lambda$create$2(ContainerManager.java:370) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.collect(Unknown Source) at org.talend.sdk.component.container.ContainerManager$ContainerBuilder.create(ContainerManager.java:371) at org.talend.sdk.component.runtime.manager.ComponentManager.addPlugin(ComponentManager.java:711) at org.talend.sdk.component.runtime.manager.ComponentManager$3.lambda$new$3(ComponentManager.java:377) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$2$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) at java.util.stream.ReferencePipeline$3$1.accept(Unknown Source) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Unknown Source) at java.util.stream.AbstractPipeline.copyInto(Unknown Source) at java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Unknown Source) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Unknown Source) at java.util.stream.AbstractPipeline.evaluate(Unknown Source) at java.util.stream.ReferencePipeline.forEach(Unknown Source) at org.talend.sdk.component.runtime.manager.ComponentManager$3.<init>(ComponentManager.java:377) at org.talend.sdk.component.runtime.manager.ComponentManager.instance(ComponentManager.java:349) at local_project.ttt_0_1.ttt.TestInput_1Process(ttt.java:515) at local_project.ttt_0_1.ttt.runJobInTOS(ttt.java:981) at local_project.ttt_0_1.ttt.main(ttt.java:832)