java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • java.lang.IllegalStateException: Failed to transform class with name com.example.MyTest. Reason: 3 at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:208) at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:146) at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:63) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:140) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:49) at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:231) at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:69) at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:35) at org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:27) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.junit.internal.requests.ClassRequest.buildRunner(ClassRequest.java:33) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28) at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45) at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009) Caused by: java.lang.ArrayIndexOutOfBoundsException: 3 at javassist.bytecode.ByteArray.write16bit(ByteArray.java:40) at javassist.bytecode.StackMapTable$Shifter.update(StackMapTable.java:744) at javassist.bytecode.StackMapTable$Shifter.sameFrame(StackMapTable.java:720) at javassist.bytecode.StackMapTable$Walker.stackMapFrames(StackMapTable.java:194) at javassist.bytecode.StackMapTable$Walker.parse(StackMapTable.java:179) at javassist.bytecode.StackMapTable$Shifter.doit(StackMapTable.java:714) at javassist.bytecode.StackMapTable.shiftPc(StackMapTable.java:693) at javassist.bytecode.CodeIterator.insertGap0(CodeIterator.java:676) at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:636) at javassist.bytecode.CodeIterator.insertGapCore(CodeIterator.java:467) at javassist.bytecode.CodeIterator.insertGap(CodeIterator.java:413) at javassist.expr.Expr.replace0(Expr.java:290) at javassist.expr.FieldAccess.replace(FieldAccess.java:213) at org.powermock.core.transformers.impl.MainMockTransformer$PowerMockExpressionEditor.edit(MainMockTransformer.java:230) at javassist.expr.ExprEditor.loopBody(ExprEditor.java:197) at javassist.expr.ExprEditor.doit(ExprEditor.java:90) at javassist.CtClassType.instrument(CtClassType.java:1288) at org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:70) at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:204) ... 29 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,