Advertisement
aironman

java_patterns output

May 28th, 2019
169
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Welcome to fish, the friendly interactive shell
  2. # This is a compile with jdk 11, it fails, but then I will try to compile with jdk8
  3. aironman@MacBook-Pro-Retina-de-Alonso ~> cd java-design-patterns/
  4. aironman@MacBook-Pro-Retina-de-Alonso ~/java-design-patterns> git pull
  5. Ya está actualizado.
  6. aironman@MacBook-Pro-Retina-de-Alonso ~/java-design-patterns> cd twin/
  7. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> git pull
  8. Ya está actualizado.
  9. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> mvn package
  10. [INFO] Scanning for projects...
  11. [INFO]
  12. [INFO] -------------------------< com.iluwatar:twin >--------------------------
  13. [INFO] Building twin 1.21.0-SNAPSHOT
  14. [INFO] --------------------------------[ jar ]---------------------------------
  15. [INFO]
  16. [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ twin ---
  17. [INFO] Starting audit...
  18. Audit done.
  19. [INFO]
  20. [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) @ twin ---
  21. [INFO] argLine set to -javaagent:/Users/aironman/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/Users/aironman/java-design-patterns/twin/target/jacoco.exec
  22. [INFO]
  23. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ twin ---
  24. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  25. [INFO] skip non existing resourceDirectory /Users/aironman/java-design-patterns/twin/src/main/resources
  26. [INFO]
  27. [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ twin ---
  28. [INFO] Nothing to compile - all classes are up to date
  29. [INFO]
  30. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ twin ---
  31. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  32. [INFO] skip non existing resourceDirectory /Users/aironman/java-design-patterns/twin/src/test/resources
  33. [INFO]
  34. [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ twin ---
  35. [INFO] Changes detected - recompiling the module!
  36. [INFO] Compiling 3 source files to /Users/aironman/java-design-patterns/twin/target/test-classes
  37. [INFO]
  38. [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ twin ---
  39.  
  40. -------------------------------------------------------
  41. T E S T S
  42. -------------------------------------------------------
  43. Exception in thread "main" java.lang.reflect.InvocationTargetException
  44. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  45. at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  46. at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  47. at java.base/java.lang.reflect.Method.invoke(Method.java:566)
  48. at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:513)
  49. at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:525)
  50. Caused by: java.lang.RuntimeException: Class java/util/UUID could not be instrumented.
  51. at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:139)
  52. at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:100)
  53. at org.jacoco.agent.rt.internal_e6e56f0.PreMain.createRuntime(PreMain.java:55)
  54. at org.jacoco.agent.rt.internal_e6e56f0.PreMain.premain(PreMain.java:47)
  55. ... 6 more
  56. Caused by: java.lang.NoSuchFieldException: $jacocoAccess
  57. at java.base/java.lang.Class.getField(Class.java:2000)
  58. at org.jacoco.agent.rt.internal_e6e56f0.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:137)
  59. ... 9 more
  60. FATAL ERROR in native method: processing of -javaagent failed
  61. /bin/sh: line 1: 43966 Abort trap: 6 /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/bin/java -Xmx1024M -javaagent:/Users/aironman/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/Users/aironman/java-design-patterns/twin/target/jacoco.exec -jar /Users/aironman/java-design-patterns/twin/target/surefire/surefirebooter285507371634910438.jar /Users/aironman/java-design-patterns/twin/target/surefire/surefire10391712585217880572tmp /Users/aironman/java-design-patterns/twin/target/surefire/surefire_0986290633077515611tmp
  62.  
  63. Results :
  64.  
  65. Tests run: 0, Failures: 0, Errors: 0, Skipped: 0
  66.  
  67. [INFO] ------------------------------------------------------------------------
  68. [INFO] BUILD FAILURE
  69. [INFO] ------------------------------------------------------------------------
  70. [INFO] Total time: 5.938 s
  71. [INFO] Finished at: 2019-05-28T11:32:57+02:00
  72. [INFO] ------------------------------------------------------------------------
  73. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project twin: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
  74. [ERROR] Command was /bin/sh -c cd /Users/aironman/java-design-patterns/twin && /Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/bin/java -Xmx1024M -javaagent:/Users/aironman/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/Users/aironman/java-design-patterns/twin/target/jacoco.exec -jar /Users/aironman/java-design-patterns/twin/target/surefire/surefirebooter285507371634910438.jar /Users/aironman/java-design-patterns/twin/target/surefire/surefire10391712585217880572tmp /Users/aironman/java-design-patterns/twin/target/surefire/surefire_0986290633077515611tmp
  75. [ERROR] -> [Help 1]
  76. [ERROR]
  77. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  78. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  79. [ERROR]
  80. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  81. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
  82. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> java -version
  83. openjdk version "11.0.2" 2019-01-15
  84. OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
  85. OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
  86.  
  87. # I will change JAVA_HOME to 1.8
  88.  
  89. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> set -x JAVA_HOME (/usr/libexec/java_home -v 1.8)
  90. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> java -version
  91. java version "1.8.0_172"
  92. Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
  93. Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
  94. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> mvn clean package
  95. [INFO] Scanning for projects...
  96. [INFO]
  97. [INFO] -------------------------< com.iluwatar:twin >--------------------------
  98. [INFO] Building twin 1.21.0-SNAPSHOT
  99. [INFO] --------------------------------[ jar ]---------------------------------
  100. [INFO]
  101. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ twin ---
  102. [INFO] Deleting /Users/aironman/java-design-patterns/twin/target
  103. [INFO]
  104. [INFO] --- maven-checkstyle-plugin:2.17:check (validate) @ twin ---
  105. [INFO] Starting audit...
  106. Audit done.
  107. [INFO]
  108. [INFO] --- jacoco-maven-plugin:0.7.2.201409121644:prepare-agent (prepare-agent) @ twin ---
  109. [INFO] argLine set to -javaagent:/Users/aironman/.m2/repository/org/jacoco/org.jacoco.agent/0.7.2.201409121644/org.jacoco.agent-0.7.2.201409121644-runtime.jar=destfile=/Users/aironman/java-design-patterns/twin/target/jacoco.exec
  110. [INFO]
  111. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ twin ---
  112. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  113. [INFO] skip non existing resourceDirectory /Users/aironman/java-design-patterns/twin/src/main/resources
  114. [INFO]
  115. [INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ twin ---
  116. [INFO] Changes detected - recompiling the module!
  117. [INFO] Compiling 4 source files to /Users/aironman/java-design-patterns/twin/target/classes
  118. [INFO]
  119. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ twin ---
  120. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  121. [INFO] skip non existing resourceDirectory /Users/aironman/java-design-patterns/twin/src/test/resources
  122. [INFO]
  123. [INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ twin ---
  124. [INFO] Changes detected - recompiling the module!
  125. [INFO] Compiling 3 source files to /Users/aironman/java-design-patterns/twin/target/test-classes
  126. [INFO]
  127. [INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ twin ---
  128.  
  129. -------------------------------------------------------
  130. T E S T S
  131. -------------------------------------------------------
  132. Running com.iluwatar.twin.AppTest
  133. 11:36:04.436 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  134. 11:36:04.440 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  135. 11:36:04.440 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  136. 11:36:04.695 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  137. 11:36:04.695 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  138. 11:36:04.695 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  139. 11:36:04.946 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  140. 11:36:04.946 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  141. 11:36:04.946 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  142. 11:36:05.188 [main] INFO com.iluwatar.twin.BallThread - Begin to suspend BallThread
  143. 11:36:05.940 [main] INFO com.iluwatar.twin.BallThread - Begin to resume BallThread
  144. 11:36:05.964 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  145. 11:36:05.964 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  146. 11:36:05.964 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  147. 11:36:06.219 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  148. 11:36:06.220 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  149. 11:36:06.220 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  150. 11:36:06.475 [Thread-2] INFO com.iluwatar.twin.GameItem - draw
  151. 11:36:06.475 [Thread-2] INFO com.iluwatar.twin.BallItem - doDraw
  152. 11:36:06.475 [Thread-2] INFO com.iluwatar.twin.BallItem - move
  153. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.41 sec - in com.iluwatar.twin.AppTest
  154. Running com.iluwatar.twin.BallItemTest
  155. 11:36:06.934 [main] INFO com.iluwatar.twin.BallItem - move
  156. LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
  157. 11:36:06.942 [main] INFO com.iluwatar.twin.GameItem - draw
  158. LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
  159. 11:36:06.942 [main] INFO com.iluwatar.twin.BallItem - doDraw
  160. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec - in com.iluwatar.twin.BallItemTest
  161. Running com.iluwatar.twin.BallThreadTest
  162. 11:36:06.968 [main] INFO com.iluwatar.twin.BallThread - Begin to suspend BallThread
  163. LOGBACK: No context given for com.iluwatar.twin.BallItemTest$InMemoryAppender[null]
  164. 11:36:07.974 [main] INFO com.iluwatar.twin.BallThread - Begin to resume BallThread
  165. Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.049 sec <<< FAILURE! - in com.iluwatar.twin.BallThreadTest
  166. testResume() Time elapsed: 1.025 sec <<< ERROR!
  167. java.lang.VerifyError: (class: org/mockito/internal/verification/VerificationOverTimeImpl, method: verify signature: (Lorg/mockito/internal/verification/api/VerificationData;)V) Incompatible argument to function
  168. at com.iluwatar.twin.BallThreadTest.lambda$testResume$1(BallThreadTest.java:91)
  169. at com.iluwatar.twin.BallThreadTest.testResume(BallThreadTest.java:77)
  170.  
  171. testSuspend() Time elapsed: 0.001 sec <<< ERROR!
  172. java.lang.VerifyError: (class: org/mockito/internal/verification/VerificationOverTimeImpl, method: verify signature: (Lorg/mockito/internal/verification/api/VerificationData;)V) Incompatible argument to function
  173. at com.iluwatar.twin.BallThreadTest.lambda$testSuspend$0(BallThreadTest.java:59)
  174. at com.iluwatar.twin.BallThreadTest.testSuspend(BallThreadTest.java:51)
  175.  
  176.  
  177. Results :
  178.  
  179. Tests in error:
  180. BallThreadTest.testResume:77->lambda$testResume$1:91 » Verify (class: org/mock...
  181. BallThreadTest.testSuspend:51->lambda$testSuspend$0:59 » Verify (class: org/mo...
  182.  
  183. Tests run: 7, Failures: 0, Errors: 2, Skipped: 0
  184.  
  185. [INFO] ------------------------------------------------------------------------
  186. [INFO] BUILD FAILURE
  187. [INFO] ------------------------------------------------------------------------
  188. [INFO] Total time: 9.924 s
  189. [INFO] Finished at: 2019-05-28T11:36:08+02:00
  190. [INFO] ------------------------------------------------------------------------
  191. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project twin: There are test failures.
  192. [ERROR]
  193. [ERROR] Please refer to /Users/aironman/java-design-patterns/twin/target/surefire-reports for the individual test results.
  194. [ERROR] -> [Help 1]
  195. [ERROR]
  196. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  197. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  198. [ERROR]
  199. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  200. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  201. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin> mvn --version
  202. Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
  203. Maven home: /usr/local/Cellar/maven/3.6.1/libexec
  204. Java version: 1.8.0_172, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
  205. Default locale: es_ES, platform encoding: UTF-8
  206. OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
  207. aironman@MacBook-Pro-Retina-de-Alonso ~/j/twin>
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement