Guest User

Untitled

a guest
Jan 4th, 2021
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. C:\Users\SHARIF\Tickets\openmrs-module-reporting>mvn clean install
  2. [INFO] Scanning for projects...
  3. [INFO] ------------------------------------------------------------------------
  4. [INFO] Reactor Build Order:
  5. [INFO]
  6. [INFO] Reporting
  7. [INFO] Reporting API
  8. [INFO] reporting Module api 1.9
  9. [INFO] reporting API Tests
  10. [INFO] reporting Module api 1.10
  11. [INFO] reporting Module api 2.0
  12. [INFO] reporting Module api 2.2
  13. [INFO] reporting Module api 2.4
  14. [INFO] Reporting OMOD
  15. [INFO]
  16. [INFO] ------------------------------------------------------------------------
  17. [INFO] Building Reporting 1.22.0-SNAPSHOT
  18. [INFO] ------------------------------------------------------------------------
  19. [INFO]
  20. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting ---
  21. [INFO]
  22. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting ---
  23. [INFO]
  24. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting ---
  25. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting\1.22.0-SNAPSHOT\reporting-1.22.0-SNAPSHOT.pom
  26. [INFO]
  27. [INFO] ------------------------------------------------------------------------
  28. [INFO] Building Reporting API 1.22.0-SNAPSHOT
  29. [INFO] ------------------------------------------------------------------------
  30. [INFO]
  31. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api ---
  32. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target
  33. [INFO]
  34. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api ---
  35. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  36. [INFO] Copying 0 resource
  37. [INFO] Copying 7 resources
  38. [INFO]
  39. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api ---
  40. [INFO] Changes detected - recompiling the module!
  41. [INFO] Compiling 665 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\classes
  42. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/report/service/db/HibernateReportDAO.java: Some input files use or override a deprecated API.
  43. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/report/service/db/HibernateReportDAO.java: Recompile with -Xlint:deprecation for details.
  44. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Some input files use unchecked or unsafe operations.
  45. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Recompile with -Xlint:unchecked for details.
  46. [INFO]
  47. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api ---
  48. [INFO]
  49. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api ---
  50. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  51. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\src\test\resources
  52. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\src\test\resources
  53. [INFO]
  54. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api ---
  55. [INFO] No sources to compile
  56. [INFO]
  57. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api ---
  58. [INFO] No tests to run.
  59. [INFO]
  60. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api ---
  61. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT.jar
  62. [INFO]
  63. [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api ---
  64. [WARNING] JAR will be empty - no content was marked for inclusion!
  65. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT-tests.jar
  66. [INFO]
  67. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting-api ---
  68. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT.jar
  69. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT.pom
  70. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT-tests.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT-tests.jar
  71. [INFO]
  72. [INFO] ------------------------------------------------------------------------
  73. [INFO] Building reporting Module api 1.9 1.22.0-SNAPSHOT
  74. [INFO] ------------------------------------------------------------------------
  75. [INFO]
  76. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-1.9 ---
  77. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target
  78. [INFO]
  79. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-1.9 ---
  80. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  81. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\main\resources
  82. [INFO]
  83. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-1.9 ---
  84. [INFO] Changes detected - recompiling the module!
  85. [INFO] Compiling 7 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\classes
  86. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/DataExportDataSetDefinition.java: Some input files use or override a deprecated API.
  87. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/DataExportDataSetDefinition.java: Recompile with -Xlint:deprecation for details.
  88. [INFO]
  89. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-1.9 ---
  90. [INFO]
  91. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-1.9 ---
  92. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  93. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\resources
  94. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\resources
  95. [INFO]
  96. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-1.9 ---
  97. [INFO] Changes detected - recompiling the module!
  98. [INFO] Compiling 1 source file to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\test-classes
  99. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\java\org\openmrs\module\reporting\dataset\DataExportDataSetPersisterTest.java uses or overrides a deprecated API.
  100. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: Recompile with -Xlint:deprecation for details.
  101. [INFO]
  102. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-1.9 ---
  103. [INFO] Surefire report directory: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\surefire-reports
  104.  
  105. -------------------------------------------------------
  106. T E S T S
  107. -------------------------------------------------------
  108. Running org.openmrs.module.reporting.dataset.DataExportDataSetPersisterTest
  109. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.554 sec
  110.  
  111. Results :
  112.  
  113. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1
  114.  
  115. Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
  116. [INFO]
  117. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api-1.9 ---
  118. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT.jar
  119. [INFO]
  120. [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api-1.9 ---
  121. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar
  122. [INFO]
  123. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting-api-1.9 ---
  124. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT.jar
  125. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT.pom
  126. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar
  127. [INFO]
  128. [INFO] ------------------------------------------------------------------------
  129. [INFO] Building reporting API Tests 1.22.0-SNAPSHOT
  130. [INFO] ------------------------------------------------------------------------
  131. [INFO]
  132. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-tests ---
  133. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target
  134. [INFO]
  135. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-tests ---
  136. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  137. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\src\main\resources
  138. [INFO]
  139. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-tests ---
  140. [INFO] No sources to compile
  141. [INFO]
  142. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-tests ---
  143. [INFO]
  144. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-tests ---
  145. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  146. [INFO] Copying 27 resources
  147. [INFO] Copying 27 resources
  148. [INFO]
  149. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-tests ---
  150. [INFO] Changes detected - recompiling the module!
  151. [INFO] Compiling 221 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target\test-classes
  152. The syntax of the command is incorrect.
  153.  
  154. C:\Users\SHARIF\Tickets\openmrs-module-reporting>^C
  155. C:\Users\SHARIF\Tickets\openmrs-module-reporting>mvn clean install
  156. [INFO] Scanning for projects...
  157. [INFO] ------------------------------------------------------------------------
  158. [INFO] Reactor Build Order:
  159. [INFO]
  160. [INFO] Reporting
  161. [INFO] Reporting API
  162. [INFO] reporting Module api 1.9
  163. [INFO] reporting API Tests
  164. [INFO] reporting Module api 1.10
  165. [INFO] reporting Module api 2.0
  166. [INFO] reporting Module api 2.2
  167. [INFO] reporting Module api 2.4
  168. [INFO] Reporting OMOD
  169. [INFO]
  170. [INFO] ------------------------------------------------------------------------
  171. [INFO] Building Reporting 1.22.0-SNAPSHOT
  172. [INFO] ------------------------------------------------------------------------
  173. [INFO]
  174. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting ---
  175. [INFO]
  176. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting ---
  177. [INFO]
  178. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting ---
  179. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting\1.22.0-SNAPSHOT\reporting-1.22.0-SNAPSHOT.pom
  180. [INFO]
  181. [INFO] ------------------------------------------------------------------------
  182. [INFO] Building Reporting API 1.22.0-SNAPSHOT
  183. [INFO] ------------------------------------------------------------------------
  184. [INFO]
  185. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api ---
  186. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target
  187. [INFO]
  188. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api ---
  189. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  190. [INFO] Copying 0 resource
  191. [INFO] Copying 7 resources
  192. [INFO]
  193. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api ---
  194. [INFO] Changes detected - recompiling the module!
  195. [INFO] Compiling 665 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\classes
  196. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/report/service/db/HibernateReportDAO.java: Some input files use or override a deprecated API.
  197. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/report/service/db/HibernateReportDAO.java: Recompile with -Xlint:deprecation for details.
  198. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Some input files use unchecked or unsafe operations.
  199. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Recompile with -Xlint:unchecked for details.
  200. [INFO]
  201. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api ---
  202. [INFO]
  203. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api ---
  204. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  205. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\src\test\resources
  206. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\src\test\resources
  207. [INFO]
  208. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api ---
  209. [INFO] No sources to compile
  210. [INFO]
  211. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api ---
  212. [INFO] No tests to run.
  213. [INFO]
  214. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api ---
  215. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT.jar
  216. [INFO]
  217. [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api ---
  218. [WARNING] JAR will be empty - no content was marked for inclusion!
  219. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT-tests.jar
  220. [INFO]
  221. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting-api ---
  222. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT.jar
  223. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT.pom
  224. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api\target\reporting-api-1.22.0-SNAPSHOT-tests.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api\1.22.0-SNAPSHOT\reporting-api-1.22.0-SNAPSHOT-tests.jar
  225. [INFO]
  226. [INFO] ------------------------------------------------------------------------
  227. [INFO] Building reporting Module api 1.9 1.22.0-SNAPSHOT
  228. [INFO] ------------------------------------------------------------------------
  229. [INFO]
  230. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-1.9 ---
  231. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target
  232. [INFO]
  233. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-1.9 ---
  234. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  235. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\main\resources
  236. [INFO]
  237. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-1.9 ---
  238. [INFO] Changes detected - recompiling the module!
  239. [INFO] Compiling 7 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\classes
  240. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/DataExportDataSetDefinition.java: Some input files use or override a deprecated API.
  241. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/DataExportDataSetDefinition.java: Recompile with -Xlint:deprecation for details.
  242. [INFO]
  243. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-1.9 ---
  244. [INFO]
  245. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-1.9 ---
  246. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  247. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\resources
  248. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\resources
  249. [INFO]
  250. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-1.9 ---
  251. [INFO] Changes detected - recompiling the module!
  252. [INFO] Compiling 1 source file to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\test-classes
  253. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\src\test\java\org\openmrs\module\reporting\dataset\DataExportDataSetPersisterTest.java uses or overrides a deprecated API.
  254. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: Recompile with -Xlint:deprecation for details.
  255. [INFO]
  256. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-1.9 ---
  257. [INFO] Surefire report directory: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\surefire-reports
  258.  
  259. -------------------------------------------------------
  260. T E S T S
  261. -------------------------------------------------------
  262. Running org.openmrs.module.reporting.dataset.DataExportDataSetPersisterTest
  263. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.223 sec
  264.  
  265. Results :
  266.  
  267. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1
  268.  
  269. Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
  270. [INFO]
  271. [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api-1.9 ---
  272. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT.jar
  273. [INFO]
  274. [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api-1.9 ---
  275. [INFO] Building jar: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar
  276. [INFO]
  277. [INFO] --- maven-install-plugin:2.4:install (default-install) @ reporting-api-1.9 ---
  278. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT.jar
  279. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\pom.xml to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT.pom
  280. [INFO] Installing C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-1.9\target\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar to C:\Users\SHARIF\.m2\repository\org\openmrs\module\reporting-api-1.9\1.22.0-SNAPSHOT\reporting-api-1.9-1.22.0-SNAPSHOT-tests.jar
  281. [INFO]
  282. [INFO] ------------------------------------------------------------------------
  283. [INFO] Building reporting API Tests 1.22.0-SNAPSHOT
  284. [INFO] ------------------------------------------------------------------------
  285. [INFO]
  286. [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-tests ---
  287. [INFO] Deleting C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target
  288. [INFO]
  289. [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-tests ---
  290. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  291. [INFO] skip non existing resourceDirectory C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\src\main\resources
  292. [INFO]
  293. [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-tests ---
  294. [INFO] No sources to compile
  295. [INFO]
  296. [INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-tests ---
  297. [INFO]
  298. [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-tests ---
  299. [INFO] Using 'UTF-8' encoding to copy filtered resources.
  300. [INFO] Copying 27 resources
  301. [INFO] Copying 27 resources
  302. [INFO]
  303. [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-tests ---
  304. [INFO] Changes detected - recompiling the module!
  305. [INFO] Compiling 221 source files to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target\test-classes
  306. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluatorTest.java: Some input files use or override a deprecated API.
  307. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/data/visit/evaluator/OrderForVisitDataEvaluatorTest.java: Recompile with -Xlint:deprecation for details.
  308. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluatorTest.java: Some input files use unchecked or unsafe operations.
  309. [WARNING] /C:/Users/SHARIF/Tickets/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/dataset/definition/evaluator/CohortsWithVaryingParametersDataSetEvaluatorTest.java: Recompile with -Xlint:unchecked for details.
  310. [INFO]
  311. [INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-tests ---
  312. [INFO] Surefire report directory: C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target\surefire-reports
  313.  
  314. -------------------------------------------------------
  315. T E S T S
  316. -------------------------------------------------------
  317. Running org.openmrs.module.reporting.cohort.definition.evaluator.ProgramEnrollmentCohortDefinitionEvaluatorTest
  318. log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).
  319. log4j:WARN Please initialize the log4j system properly.
  320. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.279 sec
  321. Running org.openmrs.module.reporting.cohort.definition.evaluator.InverseCohortDefinitionEvaluatorTest
  322. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.157 sec
  323. Running org.openmrs.module.reporting.dataset.definition.evaluator.PersonDataSetEvaluatorTest
  324. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.872 sec
  325. Running org.openmrs.module.reporting.data.person.evaluator.GenderDataEvaluatorTest
  326. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.75 sec
  327. Running org.openmrs.module.reporting.query.visit.evaluator.ActiveVisitQueryEvaluatorTest
  328. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.17 sec
  329. Running org.openmrs.module.reporting.validator.BaseObsCohortDefinitionValidatorTest
  330. Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.095 sec
  331. Running org.openmrs.module.reporting.dataset.definition.evaluator.SimplePatientDataSetEvaluatorTest
  332. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.753 sec
  333. Running org.openmrs.module.reporting.data.converter.BirthdateToAgeConverterTest
  334. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.333 sec
  335. Running org.openmrs.module.reporting.cohort.definition.evaluator.CodedObsCohortDefinitionEvaluatorTest
  336. Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 1.893 sec
  337. Running org.openmrs.module.reporting.report.ReportRequestTest
  338. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.398 sec
  339. Running org.openmrs.module.reporting.query.obs.evaluator.SqlObsQueryEvaluatorTest
  340. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.164 sec
  341. Running org.openmrs.module.reporting.report.renderer.XlsReportRendererTest
  342. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.601 sec
  343. Running org.openmrs.module.reporting.data.converter.PropertyConverterTest
  344. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.554 sec
  345. Running org.openmrs.module.reporting.cohort.definition.evaluator.PersonAttributeCohortDefinitionEvaluatorTest
  346. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.596 sec
  347. Running org.openmrs.module.reporting.data.visit.evaluator.SqlVisitDataEvaluatorTest
  348. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.372 sec
  349. Running org.openmrs.module.reporting.report.service.MysqlReportServiceTest
  350. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.004 sec
  351. Running org.openmrs.module.reporting.query.encounter.evaluator.BasicEncounterQueryEvaluatorTest
  352. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.183 sec
  353. Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiPeriodIndicatorDataSetEvaluatorTest
  354. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.491 sec
  355. Running org.openmrs.module.reporting.data.obs.evaluator.ObsIdDataEvaluatorTest
  356. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.496 sec
  357. Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiParameterDataSetEvaluatorTest
  358. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.307 sec
  359. Running org.openmrs.module.reporting.data.converter.AgeRangeConverterTest
  360. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
  361. Running org.openmrs.module.reporting.dataset.definition.evaluator.EvaluatableDataSetEvaluatorTest
  362. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.318 sec
  363. Running org.openmrs.module.reporting.query.encounter.service.EncounterQueryServiceImplTest
  364. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.045 sec
  365. Running org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest
  366. ERROR - EvaluationProfiler.log(111) |2021-01-04 12:57:34,428| 202 2021-01-04 12:57:34.428 > ERROR EVALUATING_DEFINITION SqlDataSetDefinition[sqlQuery=select patient_id, patient_id from patient]: Failed to evaluate Invalid query specified. There are two columns named 'PATIENT_ID'
  367. org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate Invalid query specified. There are two columns named 'PATIENT_ID'
  368. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:87)
  369. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:36)
  370. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  371. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  372. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  373. at org.openmrs.module.reporting.dataset.definition.service.DataSetDefinitionServiceImpl.evaluate(DataSetDefinitionServiceImpl.java:41)
  374. at sun.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
  375. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  376. at java.lang.reflect.Method.invoke(Method.java:498)
  377. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  378. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  379. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  380. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  381. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  382. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  383. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  384. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  385. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  386. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  387. at com.sun.proxy.$Proxy37.evaluate(Unknown Source)
  388. at sun.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
  389. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  390. at java.lang.reflect.Method.invoke(Method.java:498)
  391. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  392. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  393. at com.sun.proxy.$Proxy125.evaluate(Unknown Source)
  394. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest.buildQuery_shouldThrowAnExceptionIfDuplicateColumnsExist(SqlDataSetEvaluatorTest.java:118)
  395. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  396. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  397. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  398. at java.lang.reflect.Method.invoke(Method.java:498)
  399. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  400. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  401. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  402. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  403. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  404. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  405. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  406. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  407. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  408. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  409. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  410. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  411. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  412. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  413. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  414. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  415. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  416. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  417. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  418. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  419. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  420. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  421. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  422. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  423. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  424. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  425. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  426. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  427. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  428. at java.lang.reflect.Method.invoke(Method.java:498)
  429. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  430. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  431. ERROR - EvaluationProfiler.log(111) |2021-01-04 12:57:35,781| 210 2021-01-04 12:57:35.781 > ERROR EVALUATING_DEFINITION SqlDataSetDefinition[sqlQuery=update person set gender='F']: Unable to retrieve columns for query
  432. java.lang.IllegalArgumentException: Unable to retrieve columns for query
  433. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.getColumns(SqlQueryBuilder.java:138)
  434. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.getColumns(EvaluationServiceImpl.java:36)
  435. at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source)
  436. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  437. at java.lang.reflect.Method.invoke(Method.java:498)
  438. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  439. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  440. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  441. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  442. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  443. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  444. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  445. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  446. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  447. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  448. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  449. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  450. at com.sun.proxy.$Proxy25.getColumns(Unknown Source)
  451. at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source)
  452. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  453. at java.lang.reflect.Method.invoke(Method.java:498)
  454. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  455. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  456. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  457. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  458. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  459. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  460. at com.sun.proxy.$Proxy118.getColumns(Unknown Source)
  461. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:80)
  462. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:36)
  463. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  464. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  465. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  466. at org.openmrs.module.reporting.dataset.definition.service.DataSetDefinitionServiceImpl.evaluate(DataSetDefinitionServiceImpl.java:41)
  467. at sun.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
  468. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  469. at java.lang.reflect.Method.invoke(Method.java:498)
  470. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  471. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  472. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  473. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  474. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  475. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  476. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  477. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  478. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  479. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  480. at com.sun.proxy.$Proxy37.evaluate(Unknown Source)
  481. at sun.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
  482. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  483. at java.lang.reflect.Method.invoke(Method.java:498)
  484. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  485. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  486. at com.sun.proxy.$Proxy125.evaluate(Unknown Source)
  487. at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest.evaluate_shouldProtectSQLQueryAgainstDatabaseModifications(SqlDataSetEvaluatorTest.java:111)
  488. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  489. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  490. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  491. at java.lang.reflect.Method.invoke(Method.java:498)
  492. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  493. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  494. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  495. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  496. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  497. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  498. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  499. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  500. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  501. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  502. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  503. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  504. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  505. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  506. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  507. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  508. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  509. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  510. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  511. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  512. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  513. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  514. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  515. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  516. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  517. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  518. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  519. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  520. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  521. at java.lang.reflect.Method.invoke(Method.java:498)
  522. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  523. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  524. Caused by: java.lang.NullPointerException
  525. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$1.execute(SqlQueryBuilder.java:121)
  526. at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
  527. at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
  528. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.getColumns(SqlQueryBuilder.java:113)
  529. ... 90 more
  530. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.919 sec
  531. Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterIdDataEvaluatorTest
  532. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.64 sec
  533. Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterWithCodedObsCohortDefinitionEvaluatorTest
  534. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.511 sec
  535. Running org.openmrs.module.reporting.cohort.definition.library.BuiltInCohortDefinitionLibraryTest
  536. Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.178 sec
  537. Running org.openmrs.module.reporting.report.service.ReportServiceTest
  538. Tests run: 24, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.871 sec
  539. Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluatorTest
  540. ERROR - EvaluationProfiler.log(111) |2021-01-04 12:57:50,782| 299 2021-01-04 12:57:50.782 > ERROR EVALUATING_DEFINITION EncounterProviderDataDefinition[encounterRole=null,singleProvider=false]: Failed to evaluate EncounterRole parameter must be of type EncounterRole
  541. org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate EncounterRole parameter must be of type EncounterRole
  542. at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluator.evaluate(EncounterProviderDataEvaluator.java:48)
  543. at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluator.evaluate(EncounterProviderDataEvaluator.java:33)
  544. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  545. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  546. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  547. at org.openmrs.module.reporting.data.encounter.service.EncounterDataServiceImpl.evaluate(EncounterDataServiceImpl.java:38)
  548. at sun.reflect.GeneratedMethodAccessor583.invoke(Unknown Source)
  549. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  550. at java.lang.reflect.Method.invoke(Method.java:498)
  551. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  552. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  553. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  554. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  555. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  556. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  557. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  558. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  559. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  560. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  561. at com.sun.proxy.$Proxy30.evaluate(Unknown Source)
  562. at sun.reflect.GeneratedMethodAccessor583.invoke(Unknown Source)
  563. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  564. at java.lang.reflect.Method.invoke(Method.java:498)
  565. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  566. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  567. at com.sun.proxy.$Proxy121.evaluate(Unknown Source)
  568. at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluatorTest.shouldFailIfEncounterRoleParameterSetToAnotherType(EncounterProviderDataEvaluatorTest.java:199)
  569. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  570. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  571. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  572. at java.lang.reflect.Method.invoke(Method.java:498)
  573. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  574. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  575. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  576. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  577. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  578. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  579. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  580. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  581. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  582. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  583. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  584. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  585. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  586. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  587. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  588. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  589. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  590. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  591. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  592. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  593. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  594. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  595. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  596. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  597. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  598. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  599. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  600. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  601. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  602. at java.lang.reflect.Method.invoke(Method.java:498)
  603. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  604. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  605. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.248 sec
  606. Running org.openmrs.module.reporting.definition.converter.SqlCohortDefinitionConverterTest
  607. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.394 sec
  608. Running org.openmrs.module.reporting.data.converter.BooleanConverterTest
  609. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec
  610. Running org.openmrs.module.reporting.data.converter.AgeConverterTest
  611. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.023 sec
  612. Running org.openmrs.module.reporting.data.encounter.evaluator.EncountersForPatientDataEvaluatorTest
  613. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.362 sec
  614. Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientIdentifierCohortDefinitionEvaluatorTest
  615. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.332 sec
  616. Running org.openmrs.module.reporting.evaluation.EvaluationProfilerTest
  617. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,588| 341 2021-01-04 12:57:53.588 > BEFORE EVALUATION_STARTED Super User (admin)
  618. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,589| 341 2021-01-04 12:57:53.589 > BEFORE EVALUATING_DEFINITION CohortIndicator[type=COUNT,cohortDefinition=Male]
  619. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,595| 341 2021-01-04 12:57:53.595 >> BEFORE EVALUATING_DEFINITION GenderCohortDefinition[males]
  620. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,598| 341 2021-01-04 12:57:53.598 >> AFTER EVALUATING_DEFINITION 3(ms) 3(ms) GenderCohortDefinition[males]
  621. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,599| 341 2021-01-04 12:57:53.599 > AFTER EVALUATING_DEFINITION 10(ms) 11(ms) CohortIndicator[type=COUNT,cohortDefinition=Male]
  622. TRACE - EvaluationProfiler.log(114) |2021-01-04 12:57:53,600| 341 2021-01-04 12:57:53.600 > AFTER EVALUATION_COMPLETED 11(ms) 12(ms) 12(ms)
  623. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.255 sec
  624. Running org.openmrs.module.reporting.report.renderer.CohortDetailReportRendererTest
  625. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.086 sec
  626. Running org.openmrs.module.reporting.data.person.service.PersonDataServiceImplTest
  627. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.651 sec
  628. Running org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilderTest
  629. Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.427 sec
  630. Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredPatientDataDefinitionLibraryTest
  631. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.019 sec
  632. Running org.openmrs.module.reporting.validator.LogicCohortDefinitionValidatorTest
  633. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.946 sec
  634. Running org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest
  635. ERROR - EvaluationProfiler.log(111) |2021-01-04 12:58:04,564| 415 2021-01-04 12:58:04.563 > ERROR EXECUTING_QUERY update person set gender='F' : error executing work
  636. org.hibernate.exception.GenericJDBCException: error executing work
  637. at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
  638. at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
  639. at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  640. at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
  641. at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
  642. at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
  643. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:152)
  644. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:45)
  645. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:55)
  646. at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
  647. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  648. at java.lang.reflect.Method.invoke(Method.java:498)
  649. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  650. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  651. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  652. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  653. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  654. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  655. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  656. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  657. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  658. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  659. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  660. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  661. at com.sun.proxy.$Proxy25.evaluateToList(Unknown Source)
  662. at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
  663. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  664. at java.lang.reflect.Method.invoke(Method.java:498)
  665. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  666. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  667. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  668. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  669. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  670. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  671. at com.sun.proxy.$Proxy118.evaluateToList(Unknown Source)
  672. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:61)
  673. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:28)
  674. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  675. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  676. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:54)
  677. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:24)
  678. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  679. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluate(CohortDefinitionServiceImpl.java:38)
  680. at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
  681. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  682. at java.lang.reflect.Method.invoke(Method.java:498)
  683. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  684. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  685. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  686. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  687. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  688. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  689. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  690. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  691. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  692. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  693. at com.sun.proxy.$Proxy36.evaluate(Unknown Source)
  694. at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
  695. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  696. at java.lang.reflect.Method.invoke(Method.java:498)
  697. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  698. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  699. at com.sun.proxy.$Proxy119.evaluate(Unknown Source)
  700. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest.shouldProtectSqlQueryAgainstDatabaseModifications(SqlCohortDefinitionEvaluatorTest.java:308)
  701. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  702. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  703. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  704. at java.lang.reflect.Method.invoke(Method.java:498)
  705. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  706. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  707. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  708. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  709. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  710. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  711. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  712. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  713. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  714. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  715. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  716. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  717. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  718. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  719. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  720. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  721. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  722. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  723. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  724. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  725. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  726. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  727. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  728. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  729. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  730. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  731. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  732. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  733. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  734. at java.lang.reflect.Method.invoke(Method.java:498)
  735. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  736. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  737. Caused by: org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:
  738. update person set gender='F' [90002-173]
  739. at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
  740. at org.h2.message.DbException.get(DbException.java:171)
  741. at org.h2.message.DbException.get(DbException.java:148)
  742. at org.h2.message.DbException.get(DbException.java:137)
  743. at org.h2.command.Prepared.query(Prepared.java:211)
  744. at org.h2.command.CommandContainer.query(CommandContainer.java:91)
  745. at org.h2.command.Command.executeQuery(Command.java:195)
  746. at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)
  747. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
  748. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$2.execute(SqlQueryBuilder.java:159)
  749. at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
  750. ... 95 more
  751. ERROR - EvaluationProfiler.log(111) |2021-01-04 12:58:04,569| 415 2021-01-04 12:58:04.569 > ERROR EVALUATING_DEFINITION SqlCohortDefinition[query=update person set gender='F']: Unable to execute query
  752. java.lang.IllegalArgumentException: Unable to execute query
  753. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:184)
  754. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:45)
  755. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:55)
  756. at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
  757. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  758. at java.lang.reflect.Method.invoke(Method.java:498)
  759. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  760. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  761. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  762. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  763. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  764. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  765. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  766. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  767. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  768. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  769. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  770. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  771. at com.sun.proxy.$Proxy25.evaluateToList(Unknown Source)
  772. at sun.reflect.GeneratedMethodAccessor241.invoke(Unknown Source)
  773. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  774. at java.lang.reflect.Method.invoke(Method.java:498)
  775. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  776. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  777. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  778. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  779. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  780. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  781. at com.sun.proxy.$Proxy118.evaluateToList(Unknown Source)
  782. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:61)
  783. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:28)
  784. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  785. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  786. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:54)
  787. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:24)
  788. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  789. at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluate(CohortDefinitionServiceImpl.java:38)
  790. at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
  791. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  792. at java.lang.reflect.Method.invoke(Method.java:498)
  793. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  794. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  795. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  796. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  797. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  798. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  799. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  800. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  801. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  802. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  803. at com.sun.proxy.$Proxy36.evaluate(Unknown Source)
  804. at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
  805. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  806. at java.lang.reflect.Method.invoke(Method.java:498)
  807. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  808. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  809. at com.sun.proxy.$Proxy119.evaluate(Unknown Source)
  810. at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest.shouldProtectSqlQueryAgainstDatabaseModifications(SqlCohortDefinitionEvaluatorTest.java:308)
  811. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  812. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  813. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  814. at java.lang.reflect.Method.invoke(Method.java:498)
  815. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  816. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  817. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  818. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  819. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  820. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  821. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  822. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  823. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  824. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  825. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  826. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  827. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  828. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  829. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  830. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  831. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  832. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  833. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  834. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  835. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  836. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  837. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  838. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  839. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  840. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  841. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  842. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  843. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  844. at java.lang.reflect.Method.invoke(Method.java:498)
  845. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  846. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  847. Caused by: org.hibernate.exception.GenericJDBCException: error executing work
  848. at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
  849. at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
  850. at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
  851. at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
  852. at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
  853. at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
  854. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:152)
  855. ... 93 more
  856. Caused by: org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:
  857. update person set gender='F' [90002-173]
  858. at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
  859. at org.h2.message.DbException.get(DbException.java:171)
  860. at org.h2.message.DbException.get(DbException.java:148)
  861. at org.h2.message.DbException.get(DbException.java:137)
  862. at org.h2.command.Prepared.query(Prepared.java:211)
  863. at org.h2.command.CommandContainer.query(CommandContainer.java:91)
  864. at org.h2.command.Command.executeQuery(Command.java:195)
  865. at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)
  866. at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
  867. at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$2.execute(SqlQueryBuilder.java:159)
  868. at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
  869. ... 95 more
  870. Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.612 sec
  871. Running org.openmrs.module.reporting.evaluation.service.EvaluationServiceTest
  872. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.199 sec
  873. Running org.openmrs.module.reporting.data.obs.evaluator.EncounterToObsDataEvaluatorTest
  874. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.257 sec
  875. Running org.openmrs.module.reporting.query.encounter.evaluator.MappedParametersEncounterQueryEvaluatorTest
  876. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.49 sec
  877. Running org.openmrs.module.reporting.validator.InStateCohortDefinitionValidatorTest
  878. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.234 sec
  879. Running org.openmrs.module.reporting.common.ReflectionUtilTest
  880. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.116 sec
  881. Running org.openmrs.module.reporting.template.HandlebarsHelpersTest
  882. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.627 sec
  883. Running org.openmrs.module.reporting.data.visit.evaluator.VisitIdDataEvaluatorTest
  884. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.965 sec
  885. Running org.openmrs.module.reporting.cohort.definition.evaluator.ConditionalParameterCohortDefinitionEvaluatorTest
  886. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.144 sec
  887. Running org.openmrs.module.reporting.data.patient.evaluator.CurrentPatientStateDataEvaluatorTest
  888. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.793 sec
  889. Running org.openmrs.module.reporting.data.encounter.evaluator.ObsOnSameDateEncounterDataEvaluatorTest
  890. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.597 sec
  891. Running org.openmrs.module.reporting.cohort.query.service.CohortQueryServiceTest
  892. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.388 sec
  893. Running org.openmrs.module.reporting.data.person.evaluator.ObsForPersonDataEvaluatorTest
  894. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.197 sec
  895. Running org.openmrs.module.reporting.validator.StaticCohortDefinitionValidatorTest
  896. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.176 sec
  897. Running org.openmrs.module.reporting.dataset.definition.evaluator.EncounterDataSetEvaluatorTest
  898. ENCOUNTER ID EMR ID BIRTHDATE ENCOUNTER DATE Age At Start Age At End
  899. ------------ ------ ------------ -------------- ------------ ----------
  900. 3 7 ~25/Aug/1976 01/Aug/2008 33 34
  901. 4 7 ~25/Aug/1976 15/Aug/2008 33 34
  902. 5 7 ~25/Aug/1976 19/Aug/2008 33 34
  903. 6 20 08/Feb/1925 19/Aug/2009 80 80
  904. 7 21 ~08/Jun/1959 19/Aug/2009 50 51
  905. 8 21 ~08/Jun/1959 19/Sep/2009 50 51
  906. 9 22 08/Jul/1997 19/Sep/2009 12 13
  907. 10 22 08/Jul/1997 19/Oct/2009 12 13
  908. 11 23 08/Nov/2000 19/Aug/2009 9 10
  909. 12 24 08/Dec/2006 19/Sep/2009 3 4
  910. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.518 sec
  911. Running org.openmrs.module.reporting.data.person.evaluator.BirthdateDataEvaluatorTest
  912. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.484 sec
  913. Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterCohortDefinitionEvaluatorTest
  914. Tests run: 9, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 5.233 sec
  915. Running org.openmrs.module.reporting.cohort.definition.evaluator.GenderCohortDefinitionEvaluatorTest
  916. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.774 sec
  917. Running org.openmrs.module.reporting.data.person.evaluator.PreferredAddressDataEvaluatorTest
  918. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.44 sec
  919. Running org.openmrs.module.reporting.data.converter.BirthdateConverterTest
  920. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
  921. Running org.openmrs.module.reporting.data.patient.evaluator.ProgramStatesForPatientDataEvaluatorTest
  922. Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.72 sec
  923. Running org.openmrs.module.reporting.cohort.definition.evaluator.AgeCohortDefinitionEvaluatorTest
  924. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.856 sec
  925. Running org.openmrs.module.reporting.data.visit.library.BuiltInVisitDataLibraryTest
  926. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.258 sec
  927. Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterLocationDataEvaluatorTest
  928. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.494 sec
  929. Running org.openmrs.module.reporting.data.obs.evaluator.PersonToObsEvaluatorTest
  930. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.005 sec
  931. Running org.openmrs.module.reporting.cohort.definition.evaluator.NumericObsCohortDefinitionEvaluatorTest
  932. Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.127 sec
  933. Running org.openmrs.module.reporting.common.DateRangeTest
  934. Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec
  935. Running org.openmrs.module.reporting.indicator.QueryCountIndicatorEvaluatorTest
  936. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.004 sec
  937. Running org.openmrs.module.reporting.data.encounter.evaluator.ObsForEncounterEvaluatorTest
  938. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.435 sec
  939. Running org.openmrs.module.reporting.common.DateUtilTest
  940. Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.453 sec
  941. Running org.openmrs.module.reporting.data.patient.evaluator.DrugOrdersForPatientDataEvaluatorTest
  942. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.701 sec
  943. Running org.openmrs.module.reporting.query.encounter.evaluator.MappedParametersObsQueryEvaluatorTest
  944. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.548 sec
  945. Running org.openmrs.module.reporting.serializer.ReportingSerializerTest
  946. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.354 sec
  947. Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortCrossTabDataSetEvaluatorTest
  948. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.32 sec
  949. Running org.openmrs.module.reporting.query.person.service.PersonQueryServiceImplTest
  950. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.661 sec
  951. Running org.openmrs.module.reporting.dataset.definition.evaluator.MySqlDataSetEvaluatorTest
  952. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.078 sec
  953. Running org.openmrs.module.reporting.report.renderer.TextTemplateRendererTest
  954. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.663 sec
  955. Running org.openmrs.module.reporting.validator.InverseCohortDefinitionValidatorTest
  956. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.56 sec
  957. Running org.openmrs.module.reporting.validator.PatientStateCohortDefinitionValidatorTest
  958. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.531 sec
  959. Running org.openmrs.module.reporting.query.encounter.evaluator.ObsForEncounterQueryEvaluatorTest
  960. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.492 sec
  961. Running org.openmrs.module.reporting.report.service.db.PropertiesTypeTest
  962. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
  963. Running org.openmrs.module.reporting.data.encounter.service.EncounterDataServiceImplTest
  964. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.557 sec
  965. Running org.openmrs.module.reporting.cohort.definition.evaluator.MappedParametersCohortDefinitionEvaluatorTest
  966. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.38 sec
  967. Running org.openmrs.module.reporting.data.encounter.evaluator.ConvertedEncounterDataEvaluatorTest
  968. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.336 sec
  969. Running org.openmrs.module.reporting.data.converter.ListConverterTest
  970. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
  971. Running org.openmrs.module.reporting.data.patient.evaluator.PatientIdentifierDataEvaluatorTest
  972. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.437 sec
  973. Running org.openmrs.module.reporting.data.converter.ObsFromObsGroupConverterTest
  974. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.367 sec
  975. Running org.openmrs.module.reporting.common.AgeTest
  976. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
  977. Running org.openmrs.module.reporting.config.ReportLoaderIntegrationTest
  978. Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.302 sec <<< FAILURE!
  979. Running org.openmrs.module.reporting.evaluation.CachingCohortDefinitionTest
  980. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.293 sec
  981. Running org.openmrs.module.reporting.common.TestUtil
  982. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.024 sec
  983. Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredVisitDataDefinitionLibraryTest
  984. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.567 sec
  985. Running org.openmrs.module.reporting.query.encounter.evaluator.CompositionEncounterQueryEvaluatorTest
  986. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.279 sec
  987. Running org.openmrs.module.reporting.common.ObjectUtilTest
  988. Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 5.472 sec
  989. Running org.openmrs.module.reporting.data.person.evaluator.AgeDataEvaluatorTest
  990. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.672 sec
  991. Running org.openmrs.module.reporting.evaluation.querybuilder.HqlQueryBuilderTest
  992. Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.623 sec
  993. Running org.openmrs.module.reporting.data.visit.evaluator.ObsForVisitDataEvaluatorTest
  994. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.598 sec
  995. Running org.openmrs.module.reporting.query.encounter.evaluator.MostRecentEncounterForPatientQueryEvaluatorTest
  996. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
  997. Running org.openmrs.module.reporting.cohort.definition.evaluator.OptionalParameterCohortDefinitionEvaluatorTest
  998. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.263 sec
  999. Running org.openmrs.module.reporting.report.util.SqlUtilsTest
  1000. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
  1001. Running org.openmrs.module.reporting.validator.InProgramCohortDefinitionValidatorTest
  1002. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.122 sec
  1003. Running org.openmrs.module.reporting.data.obs.evaluator.PatientToObsDataEvaluatorTest
  1004. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.127 sec
  1005. Running org.openmrs.module.reporting.definition.library.BaseDefinitionLibraryTest
  1006. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.047 sec
  1007. Running org.openmrs.module.reporting.data.person.evaluator.PersonAttributeDataEvaluatorTest
  1008. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.564 sec
  1009. Running org.openmrs.module.reporting.data.person.evaluator.PreferredNameDataEvaluatorTest
  1010. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.325 sec
  1011. Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredCohortDefinitionLibraryTest
  1012. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.57 sec
  1013. Running org.openmrs.module.reporting.evaluation.parameter.ParameterUtilTest
  1014. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.339 sec
  1015. Running org.openmrs.module.reporting.data.encounter.library.BuiltInEncounterDataLibraryTest
  1016. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.599 sec
  1017. Running org.openmrs.module.reporting.cohort.definition.evaluator.ScriptedCohortDefinitionEvaluatorTest
  1018. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.797 sec
  1019. Running org.openmrs.module.reporting.data.converter.PersonNameConverterTest
  1020. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.301 sec
  1021. Running org.openmrs.module.reporting.definition.library.AllDefinitionLibrariesComponentTest
  1022. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.54 sec
  1023. Running org.openmrs.module.reporting.data.person.evaluator.VitalStatusDataEvaluatorTest
  1024. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.269 sec
  1025. Running org.openmrs.module.reporting.cohort.definition.evaluator.TextObsCohortDefinitionEvaluatorTest
  1026. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.782 sec
  1027. Running org.openmrs.module.reporting.dataset.definition.evaluator.PatientDataSetEvaluatorTest
  1028. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.488 sec
  1029. Running org.openmrs.module.reporting.data.encounter.evaluator.AuditInfoEncounterDataEvaluatorTest
  1030. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.782 sec
  1031. Running org.openmrs.module.reporting.data.patient.evaluator.LogicDataEvaluatorTest
  1032. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.01 sec
  1033. Running org.openmrs.module.reporting.data.visit.evaluator.PersonToVisitDataEvaluatorTest
  1034. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.072 sec
  1035. Running org.openmrs.module.reporting.cohort.definition.evaluator.DateObsCohortDefinitionEvaluatorTest
  1036. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.914 sec
  1037. Running org.openmrs.module.reporting.cohort.definition.evaluator.VisitCohortDefinitionEvaluatorTest
  1038. Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.433 sec
  1039. Running org.openmrs.module.reporting.data.encounter.evaluator.AgeAtEncounterDataEvaluatorTest
  1040. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.42 sec
  1041. Running org.openmrs.module.reporting.indicator.CohortIndicatorDataSetEvaluatorTest
  1042. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.375 sec
  1043. Running org.openmrs.module.reporting.data.person.evaluator.ObsActiveListPersonDataEvaluatorTest
  1044. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.369 sec
  1045. Running org.openmrs.module.reporting.common.ExcelUtilTest
  1046. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 14.743 sec
  1047. Running org.openmrs.module.reporting.data.obs.evaluator.GroupMemberObsDataEvaluatorTest
  1048. Tests run: 5, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 1.003 sec
  1049. Running org.openmrs.module.reporting.query.visit.evaluator.BasicVisitQueryEvaluatorTest
  1050. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.026 sec
  1051. Running org.openmrs.module.reporting.common.ExcelBuilderTest
  1052. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.564 sec
  1053. Running org.openmrs.module.reporting.query.obs.evaluator.AllObsQueryEvaluatorTest
  1054. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.694 sec
  1055. Running org.openmrs.module.reporting.cohort.definition.evaluator.AllPatientsCohortDefinitionEvaluatorTest
  1056. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.267 sec
  1057. Running org.openmrs.module.reporting.data.encounter.evaluator.SimultaneousEncountersDataEvaluatorTest
  1058. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.618 sec
  1059. Running org.openmrs.module.reporting.validator.ProgramEnrollmentCohortDefinitionValidatorTest
  1060. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.509 sec
  1061. Running org.openmrs.module.reporting.evaluation.EvaluationContextTest
  1062. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.989 sec
  1063. Running org.openmrs.module.reporting.data.patient.evaluator.PreferredIdentifierDataEvaluatorTest
  1064. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.757 sec
  1065. Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterVisitDataEvaluatorTest
  1066. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.816 sec
  1067. Running org.openmrs.module.reporting.query.obs.service.ObsQueryServiceImplTest
  1068. Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.376 sec
  1069. Running org.openmrs.module.reporting.data.patient.library.BuiltInPatientDataLibraryTest
  1070. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.131 sec
  1071. Running org.openmrs.module.reporting.indicator.util.IndicatorUtilTest
  1072. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 sec
  1073. Running org.openmrs.module.reporting.cohort.definition.evaluator.EvaluatableCohortDefinitionEvaluatorTest
  1074. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.342 sec
  1075. Running org.openmrs.module.reporting.data.patient.evaluator.ConvertedPatientDataEvaluatorTest
  1076. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.598 sec
  1077. Running org.openmrs.module.reporting.cohort.definition.evaluator.CompositionCohortDefinitionEvaluatorTest
  1078. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.295 sec
  1079. Running org.openmrs.module.reporting.data.converter.MapConverterTest
  1080. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 sec
  1081. Running org.openmrs.module.reporting.data.patient.evaluator.EncountersForPatientDataEvaluatorTest
  1082. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.422 sec
  1083. Running org.openmrs.module.reporting.indicator.SqlIndicatorTest
  1084. ERROR - EvaluationProfiler.log(111) |2021-01-04 13:00:35,956| 1336 2021-01-04 13:00:35.956 > ERROR EVALUATING_DEFINITION SqlIndicator[sql=SELECT distinct(.222) as res, 33 as res2 from patient]: Failed to evaluate sql because:
  1085. Unable to evaluate to a single value. Exactly one column must be defined.
  1086. org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate sql because:
  1087. Unable to evaluate to a single value. Exactly one column must be defined.
  1088. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:57)
  1089. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:41)
  1090. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:28)
  1091. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  1092. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  1093. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  1094. at org.openmrs.module.reporting.indicator.service.IndicatorServiceImpl.evaluate(IndicatorServiceImpl.java:41)
  1095. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1096. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1097. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1098. at java.lang.reflect.Method.invoke(Method.java:498)
  1099. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1100. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1101. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1102. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  1103. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1104. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1105. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1106. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1107. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1108. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1109. at com.sun.proxy.$Proxy38.evaluate(Unknown Source)
  1110. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1111. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1112. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1113. at java.lang.reflect.Method.invoke(Method.java:498)
  1114. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1115. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  1116. at com.sun.proxy.$Proxy136.evaluate(Unknown Source)
  1117. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:94)
  1118. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:103)
  1119. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:114)
  1120. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:107)
  1121. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.sqlIndicator_shouldNotAllowQueriesThatReturnMoreThanOneColumn(SqlIndicatorTest.java:85)
  1122. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1123. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1124. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1125. at java.lang.reflect.Method.invoke(Method.java:498)
  1126. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  1127. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  1128. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  1129. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  1130. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  1131. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  1132. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  1133. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1134. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  1135. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  1136. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  1137. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  1138. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  1139. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  1140. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  1141. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  1142. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  1143. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  1144. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1145. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  1146. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  1147. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  1148. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  1149. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  1150. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  1151. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  1152. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1153. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1154. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1155. at java.lang.reflect.Method.invoke(Method.java:498)
  1156. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  1157. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  1158. Caused by: java.lang.IllegalArgumentException: Unable to evaluate to a single value. Exactly one column must be defined.
  1159. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToObject(EvaluationServiceImpl.java:90)
  1160. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1161. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1162. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1163. at java.lang.reflect.Method.invoke(Method.java:498)
  1164. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1165. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1166. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1167. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  1168. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1169. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  1170. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1171. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1172. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1173. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1174. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1175. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1176. at com.sun.proxy.$Proxy25.evaluateToObject(Unknown Source)
  1177. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1178. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1179. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1180. at java.lang.reflect.Method.invoke(Method.java:498)
  1181. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1182. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1183. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1184. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  1185. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1186. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1187. at com.sun.proxy.$Proxy118.evaluateToObject(Unknown Source)
  1188. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:54)
  1189. ... 69 more
  1190. ERROR - EvaluationProfiler.log(111) |2021-01-04 13:00:36,947| 1344 2021-01-04 13:00:36.947 > ERROR EVALUATING_DEFINITION SqlIndicator[sql=SELECT person_id from person]: Failed to evaluate sql because:
  1191. Unable to evaluate to a single value. Exactly one row must be returned by query.
  1192. org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate sql because:
  1193. Unable to evaluate to a single value. Exactly one row must be returned by query.
  1194. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:57)
  1195. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:41)
  1196. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:28)
  1197. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  1198. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  1199. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  1200. at org.openmrs.module.reporting.indicator.service.IndicatorServiceImpl.evaluate(IndicatorServiceImpl.java:41)
  1201. at sun.reflect.GeneratedMethodAccessor1054.invoke(Unknown Source)
  1202. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1203. at java.lang.reflect.Method.invoke(Method.java:498)
  1204. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1205. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1206. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1207. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  1208. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1209. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1210. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1211. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1212. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1213. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1214. at com.sun.proxy.$Proxy38.evaluate(Unknown Source)
  1215. at sun.reflect.GeneratedMethodAccessor1054.invoke(Unknown Source)
  1216. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1217. at java.lang.reflect.Method.invoke(Method.java:498)
  1218. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1219. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  1220. at com.sun.proxy.$Proxy136.evaluate(Unknown Source)
  1221. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:94)
  1222. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:103)
  1223. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:114)
  1224. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:107)
  1225. at org.openmrs.module.reporting.indicator.SqlIndicatorTest.sqlIndicator_shouldNotAllowQueriesThatReturnMoreThanOneRow(SqlIndicatorTest.java:90)
  1226. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1227. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1228. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1229. at java.lang.reflect.Method.invoke(Method.java:498)
  1230. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  1231. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  1232. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  1233. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  1234. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  1235. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  1236. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  1237. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1238. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  1239. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  1240. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  1241. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  1242. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  1243. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  1244. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  1245. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  1246. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  1247. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  1248. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1249. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  1250. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  1251. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  1252. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  1253. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  1254. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  1255. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  1256. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1257. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1258. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1259. at java.lang.reflect.Method.invoke(Method.java:498)
  1260. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  1261. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  1262. Caused by: java.lang.IllegalArgumentException: Unable to evaluate to a single value. Exactly one row must be returned by query.
  1263. at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToObject(EvaluationServiceImpl.java:86)
  1264. at sun.reflect.GeneratedMethodAccessor1057.invoke(Unknown Source)
  1265. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1266. at java.lang.reflect.Method.invoke(Method.java:498)
  1267. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1268. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1269. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1270. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  1271. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1272. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  1273. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1274. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1275. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1276. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1277. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1278. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1279. at com.sun.proxy.$Proxy25.evaluateToObject(Unknown Source)
  1280. at sun.reflect.GeneratedMethodAccessor1057.invoke(Unknown Source)
  1281. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1282. at java.lang.reflect.Method.invoke(Method.java:498)
  1283. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1284. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1285. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1286. at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
  1287. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1288. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1289. at com.sun.proxy.$Proxy118.evaluateToObject(Unknown Source)
  1290. at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:54)
  1291. ... 67 more
  1292. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.423 sec
  1293. Running org.openmrs.module.reporting.report.renderer.ExcelTemplateRendererTest
  1294. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.187 sec
  1295. Running org.openmrs.module.reporting.cohort.CohortsTest
  1296. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.502 sec
  1297. Running org.openmrs.module.reporting.data.converter.StringConverterTest
  1298. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
  1299. Running org.openmrs.module.reporting.dataset.definition.evaluator.RepeatPerTimePeriodDataSetEvaluatorTest
  1300. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.587 sec
  1301. Running org.openmrs.module.reporting.data.JoinDataDefinitionTest
  1302. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
  1303. Running org.openmrs.module.reporting.query.obs.evaluator.BasicObsQueryEvaluatorTest
  1304. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.412 sec
  1305. Running org.openmrs.module.reporting.query.person.evaluator.PatientPersonQueryEvaluatorTest
  1306. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.385 sec
  1307. Running org.openmrs.module.reporting.config.ReportLoaderTest
  1308. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.071 sec
  1309. Running org.openmrs.module.reporting.data.patient.evaluator.ScriptedCompositionPatientDataEvaluatorTest
  1310. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.209 sec
  1311. Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredEncounterDataDefinitionLibraryTest
  1312. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.493 sec
  1313. Running org.openmrs.module.reporting.data.encounter.evaluator.PersonToEncounterDataEvaluatorTest
  1314. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.93 sec
  1315. Running org.openmrs.module.reporting.data.visit.evaluator.PatientToVisitDataEvaluatorTest
  1316. {1=102, 4=12345K}
  1317. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.96 sec
  1318. Running org.openmrs.module.reporting.calculation.PatientDataCalculationBehaviorTest
  1319. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.004 sec
  1320. Running org.openmrs.module.reporting.cohort.definition.evaluator.InProgramCohortDefinitionEvaluatorTest
  1321. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.337 sec
  1322. Running org.openmrs.module.reporting.validator.CompositionCohortDefinitionValidatorTest
  1323. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.943 sec
  1324. Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortIndicatorDataSetEvaluatorTest
  1325. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.33 sec
  1326. Running org.openmrs.module.reporting.query.encounter.evaluator.AuditEncounterQueryEvaluatorTest
  1327. Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.517 sec
  1328. Running org.openmrs.module.reporting.definition.service.DefinitionServiceTest
  1329. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.355 sec
  1330. Running org.openmrs.module.reporting.indicator.aggregation.AggregationTest
  1331. Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
  1332. Running org.openmrs.module.reporting.data.person.evaluator.ConvertedPersonDataEvaluatorTest
  1333. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.34 sec
  1334. Running org.openmrs.module.reporting.query.encounter.evaluator.SqlEncounterQueryEvaluatorTest
  1335. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.851 sec
  1336. Running org.openmrs.module.reporting.report.renderer.CsvReportRendererTest
  1337. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.33 sec
  1338. Running org.openmrs.module.reporting.dataset.definition.evaluator.LogicDataSetEvaluatorTest
  1339. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.003 sec
  1340. Running org.openmrs.module.reporting.dataset.definition.evaluator.VisitDataSetEvaluatorTest
  1341. VISIT ID EMR ID BIRTHDATE
  1342. -------- ------ -----------
  1343. 1 2 08/Apr/1975
  1344. 2 2 08/Apr/1975
  1345. 3 2 08/Apr/1975
  1346. 4 6 27/May/2007
  1347. 5 6 27/May/2007
  1348. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.34 sec
  1349. Running org.openmrs.module.reporting.cohort.definition.evaluator.BirthAndDeathCohortDefinitionEvaluatorTest
  1350. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.892 sec
  1351. Running org.openmrs.module.reporting.data.person.evaluator.PersonIdDataEvaluatorTest
  1352. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.335 sec
  1353. Running org.openmrs.module.reporting.data.encounter.evaluator.SqlEncounterDataEvaluatorTest
  1354. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.261 sec
  1355. Running org.openmrs.module.reporting.data.converter.PersonAddressConverterTest
  1356. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.493 sec
  1357. Running org.openmrs.module.reporting.common.DelimitedKeyComparatorTest
  1358. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
  1359. Running org.openmrs.module.reporting.data.converter.AttributeValueConverterTest
  1360. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.509 sec
  1361. Running org.openmrs.module.reporting.data.obs.evaluator.ConvertedObsDataEvaluatorTest
  1362. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.499 sec
  1363. Running org.openmrs.module.reporting.query.person.evaluator.SqlPersonQueryEvaluatorTest
  1364. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.433 sec
  1365. Running org.openmrs.module.reporting.query.person.evaluator.AllPersonQueryEvaluatorTest
  1366. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.497 sec
  1367. Running org.openmrs.module.reporting.data.person.evaluator.AgeAtDateOfOtherDataEvaluatorTest
  1368. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.409 sec
  1369. Running org.openmrs.module.reporting.dataset.definition.evaluator.SqlFileDataSetEvaluatorTest
  1370. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.414 sec
  1371. Running org.openmrs.module.reporting.indicator.PeriodIndicatorReportTest
  1372. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.684 sec
  1373. Running org.openmrs.module.reporting.report.renderer.DelimitedTextReportRendererTest
  1374. Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.448 sec
  1375. Running org.openmrs.module.reporting.data.patient.evaluator.PatientObjectDataEvaluatorTest
  1376. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.789 sec
  1377. Running org.openmrs.module.reporting.data.patient.evaluator.TestPatientCalculation
  1378. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.027 sec
  1379. Running org.openmrs.module.reporting.validator.SqlCohortDefinitionValidatorTest
  1380. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.741 sec
  1381. Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientStateCohortDefinitionEvaluatorTest
  1382. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.178 sec
  1383. Running org.openmrs.module.reporting.data.converter.NullValueConverterTest
  1384. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.161 sec
  1385. Running org.openmrs.module.reporting.query.encounter.evaluator.ConditionalParameterEncounterQueryEvaluatorTest
  1386. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.286 sec
  1387. Running org.openmrs.module.reporting.report.service.TestReportProcessor
  1388. Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.003 sec
  1389. Running org.openmrs.module.reporting.common.FractionTest
  1390. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 sec
  1391. Running org.openmrs.module.reporting.report.renderer.ReportDesignRendererTest
  1392. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.459 sec
  1393. Running org.openmrs.module.reporting.data.patient.evaluator.ProgramEnrollmentsForPatientDataEvaluatorTest
  1394. Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.296 sec
  1395. Running org.openmrs.module.reporting.data.visit.evaluator.OrderForVisitDataEvaluatorTest
  1396. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.134 sec
  1397. Running org.openmrs.module.reporting.report.util.SqlScriptParserTest
  1398. Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.027 sec
  1399. Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredDataSetDefinitionLibraryTest
  1400. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.654 sec
  1401. Running org.openmrs.module.reporting.cohort.definition.evaluator.PresenceOrAbsenceCohortDefinitionEvaluatorTest
  1402. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.948 sec
  1403. Running org.openmrs.module.reporting.report.definition.service.ReportDefinitionServiceImplTest
  1404. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.924 sec
  1405. Running org.openmrs.module.reporting.data.converter.ObsValueTextAsCodedConverterTest
  1406. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.599 sec
  1407. Running org.openmrs.module.reporting.cohort.definition.service.BaseCohortDefinitionServiceTest
  1408. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
  1409. Running org.openmrs.module.reporting.cohort.definition.evaluator.InStateCohortDefinitionEvaluatorTest
  1410. Cohort: Cohort id=null size=2
  1411. Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.272 sec
  1412. Running org.openmrs.module.reporting.data.patient.evaluator.DefinitionLibraryPatientDataEvaluatorTest
  1413. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.981 sec
  1414. Running org.openmrs.module.reporting.cohort.definition.evaluator.DefinitionLibraryCohortDefinitionEvaluatorTest
  1415. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.808 sec
  1416. Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortsWithVaryingParametersDataSetEvaluatorTest
  1417. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.328 sec
  1418. Running org.openmrs.module.reporting.dataset.definition.evaluator.ObsDataSetEvaluatorTest
  1419. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.414 sec
  1420. Running org.openmrs.module.reporting.data.patient.evaluator.SqlPatientDataEvaluatorTest
  1421. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.413 sec
  1422. Running org.openmrs.module.reporting.data.converter.PrivilegedDataConverterTest
  1423. SLF4J: Class path contains multiple SLF4J bindings.
  1424. SLF4J: Found binding in [jar:file:/C:/Users/SHARIF/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  1425. SLF4J: Found binding in [jar:file:/C:/Users/SHARIF/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
  1426. SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
  1427. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.146 sec
  1428. Running org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluatorTest
  1429. ERROR - EvaluationProfiler.log(111) |2021-01-04 13:01:32,053| 1768 2021-01-04 13:01:32.53 > ERROR EVALUATING_DEFINITION PatientCalculationDataDefinition[Example]: Failed to evaluate No PatientCalculation found on this PatientCalculationDataDefinition
  1430. org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate No PatientCalculation found on this PatientCalculationDataDefinition
  1431. at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluator.evaluate(PatientCalculationDataEvaluator.java:50)
  1432. at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluator.evaluate(PatientCalculationDataEvaluator.java:34)
  1433. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:369)
  1434. at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.executeEvaluator(PatientDataServiceImpl.java:66)
  1435. at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.executeEvaluator(PatientDataServiceImpl.java:34)
  1436. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:264)
  1437. at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:229)
  1438. at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.evaluate(PatientDataServiceImpl.java:48)
  1439. at sun.reflect.GeneratedMethodAccessor741.invoke(Unknown Source)
  1440. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1441. at java.lang.reflect.Method.invoke(Method.java:498)
  1442. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1443. at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
  1444. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
  1445. at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
  1446. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1447. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1448. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1449. at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
  1450. at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
  1451. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
  1452. at com.sun.proxy.$Proxy28.evaluate(Unknown Source)
  1453. at sun.reflect.GeneratedMethodAccessor741.invoke(Unknown Source)
  1454. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1455. at java.lang.reflect.Method.invoke(Method.java:498)
  1456. at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
  1457. at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
  1458. at com.sun.proxy.$Proxy122.evaluate(Unknown Source)
  1459. at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluatorTest.evaluate_shouldThrowAnErrorIfNoCalculationRegistrationExistsOnTheDefinition(PatientCalculationDataEvaluatorTest.java:90)
  1460. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1461. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1462. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1463. at java.lang.reflect.Method.invoke(Method.java:498)
  1464. at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
  1465. at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
  1466. at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
  1467. at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
  1468. at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
  1469. at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
  1470. at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
  1471. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1472. at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
  1473. at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
  1474. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
  1475. at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
  1476. at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
  1477. at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
  1478. at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
  1479. at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
  1480. at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
  1481. at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
  1482. at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
  1483. at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
  1484. at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
  1485. at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
  1486. at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
  1487. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
  1488. at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
  1489. at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
  1490. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  1491. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  1492. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  1493. at java.lang.reflect.Method.invoke(Method.java:498)
  1494. at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
  1495. at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
  1496. Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.575 sec
  1497. Running org.openmrs.module.reporting.data.converter.DateConverterTest
  1498. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.029 sec
  1499. Running org.openmrs.module.reporting.dataset.definition.evaluator.EncounterAndObsDataSetEvaluatorTest
  1500. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.585 sec
  1501. Running org.openmrs.module.reporting.data.encounter.evaluator.PatientToEncounterDataEvaluatorTest
  1502. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.988 sec
  1503. Running org.openmrs.module.reporting.data.patient.evaluator.PatientIdDataEvaluatorTest
  1504. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.312 sec
  1505. Running org.openmrs.module.reporting.data.person.evaluator.RelationshipsForPersonDataEvaluatorTest
  1506. Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.824 sec
  1507. Running org.openmrs.module.reporting.data.patient.evaluator.PersonToPatientDataEvaluatorTest
  1508. Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.333 sec
  1509. Running org.openmrs.module.reporting.data.patient.service.PatientDataServiceImplTest
  1510. Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.895 sec
  1511.  
  1512. Results :
  1513.  
  1514. Failed tests:
  1515. shouldConstructSqlFileDataSetDefinition(org.openmrs.module.reporting.config.ReportLoaderIntegrationTest)
  1516.  
  1517. Tests run: 732, Failures: 1, Errors: 0, Skipped: 13
  1518.  
  1519. Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
  1520. [INFO] ------------------------------------------------------------------------
  1521. [INFO] Reactor Summary:
  1522. [INFO]
  1523. [INFO] Reporting .......................................... SUCCESS [ 3.296 s]
  1524. [INFO] Reporting API ...................................... SUCCESS [01:06 min]
  1525. [INFO] reporting Module api 1.9 ........................... SUCCESS [ 18.582 s]
  1526. [INFO] reporting API Tests ................................ FAILURE [05:48 min]
  1527. [INFO] reporting Module api 1.10 .......................... SKIPPED
  1528. [INFO] reporting Module api 2.0 ........................... SKIPPED
  1529. [INFO] reporting Module api 2.2 ........................... SKIPPED
  1530. [INFO] reporting Module api 2.4 ........................... SKIPPED
  1531. [INFO] Reporting OMOD ..................................... SKIPPED
  1532. [INFO] ------------------------------------------------------------------------
  1533. [INFO] BUILD FAILURE
  1534. [INFO] ------------------------------------------------------------------------
  1535. [INFO] Total time: 07:17 min
  1536. [INFO] Finished at: 2021-01-04T13:01:41+03:00
  1537. [INFO] Final Memory: 35M/279M
  1538. [INFO] ------------------------------------------------------------------------
  1539. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.5:test (default-test) on project reporting-api-tests: There are test failures.
  1540. [ERROR]
  1541. [ERROR] Please refer to C:\Users\SHARIF\Tickets\openmrs-module-reporting\api-tests\target\surefire-reports for the individual test results.
  1542. [ERROR] -> [Help 1]
  1543. [ERROR]
  1544. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  1545. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  1546. [ERROR]
  1547. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  1548. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
  1549. [ERROR]
  1550. [ERROR] After correcting the problems, you can resume the build with the command
  1551. [ERROR] mvn <goals> -rf :reporting-api-tests
  1552.  
  1553. C:\Users\SHARIF\Tickets\openmrs-module-reporting>
RAW Paste Data