java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup

  1. 0

    Transitive log4j2 dependency - configuration failing

    Stack Overflow | 2 years ago | Juan Martin Desimoni
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
  2. 0

    GitHub comment 1852#150709085

    GitHub | 1 year ago | milimetric
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
  3. 0

    Need help: Druid - Quick Start : index_hadoop_wikipedia: Fails with no file found error

    Google Groups | 2 months ago | Sayantan Raha
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JNDI and JMX lookup warnings when building connector. - MuleSoft

    mulesoft.com | 3 months ago
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup
  6. 0

    JMX runtime input lookup class is not available because this JRE does not support JMX

    Stack Overflow | 3 months ago | mr nooby noob
    java.lang.ClassCastException: Cannot cast org.apache.logging.log4j.core.lookup.JmxRuntimeInputArgumentsLookup to org.apache.logging.log4j.core.lookup.StrLookup

  1. Steven 1 times, last 6 months ago
  2. kid 11 times, last 2 weeks ago
  3. iridic 3 times, last 4 weeks ago
  4. kid 53 times, last 2 months ago
  5. charries96 1 times, last 6 months ago
18 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassCastException

    Cannot cast org.apache.logging.log4j.core.lookup.JndiLookup to org.apache.logging.log4j.core.lookup.StrLookup

    at java.lang.Class.cast()
  2. Java RT
    Class.cast
    1. java.lang.Class.cast(Class.java:3133)
    1 frame
  3. Apache Log4j API
    LoaderUtil.newCheckedInstanceOf
    1. org.apache.logging.log4j.util.LoaderUtil.newCheckedInstanceOf(LoaderUtil.java:163)
    1 frame
  4. Apache Log4j Core
    ConsoleAppender.newBuilder
    1. org.apache.logging.log4j.core.util.Loader.newCheckedInstanceOf(Loader.java:311)
    2. org.apache.logging.log4j.core.lookup.Interpolator.<init>(Interpolator.java:92)
    3. org.apache.logging.log4j.core.config.AbstractConfiguration.<init>(AbstractConfiguration.java:104)
    4. org.apache.logging.log4j.core.config.DefaultConfiguration.<init>(DefaultConfiguration.java:55)
    5. org.apache.logging.log4j.core.layout.PatternLayout$Builder.build(PatternLayout.java:375)
    6. org.apache.logging.log4j.core.layout.PatternLayout.createDefaultLayout(PatternLayout.java:280)
    7. org.apache.logging.log4j.core.appender.ConsoleAppender$Builder.<init>(ConsoleAppender.java:116)
    8. org.apache.logging.log4j.core.appender.ConsoleAppender.newBuilder(ConsoleAppender.java:111)
    8 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  6. Apache Log4j Core
    Log4jContextFactory.getContext
    1. org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.createBuilder(PluginBuilder.java:158)
    2. org.apache.logging.log4j.core.config.plugins.util.PluginBuilder.build(PluginBuilder.java:118)
    3. org.apache.logging.log4j.core.config.AbstractConfiguration.createPluginObject(AbstractConfiguration.java:766)
    4. org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:706)
    5. org.apache.logging.log4j.core.config.AbstractConfiguration.createConfiguration(AbstractConfiguration.java:698)
    6. org.apache.logging.log4j.core.config.AbstractConfiguration.doConfigure(AbstractConfiguration.java:358)
    7. org.apache.logging.log4j.core.config.AbstractConfiguration.start(AbstractConfiguration.java:161)
    8. org.apache.logging.log4j.core.LoggerContext.setConfiguration(LoggerContext.java:359)
    9. org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:420)
    10. org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:138)
    11. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:147)
    12. org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:41)
    12 frames
  7. Apache Log4j API
    AbstractLoggerAdapter.getContext
    1. org.apache.logging.log4j.LogManager.getContext(LogManager.java:175)
    2. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:102)
    2 frames
  8. Apache Log4j Commons Logging Bridge
    LogAdapter.getContext
    1. org.apache.logging.log4j.jcl.LogAdapter.getContext(LogAdapter.java:39)
    1 frame
  9. Apache Log4j API
    AbstractLoggerAdapter.getLogger
    1. org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:42)
    1 frame
  10. Apache Log4j Commons Logging Bridge
    LogFactoryImpl.getInstance
    1. org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:40)
    2. org.apache.logging.log4j.jcl.LogFactoryImpl.getInstance(LogFactoryImpl.java:55)
    2 frames
  11. Apache Commons Logging
    LogFactory.getLog
    1. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655)
    1 frame
  12. Mule Core
    IOUtils.<clinit>
    1. org.mule.util.IOUtils.<clinit>(IOUtils.java:33)
    1 frame
  13. org.mule.devkit
    AbstractAnnotationProcessor.process
    1. org.mule.devkit.generation.javadoc.JavaDocAnnotationVerifier.getExamplesFile(JavaDocAnnotationVerifier.java:222)
    2. org.mule.devkit.generation.javadoc.JavaDocAnnotationVerifier.validateSampleTag(JavaDocAnnotationVerifier.java:199)
    3. org.mule.devkit.generation.javadoc.JavaDocAnnotationVerifier.validateMethod(JavaDocAnnotationVerifier.java:143)
    4. org.mule.devkit.generation.javadoc.JavaDocAnnotationVerifier.verify(JavaDocAnnotationVerifier.java:74)
    5. org.mule.devkit.verifiers.SimpleJavaDocAnnotationVerifier.verify(SimpleJavaDocAnnotationVerifier.java:17)
    6. org.mule.devkit.apt.AbstractAnnotationProcessor.doVerify(AbstractAnnotationProcessor.java:462)
    7. org.mule.devkit.apt.AbstractAnnotationProcessor.verifyModule(AbstractAnnotationProcessor.java:307)
    8. org.mule.devkit.apt.AbstractAnnotationProcessor.runVerifiers(AbstractAnnotationProcessor.java:185)
    9. org.mule.devkit.apt.AbstractAnnotationProcessor.doProcess(AbstractAnnotationProcessor.java:413)
    10. org.mule.devkit.apt.AbstractAnnotationProcessor.process(AbstractAnnotationProcessor.java:140)
    10 frames
  14. Java Tools
    JavacTaskImpl.call
    1. com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)
    2. com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)
    3. com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)
    4. com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)
    5. com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
    6. com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108)
    7. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
    8. com.sun.tools.javac.main.Main.compile(Main.java:439)
    9. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
    9 frames
  15. org.mule.devkit
    AbstractAnnotationProcessorMojo.execute
    1. org.mule.devkit.maven.AbstractAnnotationProcessorMojo.executeWithExceptionsHandled(AbstractAnnotationProcessorMojo.java:231)
    2. org.mule.devkit.maven.AbstractAnnotationProcessorMojo.execute(AbstractAnnotationProcessorMojo.java:149)
    2 frames
  16. Maven Plugin
    DefaultBuildPluginManager.executeMojo
    1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
    1 frame
  17. Maven Core
    DefaultMaven.execute
    1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
    5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
    6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120)
    8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:347)
    9. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:154)
    9 frames
  18. M3 Interceptor
    MavenCli.main
    1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:582)
    2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
    3. org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
    3 frames
  19. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  20. Plexus
    Launcher.main
    1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
    4 frames