java.lang.ClassCastException: org.powermock.core.spi.support.InvocationSubstitute$$EnhancerByMockitoWithCGLIB$$b9bc6977 cannot be cast to java.io.BufferedInputStream

Google Groups | ron.difrango | 1 year ago
  1. 0

    PowerMockito.whenNew and assignment to a local variable

    Google Groups | 1 year ago | ron.difrango
    java.lang.ClassCastException: org.powermock.core.spi.support.InvocationSubstitute$$EnhancerByMockitoWithCGLIB$$b9bc6977 cannot be cast to java.io.BufferedInputStream
  2. 0

    cannot use com.google.gwt.user.datepicker.client.DatePicker

    GitHub | 1 year ago | hnoerdli
    java.lang.ClassCastException: com.google.gwt.core.client.JavaScriptObject$$EnhancerByMockitoWithCGLIB$$c39d8300 cannot be cast to com.google.gwt.dom.client.Element
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    PowerMock (API mockito) - Slf4j (API logbak)

    GitHub | 1 year ago | johanhaleby
    java.lang.ClassCastException: org.slf4j.Logger$$EnhancerByMockitoWithCGLIB$$c3ce6cd8 cannot be cast to org.mockito.cglib.proxy.Factory
  5. 0

    Can not Return deep stubs from generic method that returns generic type

    GitHub | 5 months ago | chisui
    java.lang.ClassCastException: org.mockito.internal.creation.cglib.ClassImposterizer$ClassWithSuperclassToWorkAroundCglibBug$$EnhancerByMockitoWithCGLIB$$cdb13154 cannot be cast to java.lang.String

    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

      org.powermock.core.spi.support.InvocationSubstitute$$EnhancerByMockitoWithCGLIB$$b9bc6977 cannot be cast to java.io.BufferedInputStream

      at com.capitalone.chassis.engine.content.runtime.ContentServiceImplTest.getRenditionObjectFromDocumentTest()
    2. com.capitalone.chassis
      ContentServiceImplTest.getRenditionObjectFromDocumentTest
      1. com.capitalone.chassis.engine.content.runtime.ContentServiceImplTest.getRenditionObjectFromDocumentTest(ContentServiceImplTest.java:501)
      1 frame
    3. 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:497)
      4 frames
    4. JUnit
      TestMethod.invoke
      1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
      1 frame
    5. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:310)
      1 frame
    6. JUnit
      MethodRoadie.runBeforesThenTestThenAfters
      1. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:89)
      2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:97)
      2 frames
    7. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
      4. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
      4 frames
    8. JUnit
      MethodRoadie.run
      1. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:87)
      2. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:50)
      2 frames
    9. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$1.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
      3 frames
    10. JUnit
      ClassRoadie.runProtected
      1. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
      2. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
      2 frames
    11. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:122)
      1 frame
    12. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.run
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:106)
      2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
      2 frames
    13. powermock-module-junit4
      PowerMockRunner.run
      1. org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
      1 frame
    14. JUnit
      JUnitCore.run
      1. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
      1 frame
    15. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)
      1 frame
    16. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    17. 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:497)
      4 frames
    18. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame