Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.10 KB | None | 0 0
  1. Failed to transform class with name com.supaham.monopoly.game.dice.DiceRoller. Reason: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
  2. java.lang.IllegalStateException: Failed to transform class with name com.supaham.monopoly.game.dice.DiceRoller. Reason: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
  3. at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:267)
  4. at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:180)
  5. at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:70)
  6. at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  7. at java.lang.Class.getDeclaredMethods0(Native Method)
  8. at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
  9. at java.lang.Class.privateGetPublicMethods(Class.java:2902)
  10. at java.lang.Class.getMethods(Class.java:1615)
  11. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.getTestMethods(PowerMockJUnit44RunnerDelegateImpl.java:93)
  12. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.<init>(PowerMockJUnit44RunnerDelegateImpl.java:69)
  13. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl.<init>(PowerMockJUnit47RunnerDelegateImpl.java:42)
  14. at org.powermock.modules.junit4.internal.impl.PowerMockJUnit49RunnerDelegateImpl.<init>(PowerMockJUnit49RunnerDelegateImpl.java:25)
  15. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  16. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  17. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  18. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  19. at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:156)
  20. at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.createDelegatorFromClassloader(JUnit4TestSuiteChunkerImpl.java:40)
  21. at org.powermock.tests.utils.impl.AbstractTestSuiteChunkerImpl.createTestDelegators(AbstractTestSuiteChunkerImpl.java:244)
  22. at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.<init>(JUnit4TestSuiteChunkerImpl.java:61)
  23. at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.<init>(AbstractCommonPowerMockRunner.java:32)
  24. at org.powermock.modules.junit4.PowerMockRunner.<init>(PowerMockRunner.java:34)
  25. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  26. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
  27. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  28. at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
  29. at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:104)
  30. at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:86)
  31. at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
  32. at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)
  33. at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)
  34. at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:33)
  35. at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:84)
  36. at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56)
  37. at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
  38. at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
  39. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  40. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  41. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  42. at java.lang.reflect.Method.invoke(Method.java:498)
  43. at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
  44. at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
  45. at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
  46. at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
  47. at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
  48. at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
  49. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  50. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  51. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  52. at java.lang.reflect.Method.invoke(Method.java:498)
  53. at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
  54. at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
  55. at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:364)
  56. at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
  57. at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
  58. at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  59. at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  60. at java.lang.Thread.run(Thread.java:745)
  61. Caused by: javassist.CannotCompileException: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
  62. at javassist.expr.ExprEditor.doit(ExprEditor.java:117)
  63. at javassist.CtClassType.instrument(CtClassType.java:1437)
  64. at org.powermock.core.transformers.impl.MainMockTransformer.transform(MainMockTransformer.java:74)
  65. at org.powermock.core.classloader.MockClassLoader.loadMockClass(MockClassLoader.java:252)
  66. ... 57 more
  67. Caused by: javassist.bytecode.BadBytecode: diceRoll ()Lcom/supaham/monopoly/game/dice/DiceRoll; in com.supaham.monopoly.game.dice.DiceRoller: inconsistent stack height -1
  68. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:111)
  69. at javassist.bytecode.MethodInfo.rebuildStackMap(MethodInfo.java:440)
  70. at javassist.bytecode.MethodInfo.rebuildStackMapIf6(MethodInfo.java:422)
  71. at javassist.expr.ExprEditor.doit(ExprEditor.java:113)
  72. ... 60 more
  73. Caused by: javassist.bytecode.BadBytecode: inconsistent stack height -1
  74. at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:84)
  75. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:187)
  76. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  77. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  78. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  79. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  80. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  81. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  82. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:199)
  83. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:164)
  84. at javassist.bytecode.stackmap.MapMaker.make(MapMaker.java:108)
  85. ... 63 more
  86. Caused by: java.lang.ArrayIndexOutOfBoundsException: -1
  87. at javassist.bytecode.stackmap.Tracer.doASTORE(Tracer.java:425)
  88. at javassist.bytecode.stackmap.Tracer.doOpcode54_95(Tracer.java:302)
  89. at javassist.bytecode.stackmap.Tracer.doOpcode(Tracer.java:76)
  90. ... 73 more
  91.  
  92. com.supaham.monopoly.DiceRollerTest > initializationError FAILED
  93. java.lang.IllegalStateException
  94. Caused by: javassist.CannotCompileException
  95. Caused by: javassist.bytecode.BadBytecode
  96. Caused by: javassist.bytecode.BadBytecode
  97. Caused by: java.lang.ArrayIndexOutOfBoundsException
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement