java.lang.IllegalStateException: Failed to transform class with name android.content.ContentProvider. Reason: cannot find android.content.IContentProvider

stackoverflow.com | 4 months ago
  1. 0

    PowerMock + Robolectric + ActiveAndroid

    Stack Overflow | 6 months ago | user5483163
    java.lang.IllegalStateException: Failed to transform class with name android.content.ContentProvider. Reason: cannot find android.content.IContentProvider
  2. 0

    android - PowerMock + Robolectric - Stack Overflow на русском

    stackoverflow.com | 4 months ago
    java.lang.IllegalStateException: Failed to transform class with name android.content.ContentProvider. Reason: cannot find android.content.IContentProvider
  3. 0

    Error using PowerMock and Roboletric to mock a custom View

    Stack Overflow | 12 months ago | ris8_allo_zen0
    java.lang.IllegalStateException: Failed to transform class with name android.view.View. Reason: by javassist.bytecode.BadBytecode: getVerticalFadingEdgeLength ()I in android.view.View: failed to resolve types
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    no such field: powermock

    Google Groups | 5 years ago | Rushabh Gandhi
    java.lang.IllegalStateException: Failed to transform class with name _____ Reason: [source error] no such field: powermock
  6. 0

    ClassFileTransformer + Javassist: no such field

    Stack Overflow | 3 years ago | mael
    javassist.CannotCompileException: [source error] no such field: $$probe

  1. davidvanlaatum 7 times, last 6 months ago
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. javassist.NotFoundException

    android.content.IContentProvider

    at javassist.ClassPool.get()
  2. Javassist
    CtBehavior.insertBefore
    1. javassist.ClassPool.get(ClassPool.java:452)
    2. javassist.bytecode.Descriptor.toCtClass(Descriptor.java:592)
    3. javassist.bytecode.Descriptor.getParameterTypes(Descriptor.java:439)
    4. javassist.CtBehavior.getParameterTypes(CtBehavior.java:298)
    5. javassist.CtBehavior.insertBefore(CtBehavior.java:749)
    6. javassist.CtBehavior.insertBefore(CtBehavior.java:734)
    6 frames
  3. powermock-core
    DeferSupportingClassLoader.loadClass
    1. org.powermock.core.transformers.impl.AbstractMainMockTransformer.modifyMethod(AbstractMainMockTransformer.java:207)
    2. org.powermock.core.transformers.impl.AbstractMainMockTransformer.allowMockingOfStaticAndFinalAndNativeMethods(AbstractMainMockTransformer.java:112)
    3. org.powermock.core.transformers.impl.ClassMockTransformer.transformMockClass(ClassMockTransformer.java:56)
    4. org.powermock.core.transformers.impl.AbstractMainMockTransformer.transform(AbstractMainMockTransformer.java:247)
    5. org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:264)
    6. org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:192)
    7. org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:71)
    7 frames
  4. Java RT
    ClassLoader.defineClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    2. java.lang.ClassLoader.defineClass1(Native Method)
    3. java.lang.ClassLoader.defineClass(ClassLoader.java:763)
    4. java.lang.ClassLoader.defineClass(ClassLoader.java:642)
    4 frames
  5. powermock-core
    DeferSupportingClassLoader.loadClass
    1. org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:286)
    2. org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:192)
    3. org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:71)
    3 frames
  6. Java RT
    ClassLoader.loadClass
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    1 frame
  7. handsfree.penny.common
    BaseTest.setup
    1. handsfree.penny.common.BaseTest.setup(BaseTest.java:45)
    1 frame
  8. 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:498)
    4 frames
  9. JUnit
    RunBefores.evaluate
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
    4 frames
  10. Powermock
    PowerMockStatement$1.run
    1. org.powermock.modules.junit4.rule.PowerMockStatement$1.run(PowerMockRule.java:83)
    1 frame
  11. 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:498)
    4 frames
  12. powermock-reflect
    Whitebox.invokeMethod
    1. org.powermock.reflect.internal.WhiteboxImpl.performMethodInvocation(WhiteboxImpl.java:1899)
    2. org.powermock.reflect.internal.WhiteboxImpl.doInvokeMethod(WhiteboxImpl.java:801)
    3. org.powermock.reflect.internal.WhiteboxImpl.invokeMethod(WhiteboxImpl.java:666)
    4. org.powermock.reflect.Whitebox.invokeMethod(Whitebox.java:401)
    4 frames
  13. powermock-classloading-base
    AbstractClassloaderExecutor.execute
    1. org.powermock.classloading.AbstractClassloaderExecutor.getResult(AbstractClassloaderExecutor.java:69)
    2. org.powermock.classloading.AbstractClassloaderExecutor.executeWithClassLoader(AbstractClassloaderExecutor.java:59)
    3. org.powermock.classloading.SingleClassloaderExecutor.execute(SingleClassloaderExecutor.java:67)
    4. org.powermock.classloading.AbstractClassloaderExecutor.execute(AbstractClassloaderExecutor.java:43)
    4 frames
  14. Powermock
    PowerMockStatement.evaluate
    1. org.powermock.modules.junit4.rule.PowerMockStatement.evaluate(PowerMockRule.java:75)
    1 frame
  15. Roboelectric
    RobolectricTestRunner.runChild
    1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:251)
    2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:188)
    3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)
    3 frames
  16. JUnit
    ParentRunner$2.evaluate
    1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    5. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    5 frames
  17. Roboelectric
    RobolectricTestRunner$1.evaluate
    1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:152)
    1 frame
  18. JUnit
    JUnitCore.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    2. org.junit.runners.Suite.runChild(Suite.java:128)
    3. org.junit.runners.Suite.runChild(Suite.java:27)
    4. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    5. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    6. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    7. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    8. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    9. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    10. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    10 frames
  19. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
    1 frame
  20. 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
  21. 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:498)
    4 frames
  22. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame