com.thoughtworks.xstream.converters.ConversionException: Failed to transform class with name io.realm.Realm. Reason: rx.Observable : Failed to transform class with name io.realm.Realm. Reason: rx.Observable ---- Debugging information ---- message : Failed to transform class with name io.realm.Realm. Reason: rx.Observable cause-exception : java.lang.IllegalStateException cause-message : Failed to transform class with name io.realm.Realm. Reason: rx.Observable class : org.junit.internal.runners.statements.InvokeMethod required-type : org.junit.internal.runners.statements.InvokeMethod converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /org.powermock.modules.junit4.rule.PowerMockStatement$1/outer-class/fNext/next/val$invoker/target line number : 13 class[1] : org.robolectric.RobolectricTestRunner$HelperTestRunner$1 class[2] : org.junit.internal.runners.statements.RunBefores class[3] : org.powermock.modules.junit4.rule.PowerMockStatement class[4] : org.powermock.modules.junit4.rule.PowerMockStatement$1 version : not available -------------------------------

GitHub | Hesamedin | 2 months ago
  1. 0

    Getting error during unit test: com.thoughtworks.xstream.converters.ConversionException: Failed to transform class with name io.realm.Realm. Reason: rx.Observable : Failed to transform class with name io.realm.Realm. Reason: rx.Observable -

    GitHub | 2 months ago | Hesamedin
    com.thoughtworks.xstream.converters.ConversionException: Failed to transform class with name io.realm.Realm. Reason: rx.Observable : Failed to transform class with name io.realm.Realm. Reason: rx.Observable ---- Debugging information ---- message : Failed to transform class with name io.realm.Realm. Reason: rx.Observable cause-exception : java.lang.IllegalStateException cause-message : Failed to transform class with name io.realm.Realm. Reason: rx.Observable class : org.junit.internal.runners.statements.InvokeMethod required-type : org.junit.internal.runners.statements.InvokeMethod converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /org.powermock.modules.junit4.rule.PowerMockStatement$1/outer-class/fNext/next/val$invoker/target line number : 13 class[1] : org.robolectric.RobolectricTestRunner$HelperTestRunner$1 class[2] : org.junit.internal.runners.statements.RunBefores class[3] : org.powermock.modules.junit4.rule.PowerMockStatement class[4] : org.powermock.modules.junit4.rule.PowerMockStatement$1 version : not available -------------------------------
  2. 0

    Failed to transform class with name com.ibm.ecm.extension.PluginServiceCallbacks. Reason: com.ibm.mm.sdk.server.DKDatastoreICM

    GitHub | 1 year ago | johanhaleby
    java.lang.IllegalStateException: Failed to transform class with name com.ibm.ecm.extension.PluginServiceCallbacks. Reason: com.ibm.mm.sdk.server.DKDatastoreICM
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    PrepareForTest android.os.Handler

    GitHub | 2 years ago | ebortolini
    com.thoughtworks.xstream.converters.ConversionException: Failed to transform class with name android.os.Handler. Reason: android.os.IMessenger : Failed to transform class with name android.os.Handler. Reason: android.os.IMessenger ---- Debugging information ---- message : Failed to transform class with name android.os.Handler. Reason: android.os.IMessenger cause-exception : java.lang.IllegalStateException cause-message : Failed to transform class with name android.os.Handler. Reason: android.os.IMessenger class : org.junit.internal.runners.statements.InvokeMethod required-type : org.junit.internal.runners.statements.InvokeMethod converter-type : com.thoughtworks.xstream.converters.reflection.ReflectionConverter path : /org.powermock.modules.junit4.rule.PowerMockStatement$1/outer-class/fNext/fNext/fTarget line number : 12 class[1] : org.junit.internal.runners.statements.RunBefores class[2] : org.powermock.modules.junit4.rule.PowerMockStatement class[3] : org.powermock.modules.junit4.rule.PowerMockStatement$1 version : not available -------------------------------
  5. 0

    "Failed to transform class with name [CLASS NAME]. Reason: javax.servlet.ServletContext" when running tests in an ANT script

    Stack Overflow | 1 year ago | Seb
    java.lang.IllegalStateException: Failed to transform class with name [CLASS NAME]. Reason: javax.servlet.ServletContext

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

    rx.Observable

    at javassist.ClassPool.get()
  2. Javassist
    CtMethod.getReturnType
    1. javassist.ClassPool.get(ClassPool.java:452)
    2. javassist.bytecode.Descriptor.toCtClass(Descriptor.java:592)
    3. javassist.bytecode.Descriptor.getReturnType(Descriptor.java:489)
    4. javassist.CtBehavior.getReturnType0(CtBehavior.java:306)
    5. javassist.CtMethod.getReturnType(CtMethod.java:219)
    5 frames
  3. powermock-core
    DeferSupportingClassLoader.loadClass
    1. org.powermock.core.transformers.impl.MainMockTransformer.modifyMethod(MainMockTransformer.java:163)
    2. org.powermock.core.transformers.impl.MainMockTransformer.allowMockingOfStaticAndFinalAndNativeMethods(MainMockTransformer.java:133)
    3. org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:65)
    4. org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:252)
    5. org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:180)
    6. org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:70)
    6 frames
  4. Java RT
    Class.getDeclaredFields
    1. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    2. java.lang.Class.getDeclaredFields0(Native Method)
    3. java.lang.Class.privateGetDeclaredFields(Class.java:2583)
    4. java.lang.Class.getDeclaredFields(Class.java:1916)
    4 frames
  5. XStream Core
    XStream.fromXML
    1. com.thoughtworks.xstream.converters.reflection.FieldDictionary.buildMap(FieldDictionary.java:136)
    2. com.thoughtworks.xstream.converters.reflection.FieldDictionary.fieldOrNull(FieldDictionary.java:113)
    3. com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldOrNull(PureJavaReflectionProvider.java:193)
    4. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.canAccess(AbstractReflectionConverter.java:67)
    5. com.thoughtworks.xstream.converters.reflection.ReflectionConverter.canConvert(ReflectionConverter.java:42)
    6. com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:56)
    7. com.thoughtworks.xstream.XStream$1.lookupConverterForType(XStream.java:498)
    8. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:56)
    9. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480)
    10. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412)
    11. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263)
    12. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    13. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    14. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    15. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480)
    16. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412)
    17. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263)
    18. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    19. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    20. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    21. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480)
    22. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412)
    23. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263)
    24. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    25. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    26. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    27. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480)
    28. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412)
    29. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263)
    30. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    31. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    32. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    33. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480)
    34. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412)
    35. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263)
    36. com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    37. com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
    38. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    39. com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    40. com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
    41. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    42. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206)
    43. com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1190)
    44. com.thoughtworks.xstream.XStream.fromXML(XStream.java:1061)
    45. com.thoughtworks.xstream.XStream.fromXML(XStream.java:1052)
    45 frames
  6. powermock-classloading-base
    ClassloaderExecutor.execute
    1. org.powermock.classloading.DeepCloner.clone(DeepCloner.java:54)
    2. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:89)
    3. org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:78)
    3 frames
  7. Powermock
    PowerMockStatement.evaluate
    1. org.powermock.modules.junit4.rule.PowerMockStatement.evaluate(PowerMockRule.java:57)
    1 frame
  8. Roboelectric
    RobolectricTestRunner.runChild
    1. org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:250)
    2. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:176)
    3. org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:49)
    3 frames
  9. 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
  10. Roboelectric
    RobolectricTestRunner$1.evaluate
    1. org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:142)
    1 frame
  11. JUnit
    JUnitCore.run
    1. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    2. org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    2 frames
  12. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
    2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
    2 frames
  13. 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
  14. 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
  15. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame