java.lang.IllegalStateException: Failed to transform class with name com.my.DroolsFlowManagerTest. Reason: 3

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.IllegalStateException: Failed to transform class with name com.my.DroolsFlowManagerTest. Reason: 3
  2. 0

    Problem creating mock using PowerMock

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalStateException: Failed to transform class with name com.my.DroolsFlowManagerTest. Reason: 3
  3. 0

    Problem creating mock using PowerMock

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalStateException: Failed to transform class with name com.my.DroolsFlowManagerTest. Reason: 3
  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.IllegalStateException: Failed to transform class with name com.my.DroolsFlowManagerTest. Reason: 3
  6. 0

    IllegalStateException (due to ArrayIndexOutOfBoundsException) when running PowerMock test

    Google Groups | 6 years ago | toddrun
    java.lang.IllegalStateException: Failed to transform class with name com.doit.DoTheThingTest. Reason: 3

    3 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.ArrayIndexOutOfBoundsException

      3

      at javassist.bytecode.ByteArray.write16bit()
    2. Javassist
      FieldAccess.replace
      1. javassist.bytecode.ByteArray.write16bit(ByteArray.java:40)
      2. javassist.bytecode.StackMapTable$Shifter.update(StackMapTable.java:744)
      3. javassist.bytecode.StackMapTable$Shifter.sameFrame(StackMapTable.java:720)
      4. javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackMapTable.java:194)
      5. javassist.bytecode.StackMapTable$Walker.parse(StackMapTable.java:179)
      6. javassist.bytecode.StackMapTable$Shifter.doit(StackMapTable.java:714)
      7. javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:693)
      8. javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:676)
      9. javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:636)
      10. javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.java:467)
      11. javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:413)
      12. javassist.expr.Expr.replace0(Expr.java:298)
      13. javassist.expr.FieldAccess.replace(FieldAccess.java:213)
      13 frames
    3. powermock-core
      MainMockTransformer$PowerMockExpressionEditor.edit
      1. org.powermock.core.transformers.impl.MainMockTransformer$PowerMockExpressionEditor.edit(MainMockTransformer.java:233)
      1 frame
    4. Javassist
      CtClassType.instrument
      1. javassist.expr.ExprEditor.loopBody(ExprEditor.java:197)
      2. javassist.expr.ExprEditor.doit(ExprEditor.java:90)
      3. javassist.CtClassType.instrument(CtClassType.java:1289)
      3 frames
    5. powermock-core
      DeferSupportingClassLoader.loadClass
      1. org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:70)
      2. org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:204)
      3. org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:146)
      4. org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:65)
      4 frames
    6. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      3. java.lang.Class.forName0(Native Method)
      4. java.lang.Class.forName(Class.java:247)
      4 frames
    7. powermock-module-junit4-common
      JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:143)
      2. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:49)
      2 frames
    8. powermock-core
      AbstractTestSuiteChunkerImpl.createTestDelegators
      1. org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:231)
      1 frame
    9. powermock-module-junit4-common
      AbstractCommonPowerMockRunner.<init>
      1. org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:69)
      2. org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:36)
      2 frames
    10. powermock-module-junit4
      PowerMockRunner.<init>
      1. org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:27)
      1 frame
    11. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      4 frames
    12. JUnit
      ClassRequest.getRunner
      1. org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
      2. org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
      3. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      4. org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
      5. org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
      6. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:24)
      6 frames
    13. JUnit4 Runner
      JUnit4TestLoader.loadTests
      1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>(JUnit4TestReference.java:29)
      2. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>(JUnit4TestClassReference.java:25)
      3. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:40)
      4. org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:30)
      4 frames
    14. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      4 frames