java.lang.reflect.InvocationTargetException

Stack Overflow | Nitin Vavdiya | 3 months ago
  1. 0

    Multiple SLF4J bindings due Stream Kafka

    GitHub | 4 months ago | nurgasemetey
    java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.apache.logging.slf4j.Log4jLoggerFactory loaded from file:/home/nurgasemetey/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.6.2/log4j-slf4j-impl-2.6.2.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.apache.logging.slf4j.Log4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Unable to submit Spring boot java application to Spark cluster

    Stack Overflow | 1 year ago | Stefan S
    java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.Log4jLoggerFactory loaded from file:/home/rojasmi1/spark/spark-1.4.0/assembly/target/scala-2.10/spark-assembly-1.4.0-hadoop2.2.0.jar). If you are using Weblogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.impl.Log4jLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext
  4. 0

    GitHub comment 21#58142433

    GitHub | 2 years ago | aheusingfeld
    java.lang.reflect.InvocationTargetException

  1. gehel 1 times, last 6 days ago
  2. tvrmsmith 1 times, last 1 month ago
8 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.IllegalArgumentException

    LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.helpers.NOPLoggerFactory loaded from jar:file:/home/nitin/projects/bitbucket/cerp/target/cerp-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/slf4j-api-1.7.21.jar!/). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml Object of class [org.slf4j.helpers.NOPLoggerFactory] must be an instance of class ch.qos.logback.classic.LoggerContext

    at org.springframework.util.Assert.isInstanceOf()
  2. Spring Core
    Assert.isInstanceOf
    1. org.springframework.util.Assert.isInstanceOf(Assert.java:346)
    1 frame
  3. Spring Boot
    LoggingApplicationListener.onApplicationEvent
    1. org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:221)
    2. org.springframework.boot.logging.logback.LogbackLoggingSystem.getLogger(LogbackLoggingSystem.java:213)
    3. org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:98)
    4. org.springframework.boot.logging.LoggingApplicationListener.onApplicationStartedEvent(LoggingApplicationListener.java:222)
    5. org.springframework.boot.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:204)
    5 frames
  4. Spring Context
    SimpleApplicationEventMulticaster.multicastEvent
    1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
    2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
    3. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)
    3 frames
  5. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.event.EventPublishingRunListener.started(EventPublishingRunListener.java:62)
    2. org.springframework.boot.SpringApplicationRunListeners.started(SpringApplicationRunListeners.java:48)
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
    5 frames
  6. com.cerp
    Application.main
    1. com.cerp.Application.main(Application.java:89)
    1 frame
  7. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  8. Spring Boot Loader
    JarLauncher.main
    1. org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
    2. org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
    3. org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
    4. org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:58)
    4 frames