java.lang.NoSuchMethodError: org.apache.log4j.MDC.put(Ljava/lang/String;Ljava/lang/String;)V

Stack Overflow | Daryl | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Sonarqube 5.6 code analysis failed in mac os

    Stack Overflow | 7 months ago | Daryl
    java.lang.NoSuchMethodError: org.apache.log4j.MDC.put(Ljava/lang/String;Ljava/lang/String;)V

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.log4j.MDC.put(Ljava/lang/String;Ljava/lang/String;)V

      at org.sonar.ce.log.CeLogging.initForTask()
    2. org.sonar.ce
      CeLogging.initForTask
      1. org.sonar.ce.log.CeLogging.initForTask(CeLogging.java:107)[sonar-server-5.6.jar:na]
      1 frame
    3. org.sonar.server
      CeWorkerCallableImpl.call
      1. org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:72)[sonar-server-5.6.jar:na]
      2. org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:56)[sonar-server-5.6.jar:na]
      3. org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:35)[sonar-server-5.6.jar:na]
      3 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_101]
      2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[na:1.8.0_101]
      3. java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_101]
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[na:1.8.0_101]
      5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[na:1.8.0_101]
      6. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_101]
      7. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_101]
      8. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
      8 frames