[Bug]: 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') #33983
Labels
What happened?
Hi I am trying to make use of log4j and I see that Dataflow (Apache beam already includes Slf4j)
So after upgrading from 2.51.0 of Apache Beam, I am facing issues with logs
Dependencies in my pom.xml related to Log4j and Slf4j
I am getting following exception
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')
Note: I am seeing this error after an upgrade from Apache Beam 2.51.0 to above versions
Also this is occurring in Dataflow env and not with direct runner
Command I use for pushing code to Dataflow
Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: