java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface

Coderanch | Ali Gohar | 6 years ago
  1. 0

    Problem creating mock using PowerMock [Solved] (Testing forum at Coderanch)

    coderanch.com | 6 months ago
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  2. 0

    Problem creating mock using PowerMock

    Coderanch | 6 years ago | Ali Gohar
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  3. 0

    Problem creating mock using PowerMock

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem creating mock using PowerMock

    GitHub | 1 year ago | GoogleCodeExporter
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface
  6. 0

    Problem creating mock using PowerMock

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalArgumentException: java.io.ByteArrayInputStream is not an interface

    17 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

      java.io.ByteArrayInputStream is not an interface

      at java.lang.reflect.Proxy.getProxyClass()
    2. Java RT
      Proxy.newProxyInstance
      1. java.lang.reflect.Proxy.getProxyClass(Proxy.java:362)
      2. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
      2 frames
    3. EasyMock
      MocksControl.createMock
      1. org.easymock.internal.JavaProxyFactory.createProxy(JavaProxyFactory.java:12)
      2. org.easymock.internal.MocksControl.createMock(MocksControl.java:37)
      2 frames
    4. powermock-api-easymock
      PowerMock.createMock
      1. org.powermock.api.easymock.PowerMock.doCreateMock(PowerMock.java:2211)
      2. org.powermock.api.easymock.PowerMock.doMock(PowerMock.java:2162)
      3. org.powermock.api.easymock.PowerMock.createMock(PowerMock.java:98)
      3 frames
    5. net.plus.kbd
      DroolsFlowManagerTest.testReverseFlow
      1. net.plus.kbd.core.drools.DroolsFlowManagerTest.testReverseFlow(DroolsFlowManagerTest.java:103)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. JUnit
      TestMethod.invoke
      1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:66)
      1 frame
    8. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:322)
      1 frame
    9. JUnit
      MethodRoadie.runBeforesThenTestThenAfters
      1. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:86)
      2. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:94)
      2 frames
    10. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:309)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:112)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:73)
      4. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:297)
      4 frames
    11. JUnit
      MethodRoadie.run
      1. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:84)
      2. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:49)
      2 frames
    12. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl$1.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:222)
      2. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:161)
      3. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:135)
      3 frames
    13. 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
    14. powermock-module-junit4
      PowerMockJUnit44RunnerDelegateImpl.run
      1. org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:133)
      1 frame
    15. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.run
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:112)
      2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:57)
      2 frames
    16. JUnit4 Runner
      JUnit4TestReference.run
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
      1 frame
    17. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      5 frames