java.lang.ClassCastException: org.powermock.api.extension.reporter.MockingFrameworkReporterFactoryImpl cannot be cast to org.powermock.core.reporter.MockingFrameworkReporterFactory

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

    ClassCastException in powermock. Following is the trace

    Stack Overflow | 7 months ago | Anand Srinivasan
    java.lang.ClassCastException: org.powermock.api.extension.reporter.MockingFrameworkReporterFactoryImpl cannot be cast to org.powermock.core.reporter.MockingFrameworkReporterFactory

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.powermock.api.extension.reporter.MockingFrameworkReporterFactoryImpl cannot be cast to org.powermock.core.reporter.MockingFrameworkReporterFactory

      at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.getFrameworkReporterFactory()
    2. powermock-core
      AbstractTestSuiteChunkerImpl.getFrameworkReporterFactory
      1. org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.getFrameworkReporterFactory(AbstractTestSuiteChunkerImpl.java:194)
      1 frame
    3. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.run
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.getMockingFrameworkReporter(JUnit4TestSuiteChunkerImpl.java:140)
      2. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:119)
      3. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
      3 frames
    4. powermock-module-junit4
      PowerMockRunner.run
      1. org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
      1 frame
    5. JUnit
      JUnitCore.runClasses
      1. org.junit.runners.Suite.runChild(Suite.java:128)
      2. org.junit.runners.Suite.runChild(Suite.java:27)
      3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
      4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
      6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
      8. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
      9. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:115)
      11. org.junit.runner.JUnitCore.run(JUnitCore.java:105)
      12. org.junit.runner.JUnitCore.runClasses(JUnitCore.java:62)
      13. org.junit.runner.JUnitCore.runClasses(JUnitCore.java:49)
      13 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame