java.lang.IllegalStateException: Failed to transform class with name com.example.MyTest. Reason: 3

Google Groups | davis | 7 years ago
  1. 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
  2. 0

    PowerMock trying to mock static getConnection gives illegalStateException: Failed to transform class

    Stack Overflow | 4 years ago | Simranjeet Singh Chawla
    java.lang.IllegalStateException: Failed to transform class with name org.onesync.dq.gui.testng.testNG.MockitoTester. Reason: 3
  3. 0

    JAVA - PowerMock trying to mock static getConnection gives illegalStateException: Failed to transform class - efreedom

    efreedom.net | 1 year ago
    java.lang.IllegalStateException: Failed to transform class with name org.onesync.dq.gui.testng.testNG.MockitoTester. Reason: 3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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
  6. 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 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:290)
      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:230)
      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:1288)
      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:63)
      4 frames
    6. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
      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:140)
      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:35)
      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(NativeMethod)
      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.requests.ClassRequest.buildRunner(ClassRequest.java:33)
      2. org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28)
      2 frames
    13. JUnit4 Provider
      JUnit4DirectoryTestSuite.createTestSet
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45)
      2. org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56)
      2 frames
    14. SureFire
      Surefire.run
      1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
      2. org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
      3. org.apache.maven.surefire.Surefire.run(Surefire.java:156)
      3 frames
    15. 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
    16. SureFire
      SurefireBooter.main
      1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
      2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
      2 frames