com.thoughtworks.xstream.converters.ConversionException: Failed to transform class with name com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest. Reason: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 : Failed to transform class with name com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest. Reason: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 ---- Debugging information ---- message : Failed to transform class with name com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest. Reason: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 cause-exception : java.lang.IllegalStateException cause-message : Failed to transform class with name com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest. Reason: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 class : java.lang.reflect.Method required-type : java.lang.reflect.Method converter-type : com.thoughtworks.xstream.converters.extended.JavaMethodConverter path : /org.powermock.modules.junit4.rule.PowerMockStatement$1/outer-class/fNext/next/val$roboMethod/method/class line number : 7 class[1] : org.robolectric.RobolectricTestRunner$RobolectricFrameworkMethod converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter class[2] : org.robolectric.RobolectricTestRunner$HelperTestRunner$1 class[3] : org.junit.internal.runners.statements.RunBefores class[4] : org.powermock.modules.junit4.rule.PowerMockStatement class[5] : org.powermock.modules.junit4.rule.PowerMockStatement$1 version : not available ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:480) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:412) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:263) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1206) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1190) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1061) at com.thoughtworks.xstream.XStream.fromXML(XStream.java:1052) at org.powermock.classloading.DeepCloner.clone(DeepCloner.java:54) at org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:89) at org.powermock.classloading.ClassloaderExecutor.execute(ClassloaderExecutor.java:78) at org.powermock.modules.junit4.rule.PowerMockStatement.evaluate(PowerMockRule.java:57) at org.robolectric.internal.SandboxTestRunner$2.evaluate(SandboxTestRunner.java:209) at org.robolectric.internal.SandboxTestRunner.runChild(SandboxTestRunner.java:109) at org.robolectric.internal.SandboxTestRunner.runChild(SandboxTestRunner.java:36) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.robolectric.internal.SandboxTestRunner$1.evaluate(SandboxTestRunner.java:63) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147) Caused by: java.lang.IllegalStateException: Failed to transform class with name com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest. Reason: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:267) at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:180) at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:70) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:77) at com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:69) at com.thoughtworks.xstream.converters.extended.JavaMethodConverter.unmarshal(JavaMethodConverter.java:107) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ... 63 more Caused by: javassist.CannotCompileException: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 at javassist.expr.ExprEditor.doit(ExprEditor.java:117) at javassist.CtClassType.instrument(CtClassType.java:1465) at org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:74) at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:252) ... 72 more Caused by: javassist.bytecode.BadBytecode: setup ()V in com.chickfila.flagship.cfaoneapp.dataaccess.ClassTest: inconsistent stack height -1 at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:111) at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:456) at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:438) at javassist.expr.ExprEditor.doit(ExprEditor.java:113) ... 75 more Caused by: javassist.bytecode.BadBytecode: inconsistent stack height -1 at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:84) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:187) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:164) at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:108) ... 78 more Caused by: java.lang.ArrayIndexOutOfBoundsException: -1 at javassist.bytecode.stackmap.Tracer.doASTORE(Tracer.java:425) at javassist.bytecode.stackmap.Tracer.doOpcode54_95(Tracer.java:302) at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:76) ... 85 more Process finished with exit code 255