java.lang.ClassCastException: class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app') #25
Error message from worker: java.lang.RuntimeException: org.apache.beam.vendor.guava.v26_0_jre.com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ClassCastException: class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app') org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory$1.typedApply(IntrinsicMapTaskExecutorFactory.java:197) org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory$1.typedApply(IntrinsicMapTaskExecutorFactory.java:168) org.apache.beam.runners.dataflow.worker.graph.Networks$TypeSafeNodeFunction.apply(Networks.java:67) org.apache.beam.runners.dataflow.worker.graph.Networks$TypeSafeNodeFunction.apply(Networks.java:54) org.apache.beam.runners.dataflow.worker.graph.Networks.replaceDirectedNetworkNodes(Networks.java:91) org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory.create(IntrinsicMapTaskExecutorFactory.java:128) org.apache.beam.runners.dataflow.worker.BatchDataflowWorker.doWork(BatchDataflowWorker.java:361) org.apache.beam.runners.dataflow.worker.BatchDataflowWorker.getAndPerformWork(BatchDataflowWorker.java:314) org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.doWork(DataflowBatchWorkerHarness.java:140) org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.call(DataflowBatchWorkerHarness.java:120) org.apache.beam.runners.dataflow.worker.DataflowBatchWorkerHarness$WorkerThread.call(DataflowBatchWorkerHarness.java:107) java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) java.base/java.lang.Thread.run(Thread.java:834) Caused by: org.apache.beam.vendor.guava.v26_0_jre.com.google.common.util.concurrent.UncheckedExecutionException: java.lang.ClassCastException: class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app') org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2050) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache.get(LocalCache.java:3952) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4871) org.apache.beam.runners.dataflow.worker.UserParDoFnFactory.create(UserParDoFnFactory.java:95) org.apache.beam.runners.dataflow.worker.DefaultParDoFnFactory.create(DefaultParDoFnFactory.java:75) org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory.createParDoOperation(IntrinsicMapTaskExecutorFactory.java:267) org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory.access$000(IntrinsicMapTaskExecutorFactory.java:89) org.apache.beam.runners.dataflow.worker.IntrinsicMapTaskExecutorFactory$1.typedApply(IntrinsicMapTaskExecutorFactory.java:186) ... 14 more Caused by: java.lang.ClassCastException: class org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to class org.apache.logging.log4j.core.LoggerContext (org.apache.logging.slf4j.SLF4JLoggerContext and org.apache.logging.log4j.core.LoggerContext are in unnamed module of loader 'app') org.apache.logging.log4j.core.LoggerContext.getContext(LoggerContext.java:193) org.apache.logging.log4j.core.Logger$LoggerProxy.readResolve(Logger.java:665) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.base/java.lang.reflect.Method.invoke(Method.java:566) java.base/java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1265) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2205) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.readArray(ObjectInputStream.java:2102) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1667) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2464) java.base/java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2358) java.base/java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2196) java.base/java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1679) java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:493) java.base/java.io.ObjectInputStream.readObject(ObjectInputStream.java:451) org.apache.beam.sdk.util.SerializableUtils.deserializeFromByteArray(SerializableUtils.java:75) org.apache.beam.runners.dataflow.worker.UserParDoFnFactory$UserDoFnExtractor.getDoFnInfo(UserParDoFnFactory.java:66) org.apache.beam.runners.dataflow.worker.UserParDoFnFactory.lambda$create$0(UserParDoFnFactory.java:98) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$LocalManualCache$1.load(LocalCache.java:4876) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3528) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2277) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2154) org.apache.beam.vendor.guava.v26_0_jre.com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2044) ... 21 more