java.lang.ClassCastException: org.slf4j.helpers.SubstituteLoggerFactory cannot be cast to ch.qos.logback.core.Context

GitHub | alfredcs | 6 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

    Error during marathon 1.2 build with sbt or docker.

    GitHub | 6 months ago | alfredcs
    java.lang.ClassCastException: org.slf4j.helpers.SubstituteLoggerFactory cannot be cast to ch.qos.logback.core.Context

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.slf4j.helpers.SubstituteLoggerFactory cannot be cast to ch.qos.logback.core.Context

      at mesosphere.marathon.test.CaptureLogEvents$CapturingAppender.appendToRootLogger()
    2. mesosphere.marathon.test
      CaptureLogEvents$.forBlock
      1. mesosphere.marathon.test.CaptureLogEvents$CapturingAppender.appendToRootLogger(CaptureLogEvents.scala:24)
      2. mesosphere.marathon.test.CaptureLogEvents$.forBlock(CaptureLogEvents.scala:12)
      2 frames
    3. mesosphere.marathon.core
      ContinueOnErrorStepTest$$anonfun$5.apply
      1. mesosphere.marathon.core.task.update.impl.steps.ContinueOnErrorStepTest$$anonfun$5.apply(ContinueOnErrorStepTest.scala:51)
      2. mesosphere.marathon.core.task.update.impl.steps.ContinueOnErrorStepTest$$anonfun$5.apply(ContinueOnErrorStepTest.scala:44)
      2 frames
    4. scalatest
      SuperEngine$$anonfun$traverseSubNodes$1$1.apply
      1. org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
      2. org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      3. org.scalatest.Transformer.apply(Transformer.scala:22)
      4. org.scalatest.Transformer.apply(Transformer.scala:20)
      5. org.scalatest.FunSuiteLike$$anon$1.apply(FunSuiteLike.scala:186)
      6. org.scalatest.TestSuite$class.withFixture(TestSuite.scala:196)
      7. org.scalatest.FunSuite.withFixture(FunSuite.scala:1560)
      8. org.scalatest.FunSuiteLike$class.invokeWithFixture$1(FunSuiteLike.scala:183)
      9. org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
      10. org.scalatest.FunSuiteLike$$anonfun$runTest$1.apply(FunSuiteLike.scala:196)
      11. org.scalatest.SuperEngine.runTestImpl(Engine.scala:289)
      12. org.scalatest.FunSuiteLike$class.runTest(FunSuiteLike.scala:196)
      13. org.scalatest.FunSuite.runTest(FunSuite.scala:1560)
      14. org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
      15. org.scalatest.FunSuiteLike$$anonfun$runTests$1.apply(FunSuiteLike.scala:229)
      16. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:396)
      17. org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:384)
      17 frames
    5. Scala
      List.foreach
      1. scala.collection.immutable.List.foreach(List.scala:381)
      1 frame
    6. scalatest
      Framework$ScalaTestTask.execute
      1. org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:384)
      2. org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:379)
      3. org.scalatest.SuperEngine.runTestsImpl(Engine.scala:461)
      4. org.scalatest.FunSuiteLike$class.runTests(FunSuiteLike.scala:229)
      5. org.scalatest.FunSuite.runTests(FunSuite.scala:1560)
      6. org.scalatest.Suite$class.run(Suite.scala:1147)
      7. org.scalatest.FunSuite.org$scalatest$FunSuiteLike$$super$run(FunSuite.scala:1560)
      8. org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
      9. org.scalatest.FunSuiteLike$$anonfun$run$1.apply(FunSuiteLike.scala:233)
      10. org.scalatest.SuperEngine.runImpl(Engine.scala:521)
      11. org.scalatest.FunSuiteLike$class.run(FunSuiteLike.scala:233)
      12. org.scalatest.FunSuite.run(FunSuite.scala:1560)
      13. org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:314)
      14. org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:472)
      14 frames
    7. SBT
      ForkMain$Run$2.call
      1. sbt.ForkMain$Run$2.call(ForkMain.java:296)
      2. sbt.ForkMain$Run$2.call(ForkMain.java:286)
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames