Skip to content

Instantly share code, notes, and snippets.

@ivange94
Created February 9, 2017 16:44
Show Gist options
  • Save ivange94/30f933208790031b2bf50f06a8791ad8 to your computer and use it in GitHub Desktop.
Save ivange94/30f933208790031b2bf50f06a8791ad8 to your computer and use it in GitHub Desktop.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Reporting
[INFO] Reporting API
[INFO] reporting Module api 1.9
[INFO] reporting Module api 2.0
[INFO] reporting API Tests
[INFO] Reporting OMOD
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Reporting 0.11.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting ---
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting ---
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Reporting API 0.11.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api ---
[INFO] Deleting /Users/ivange/workspace/openmrs-module-reporting/api/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 646 source files to /Users/ivange/workspace/openmrs-module-reporting/api/target/classes
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/cohort/query/db/hibernate/HibernateCohortQueryDAO.java: Some input files use or override a deprecated API.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/cohort/query/db/hibernate/HibernateCohortQueryDAO.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api/src/main/java/org/openmrs/module/reporting/evaluation/parameter/Mapped.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api/src/test/resources
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api ---
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api/target/reporting-api-0.11.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api/target/reporting-api-0.11.1-SNAPSHOT-tests.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building reporting Module api 1.9 0.11.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-1.9 ---
[INFO] Deleting /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-1.9 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-1.9 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target/classes
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataExportDataSetEvaluator.java: Some input files use or override a deprecated API.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/main/java/org/openmrs/module/reporting/dataset/definition/evaluator/DataExportDataSetEvaluator.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-1.9 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-1.9 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/test/resources
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-1.9 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target/test-classes
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java uses or overrides a deprecated API.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-1.9/src/test/java/org/openmrs/module/reporting/dataset/DataExportDataSetPersisterTest.java: Recompile with -Xlint:deprecation for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-1.9 ---
[INFO] Surefire report directory: /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target/surefire-reports
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openmrs.module.reporting.dataset.DataExportDataSetPersisterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.05 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api-1.9 ---
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target/reporting-api-1.9-0.11.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api-1.9 ---
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api-1.9/target/reporting-api-1.9-0.11.1-SNAPSHOT-tests.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building reporting Module api 2.0 0.11.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-2.0 ---
[INFO] Deleting /Users/ivange/workspace/openmrs-module-reporting/api-2.0/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-2.0 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-2.0/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-2.0 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 4 source files to /Users/ivange/workspace/openmrs-module-reporting/api-2.0/target/classes
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-2.0 ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-2.0 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-2.0/src/test/resources
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-2.0/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-2.0 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-2.0 ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ reporting-api-2.0 ---
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api-2.0/target/reporting-api-2.0-0.11.1-SNAPSHOT.jar
[INFO]
[INFO] --- maven-jar-plugin:2.4:test-jar (default) @ reporting-api-2.0 ---
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /Users/ivange/workspace/openmrs-module-reporting/api-2.0/target/reporting-api-2.0-0.11.1-SNAPSHOT-tests.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building reporting API Tests 0.11.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ reporting-api-tests ---
[INFO] Deleting /Users/ivange/workspace/openmrs-module-reporting/api-tests/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ reporting-api-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/ivange/workspace/openmrs-module-reporting/api-tests/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ reporting-api-tests ---
[INFO] No sources to compile
[INFO]
[INFO] --- build-helper-maven-plugin:1.7:parse-version (default) @ reporting-api-tests ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ reporting-api-tests ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 25 resources
[INFO] Copying 5 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ reporting-api-tests ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 214 source files to /Users/ivange/workspace/openmrs-module-reporting/api-tests/target/test-classes
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/validator/LogicCohortDefinitionValidatorTest.java: Some input files use or override a deprecated API.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/validator/LogicCohortDefinitionValidatorTest.java: Recompile with -Xlint:deprecation for details.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/serializer/ReportingSerializerTest.java: Some input files use unchecked or unsafe operations.
[WARNING] /Users/ivange/workspace/openmrs-module-reporting/api-tests/src/test/java/org/openmrs/module/reporting/serializer/ReportingSerializerTest.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] --- maven-surefire-plugin:2.5:test (default-test) @ reporting-api-tests ---
[INFO] Surefire report directory: /Users/ivange/workspace/openmrs-module-reporting/api-tests/target/surefire-reports
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=512m; support was removed in 8.0
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openmrs.module.reporting.cohort.definition.evaluator.ProgramEnrollmentCohortDefinitionEvaluatorTest
log4j:WARN No appenders could be found for logger (org.springframework.test.context.junit4.SpringJUnit4ClassRunner).
log4j:WARN Please initialize the log4j system properly.
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 10.012 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.InverseCohortDefinitionEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.587 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.PersonDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.245 sec
Running org.openmrs.module.reporting.data.person.evaluator.GenderDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.253 sec
Running org.openmrs.module.reporting.query.visit.evaluator.ActiveVisitQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.393 sec
Running org.openmrs.module.reporting.validator.BaseObsCohortDefinitionValidatorTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.056 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.SimplePatientDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.302 sec
Running org.openmrs.module.reporting.data.converter.BirthdateToAgeConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.063 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.CodedObsCohortDefinitionEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.859 sec
Running org.openmrs.module.reporting.report.ReportRequestTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.295 sec
Running org.openmrs.module.reporting.query.obs.evaluator.SqlObsQueryEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.677 sec
Running org.openmrs.module.reporting.report.renderer.XlsReportRendererTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.708 sec
Running org.openmrs.module.reporting.data.converter.PropertyConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.287 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.PersonAttributeCohortDefinitionEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.818 sec
Running org.openmrs.module.reporting.data.visit.evaluator.SqlVisitDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredDataSetDefinitionLibraryComponentTest
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:29:39,311| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/target/test-classes/implementerconfigured/dataSet.groovy
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.585 sec
Running org.openmrs.module.reporting.report.service.MysqlReportServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.BasicEncounterQueryEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.268 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiPeriodIndicatorDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec
Running org.openmrs.module.reporting.data.obs.evaluator.ObsIdDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.228 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiParameterDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.155 sec
Running org.openmrs.module.reporting.data.converter.AgeRangeConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.EvaluatableDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.145 sec
Running org.openmrs.module.reporting.query.encounter.service.EncounterQueryServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.425 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:29:42,624| 204 2017-02-09 17:29:42.624 > 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'
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate Invalid query specified. There are two columns named 'PATIENT_ID'
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:92)
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:41)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.dataset.definition.service.DataSetDefinitionServiceImpl.evaluate(DataSetDefinitionServiceImpl.java:45)
at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy37.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy124.evaluate(Unknown Source)
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest.buildQuery_shouldThrowAnExceptionIfDuplicateColumnsExist(SqlDataSetEvaluatorTest.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:29:43,221| 212 2017-02-09 17:29:43.221 > ERROR EVALUATING_DEFINITION SqlDataSetDefinition[sqlQuery=update person set gender='F']: Unable to retrieve columns for query
java.lang.IllegalArgumentException: Unable to retrieve columns for query
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.getColumns(SqlQueryBuilder.java:129)
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.getColumns(EvaluationServiceImpl.java:40)
at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy25.getColumns(Unknown Source)
at sun.reflect.GeneratedMethodAccessor354.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy118.getColumns(Unknown Source)
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:85)
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluator.evaluate(SqlDataSetEvaluator.java:41)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.dataset.definition.service.DataSetDefinitionServiceImpl.evaluate(DataSetDefinitionServiceImpl.java:45)
at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy37.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor353.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy124.evaluate(Unknown Source)
at org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest.evaluate_shouldProtectSQLQueryAgainstDatabaseModifications(SqlDataSetEvaluatorTest.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: java.lang.NullPointerException
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$1.execute(SqlQueryBuilder.java:112)
at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.getColumns(SqlQueryBuilder.java:104)
... 90 more
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.416 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterIdDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.412 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterWithCodedObsCohortDefinitionEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.834 sec
Running org.openmrs.module.reporting.cohort.definition.library.BuiltInCohortDefinitionLibraryTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
Running org.openmrs.module.reporting.report.service.ReportServiceTest
WARN - LoggingReportProcessor.process(45) |2017-02-09 17:29:48,708| Processing report with configuration: {Still=not needed}
WARN - LoggingReportProcessor.process(46) |2017-02-09 17:29:48,708| Request: Report Request (f9395bd6-8663-4fd5-a295-719ce02935ce)for My report to TsvReportRenderer
WARN - ReportServiceImpl.runReport(516) |2017-02-09 17:29:48,709| Report Processor Failed: Logging processor
java.lang.NullPointerException
at org.openmrs.module.reporting.report.processor.LoggingReportProcessor.process(LoggingReportProcessor.java:47)
at org.openmrs.module.reporting.report.service.ReportServiceImpl.runReport(ReportServiceImpl.java:512)
at sun.reflect.GeneratedMethodAccessor494.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy88.runReport(Unknown Source)
at sun.reflect.GeneratedMethodAccessor494.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy89.runReport(Unknown Source)
at sun.reflect.GeneratedMethodAccessor494.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy89.runReport(Unknown Source)
at org.openmrs.module.reporting.report.service.ReportServiceTest.runReport_shouldExecuteTestReportProcessor(ReportServiceTest.java:268)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.45 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluatorTest
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:29:50,328| 301 2017-02-09 17:29:50.328 > ERROR EVALUATING_DEFINITION EncounterProviderDataDefinition[encounterRole=null,singleProvider=false]: Failed to evaluate EncounterRole parameter must be of type EncounterRole
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate EncounterRole parameter must be of type EncounterRole
at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluator.evaluate(EncounterProviderDataEvaluator.java:39)
at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluator.evaluate(EncounterProviderDataEvaluator.java:24)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.data.encounter.service.EncounterDataServiceImpl.evaluate(EncounterDataServiceImpl.java:42)
at sun.reflect.GeneratedMethodAccessor566.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy30.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor566.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy121.evaluate(Unknown Source)
at org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluatorTest.shouldFailIfEncounterRoleParameterSetToAnotherType(EncounterProviderDataEvaluatorTest.java:190)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.178 sec
Running org.openmrs.module.reporting.definition.converter.SqlCohortDefinitionConverterTest
INFO - SqlCohortDefinitionConverter.convertDefinition(82) |2017-02-09 17:29:50,722| Successfully converted SqlCohortDefinition named 'InvalidSqlCohortDefinition' to new format
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.222 sec
Running org.openmrs.module.reporting.data.converter.BooleanConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.data.converter.AgeConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.EncountersForPatientDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientIdentifierCohortDefinitionEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.844 sec
Running org.openmrs.module.reporting.evaluation.EvaluationProfilerTest
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,924| 343 2017-02-09 17:29:51.924 > BEFORE EVALUATION_STARTED Super User (admin)
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,924| 343 2017-02-09 17:29:51.924 > BEFORE EVALUATING_DEFINITION CohortIndicator[type=COUNT,cohortDefinition=Male]
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,926| 343 2017-02-09 17:29:51.926 >> BEFORE EVALUATING_DEFINITION GenderCohortDefinition[males]
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,927| 343 2017-02-09 17:29:51.927 >> AFTER EVALUATING_DEFINITION 1(ms) 1(ms) GenderCohortDefinition[males]
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,927| 343 2017-02-09 17:29:51.927 > AFTER EVALUATING_DEFINITION 3(ms) 4(ms) CohortIndicator[type=COUNT,cohortDefinition=Male]
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:29:51,927| 343 2017-02-09 17:29:51.927 > AFTER EVALUATION_COMPLETED 3(ms) 4(ms) 4(ms)
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec
Running org.openmrs.module.reporting.report.renderer.CohortDetailReportRendererTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.28 sec
Running org.openmrs.module.reporting.data.person.service.PersonDataServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.408 sec
Running org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilderTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.016 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredPatientDataDefinitionLibraryTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN No appenders could be found for logger (org.openmrs.util.OpenmrsClassLoader).
log4j:WARN Please initialize the log4j system properly.
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:29:56,096| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:29:56,140| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.reportingserializerxml
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.471 sec
Running org.openmrs.module.reporting.validator.LogicCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.429 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:29:58,496| 417 2017-02-09 17:29:58.496 > ERROR EXECUTING_QUERY update person set gender='F' : error executing work
org.hibernate.exception.GenericJDBCException: error executing work
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:143)
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:49)
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:59)
at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy25.evaluateToList(Unknown Source)
at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy118.evaluateToList(Unknown Source)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:65)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:32)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:58)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:28)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluate(CohortDefinitionServiceImpl.java:42)
at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy36.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy119.evaluate(Unknown Source)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest.shouldProtectSqlQueryAgainstDatabaseModifications(SqlCohortDefinitionEvaluatorTest.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:
update person set gender='F' [90002-173]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
at org.h2.message.DbException.get(DbException.java:171)
at org.h2.message.DbException.get(DbException.java:148)
at org.h2.message.DbException.get(DbException.java:137)
at org.h2.command.Prepared.query(Prepared.java:211)
at org.h2.command.CommandContainer.query(CommandContainer.java:91)
at org.h2.command.Command.executeQuery(Command.java:195)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$2.execute(SqlQueryBuilder.java:150)
at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
... 95 more
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:29:58,497| 417 2017-02-09 17:29:58.497 > ERROR EVALUATING_DEFINITION SqlCohortDefinition[query=update person set gender='F']: Unable to execute query
java.lang.IllegalArgumentException: Unable to execute query
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:175)
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:49)
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToList(EvaluationServiceImpl.java:59)
at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy25.evaluateToList(Unknown Source)
at sun.reflect.GeneratedMethodAccessor243.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy118.evaluateToList(Unknown Source)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:65)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluator.evaluate(SqlCohortDefinitionEvaluator.java:32)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:58)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluateBypassingExclusionOfTestPatients(CohortDefinitionServiceImpl.java:28)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.cohort.definition.service.CohortDefinitionServiceImpl.evaluate(CohortDefinitionServiceImpl.java:42)
at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy36.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor242.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy119.evaluate(Unknown Source)
at org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest.shouldProtectSqlQueryAgainstDatabaseModifications(SqlCohortDefinitionEvaluatorTest.java:299)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: org.hibernate.exception.GenericJDBCException: error executing work
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:140)
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:128)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)
at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:2001)
at org.openmrs.api.db.hibernate.DbSession.doWork(DbSession.java:958)
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder.evaluateToList(SqlQueryBuilder.java:143)
... 93 more
Caused by: org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:
update person set gender='F' [90002-173]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:331)
at org.h2.message.DbException.get(DbException.java:171)
at org.h2.message.DbException.get(DbException.java:148)
at org.h2.message.DbException.get(DbException.java:137)
at org.h2.command.Prepared.query(Prepared.java:211)
at org.h2.command.CommandContainer.query(CommandContainer.java:91)
at org.h2.command.Command.executeQuery(Command.java:195)
at org.h2.jdbc.JdbcPreparedStatement.executeQuery(JdbcPreparedStatement.java:106)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilder$2.execute(SqlQueryBuilder.java:150)
at org.hibernate.impl.SessionImpl.doWork(SessionImpl.java:1997)
... 95 more
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.547 sec
Running org.openmrs.module.reporting.evaluation.service.EvaluationServiceTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.915 sec
Running org.openmrs.module.reporting.data.obs.evaluator.EncounterToObsDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.416 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.MappedParametersEncounterQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.209 sec
Running org.openmrs.module.reporting.validator.InStateCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.402 sec
Running org.openmrs.module.reporting.common.ReflectionUtilTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.template.HandlebarsHelpersTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.447 sec
Running org.openmrs.module.reporting.data.visit.evaluator.VisitIdDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.399 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.ConditionalParameterCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 sec
Running org.openmrs.module.reporting.data.patient.evaluator.CurrentPatientStateDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
Running org.openmrs.module.reporting.cohort.query.service.CohortQueryServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.199 sec
Running org.openmrs.module.reporting.data.person.evaluator.ObsForPersonDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.663 sec
Running org.openmrs.module.reporting.validator.StaticCohortDefinitionValidatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.EncounterDataSetEvaluatorTest
ENCOUNTER ID EMR ID BIRTHDATE ENCOUNTER DATE Age At Start Age At End
------------ ------ ------------ -------------- ------------ ----------
3 7 ~25/Aug/1976 01/Aug/2008 40 40
4 7 ~25/Aug/1976 15/Aug/2008 40 40
5 7 ~25/Aug/1976 19/Aug/2008 40 40
6 20 08/Feb/1925 19/Aug/2009 80 80
7 21 ~08/Jun/1959 19/Aug/2009 57 57
8 21 ~08/Jun/1959 19/Sep/2009 57 57
9 22 08/Jul/1997 19/Sep/2009 19 19
10 22 08/Jul/1997 19/Oct/2009 19 19
11 23 08/Nov/2000 19/Aug/2009 16 16
12 24 08/Dec/2006 19/Sep/2009 10 10
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.251 sec
Running org.openmrs.module.reporting.data.person.evaluator.BirthdateDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterCohortDefinitionEvaluatorTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 1.448 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.GenderCohortDefinitionEvaluatorTest
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnPatientsWithUnknownGenderWhenUnknownAreIncluded(101) |2017-02-09 17:30:06,409| Cohort: Cohort id=null size=1
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnFemalePatientsWhenFemalesAreIncluded(91) |2017-02-09 17:30:06,601| Cohort: Cohort id=null size=5
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnMalePatientsWhenMalesAreIncluded(78) |2017-02-09 17:30:06,983| Cohort: Cohort id=null size=3
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnNoPatientsWhenNoneAreIncluded(113) |2017-02-09 17:30:07,177| Cohort: Cohort id=null size=0
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.988 sec
Running org.openmrs.module.reporting.data.person.evaluator.PreferredAddressDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running org.openmrs.module.reporting.data.converter.BirthdateConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.133 sec
Running org.openmrs.module.reporting.data.patient.evaluator.ProgramStatesForPatientDataEvaluatorTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.844 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.AgeCohortDefinitionEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.729 sec
Running org.openmrs.module.reporting.data.visit.library.BuiltInVisitDataLibraryTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterLocationDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.596 sec
Running org.openmrs.module.reporting.data.obs.evaluator.PersonToObsEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.406 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.NumericObsCohortDefinitionEvaluatorTest
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.345 sec
Running org.openmrs.module.reporting.common.DateRangeTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running org.openmrs.module.reporting.indicator.QueryCountIndicatorEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.588 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.ObsForEncounterEvaluatorTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.281 sec
Running org.openmrs.module.reporting.common.DateUtilTest
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.949 sec
Running org.openmrs.module.reporting.data.patient.evaluator.DrugOrdersForPatientDataEvaluatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.173 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.MappedParametersObsQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 sec
Running org.openmrs.module.reporting.serializer.ReportingSerializerTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.857 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortCrossTabDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec
Running org.openmrs.module.reporting.query.person.service.PersonQueryServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.392 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.MySqlDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.report.renderer.TextTemplateRendererTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.593 sec
Running org.openmrs.module.reporting.validator.InverseCohortDefinitionValidatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.27 sec
Running org.openmrs.module.reporting.validator.PatientStateCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.ObsForEncounterQueryEvaluatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.631 sec
Running org.openmrs.module.reporting.report.service.db.PropertiesTypeTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.data.encounter.service.EncounterDataServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.389 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.MappedParametersCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.ConvertedEncounterDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 sec
Running org.openmrs.module.reporting.data.converter.ListConverterTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PatientIdentifierDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.588 sec
Running org.openmrs.module.reporting.data.converter.ObsFromObsGroupConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 sec
Running org.openmrs.module.reporting.common.AgeTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.evaluation.CachingCohortDefinitionTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.191 sec
Running org.openmrs.module.reporting.common.TestUtil
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredVisitDataDefinitionLibraryTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN No appenders could be found for logger (org.openmrs.util.OpenmrsClassLoader).
log4j:WARN Please initialize the log4j system properly.
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:26,055| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:26,095| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/visitId.reportingserializerxml
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.059 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.CompositionEncounterQueryEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.859 sec
Running org.openmrs.module.reporting.common.ObjectUtilTest
Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.332 sec
Running org.openmrs.module.reporting.data.person.evaluator.AgeDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.422 sec
Running org.openmrs.module.reporting.evaluation.querybuilder.HqlQueryBuilderTest
Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.551 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.MostRecentEncounterForPatientQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.OptionalParameterCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207 sec
Running org.openmrs.module.reporting.report.util.SqlUtilsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.validator.InProgramCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.409 sec
Running org.openmrs.module.reporting.data.obs.evaluator.PatientToObsDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.396 sec
Running org.openmrs.module.reporting.definition.library.BaseDefinitionLibraryTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.533 sec
Running org.openmrs.module.reporting.data.person.evaluator.PersonAttributeDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.201 sec
Running org.openmrs.module.reporting.data.person.evaluator.PreferredNameDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.589 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredCohortDefinitionLibraryTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN No appenders could be found for logger (org.openmrs.util.OpenmrsClassLoader).
log4j:WARN Please initialize the log4j system properly.
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:41,787| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.sql
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:41,802| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.reportingserializerxml
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:41,831| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.groovy
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:30:42,548| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/invalidCohortDefinition.groovy
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.738 sec
Running org.openmrs.module.reporting.evaluation.parameter.ParameterUtilTest
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.294 sec <<< FAILURE!
Running org.openmrs.module.reporting.data.encounter.library.BuiltInEncounterDataLibraryTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.901 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.ScriptedCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 sec
Running org.openmrs.module.reporting.data.converter.PersonNameConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.146 sec
Running org.openmrs.module.reporting.definition.library.AllDefinitionLibrariesComponentTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.278 sec
Running org.openmrs.module.reporting.data.person.evaluator.VitalStatusDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.TextObsCohortDefinitionEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.408 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.PatientDataSetEvaluatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.642 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.AuditInfoEncounterDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec
Running org.openmrs.module.reporting.data.patient.evaluator.LogicDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec
Running org.openmrs.module.reporting.data.visit.evaluator.PersonToVisitDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.402 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.DateObsCohortDefinitionEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.626 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.VisitCohortDefinitionEvaluatorTest
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.88 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.AgeAtEncounterDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.219 sec
Running org.openmrs.module.reporting.indicator.CohortIndicatorDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
Running org.openmrs.module.reporting.data.person.evaluator.ObsActiveListPersonDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 sec
Running org.openmrs.module.reporting.common.ExcelUtilTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.814 sec
Running org.openmrs.module.reporting.data.obs.evaluator.GroupMemberObsDataEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.637 sec
Running org.openmrs.module.reporting.common.ExcelBuilderTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.452 sec
Running org.openmrs.module.reporting.query.obs.evaluator.AllObsQueryEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.994 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.AllPatientsCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.SimultaneousEncountersDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.325 sec
Running org.openmrs.module.reporting.validator.ProgramEnrollmentCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.394 sec
Running org.openmrs.module.reporting.evaluation.EvaluationContextTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.527 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PreferredIdentifierDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.415 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterVisitDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 sec
Running org.openmrs.module.reporting.query.obs.service.ObsQueryServiceImplTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.2 sec
Running org.openmrs.module.reporting.data.patient.library.BuiltInPatientDataLibraryTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.566 sec
Running org.openmrs.module.reporting.indicator.util.IndicatorUtilTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.EvaluatableCohortDefinitionEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.143 sec
Running org.openmrs.module.reporting.data.patient.evaluator.ConvertedPatientDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.397 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.CompositionCohortDefinitionEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.819 sec
Running org.openmrs.module.reporting.data.converter.MapConverterTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.data.patient.evaluator.EncountersForPatientDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.229 sec
Running org.openmrs.module.reporting.indicator.SqlIndicatorTest
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:31:00,467| 1300 2017-02-09 17:31:00.467 > ERROR EVALUATING_DEFINITION SqlIndicator[sql=SELECT distinct(.222) as res, 33 as res2 from patient]: Failed to evaluate sql because:
Unable to evaluate to a single value. Exactly one column must be defined.
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate sql because:
Unable to evaluate to a single value. Exactly one column must be defined.
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:61)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:45)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:32)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.indicator.service.IndicatorServiceImpl.evaluate(IndicatorServiceImpl.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy38.evaluate(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy136.evaluate(Unknown Source)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:98)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:107)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:118)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:111)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.sqlIndicator_shouldNotAllowQueriesThatReturnMoreThanOneColumn(SqlIndicatorTest.java:89)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: java.lang.IllegalArgumentException: Unable to evaluate to a single value. Exactly one column must be defined.
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToObject(EvaluationServiceImpl.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy25.evaluateToObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy118.evaluateToObject(Unknown Source)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:58)
... 69 more
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:31:01,092| 1308 2017-02-09 17:31:01.92 > ERROR EVALUATING_DEFINITION SqlIndicator[sql=SELECT person_id from person]: Failed to evaluate sql because:
Unable to evaluate to a single value. Exactly one row must be returned by query.
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate sql because:
Unable to evaluate to a single value. Exactly one row must be returned by query.
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:61)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:45)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluate(SqlIndicatorEvaluator.java:32)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.indicator.service.IndicatorServiceImpl.evaluate(IndicatorServiceImpl.java:45)
at sun.reflect.GeneratedMethodAccessor1025.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy38.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1025.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy136.evaluate(Unknown Source)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:98)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:107)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:118)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.assertIndicatorValue(SqlIndicatorTest.java:111)
at org.openmrs.module.reporting.indicator.SqlIndicatorTest.sqlIndicator_shouldNotAllowQueriesThatReturnMoreThanOneRow(SqlIndicatorTest.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Caused by: java.lang.IllegalArgumentException: Unable to evaluate to a single value. Exactly one row must be returned by query.
at org.openmrs.module.reporting.evaluation.service.EvaluationServiceImpl.evaluateToObject(EvaluationServiceImpl.java:90)
at sun.reflect.GeneratedMethodAccessor1028.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy25.evaluateToObject(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1028.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy118.evaluateToObject(Unknown Source)
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:58)
... 67 more
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.698 sec
Running org.openmrs.module.reporting.report.renderer.ExcelTemplateRendererTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289 sec
Running org.openmrs.module.reporting.cohort.CohortsTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.484 sec
Running org.openmrs.module.reporting.data.converter.StringConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.RepeatPerTimePeriodDataSetEvaluatorTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 sec
Running org.openmrs.module.reporting.data.JoinDataDefinitionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.query.obs.evaluator.BasicObsQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.289 sec
Running org.openmrs.module.reporting.query.person.evaluator.PatientPersonQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.227 sec
Running org.openmrs.module.reporting.data.patient.evaluator.ScriptedCompositionPatientDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.467 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredEncounterDataDefinitionLibraryTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN No appenders could be found for logger (org.openmrs.util.OpenmrsClassLoader).
log4j:WARN Please initialize the log4j system properly.
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:31:04,144| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:31:04,185| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/encounterDatetime.reportingserializerxml
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.024 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.PersonToEncounterDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.436 sec
Running org.openmrs.module.reporting.data.visit.evaluator.PatientToVisitDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.415 sec
Running org.openmrs.module.reporting.calculation.PatientDataCalculationBehaviorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.633 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.InProgramCohortDefinitionEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.084 sec
Running org.openmrs.module.reporting.validator.CompositionCohortDefinitionValidatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.709 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortIndicatorDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.208 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.AuditEncounterQueryEvaluatorTest
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.101 sec
Running org.openmrs.module.reporting.definition.service.DefinitionServiceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 sec
Running org.openmrs.module.reporting.indicator.aggregation.AggregationTest
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.data.person.evaluator.ConvertedPersonDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.SqlEncounterQueryEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.578 sec
Running org.openmrs.module.reporting.report.renderer.CsvReportRendererTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.LogicDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.VisitDataSetEvaluatorTest
VISIT ID EMR ID BIRTHDATE
-------- ------ -----------
1 2 08/Apr/1975
2 2 08/Apr/1975
3 2 08/Apr/1975
4 6 27/May/2007
5 6 27/May/2007
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.215 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.BirthAndDeathCohortDefinitionEvaluatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.438 sec
Running org.openmrs.module.reporting.data.person.evaluator.PersonIdDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.SqlEncounterDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec
Running org.openmrs.module.reporting.data.converter.PersonAddressConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec
Running org.openmrs.module.reporting.common.DelimitedKeyComparatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.data.converter.AttributeValueConverterTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.376 sec
Running org.openmrs.module.reporting.data.obs.evaluator.ConvertedObsDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec
Running org.openmrs.module.reporting.query.person.evaluator.SqlPersonQueryEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.394 sec
Running org.openmrs.module.reporting.query.person.evaluator.AllPersonQueryEvaluatorTest
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.158 sec
Running org.openmrs.module.reporting.data.person.evaluator.AgeAtDateOfOtherDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
Running org.openmrs.module.reporting.indicator.PeriodIndicatorReportTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.404 sec
Running org.openmrs.module.reporting.report.renderer.DelimitedTextReportRendererTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.425 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PatientObjectDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec
Running org.openmrs.module.reporting.data.patient.evaluator.TestPatientCalculation
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.validator.SqlCohortDefinitionValidatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.403 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientStateCohortDefinitionEvaluatorTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.463 sec
Running org.openmrs.module.reporting.data.converter.NullValueConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.query.encounter.evaluator.ConditionalParameterEncounterQueryEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 sec
Running org.openmrs.module.reporting.report.service.TestReportProcessor
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 sec
Running org.openmrs.module.reporting.common.FractionTest
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.report.renderer.ReportDesignRendererTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.272 sec
Running org.openmrs.module.reporting.data.patient.evaluator.ProgramEnrollmentsForPatientDataEvaluatorTest
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.606 sec
Running org.openmrs.module.reporting.report.util.SqlScriptParserTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredDataSetDefinitionLibraryTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
log4j:WARN No appenders could be found for logger (org.openmrs.util.OpenmrsClassLoader).
log4j:WARN Please initialize the log4j system properly.
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:31:21,310| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:31:21,348| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.reportingserializerxml
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.936 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.PresenceOrAbsenceCohortDefinitionEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.612 sec
Running org.openmrs.module.reporting.report.definition.service.ReportDefinitionServiceImplTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.152 sec
Running org.openmrs.module.reporting.data.converter.ObsValueTextAsCodedConverterTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.412 sec
Running org.openmrs.module.reporting.cohort.definition.service.BaseCohortDefinitionServiceTest
WARN - BaseCohortDefinitionServiceTest.evaluate_shouldSaveSqlCohortDefinition(64) |2017-02-09 17:31:22,697| parameters = []
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.204 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.InStateCohortDefinitionEvaluatorTest
Cohort: Cohort id=null size=2
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.507 sec
Running org.openmrs.module.reporting.data.patient.evaluator.DefinitionLibraryPatientDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.585 sec
Running org.openmrs.module.reporting.cohort.definition.evaluator.DefinitionLibraryCohortDefinitionEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.609 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortsWithVaryingParametersDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.203 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.ObsDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 sec
Running org.openmrs.module.reporting.data.patient.evaluator.SqlPatientDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.196 sec
Running org.openmrs.module.reporting.data.converter.PrivilegedDataConverterTest
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/ivange/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.42 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluatorTest
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:31:26,658| 1699 2017-02-09 17:31:26.658 > ERROR EVALUATING_DEFINITION PatientCalculationDataDefinition[Example]: Failed to evaluate No PatientCalculation found on this PatientCalculationDataDefinition
org.openmrs.module.reporting.evaluation.EvaluationException: Failed to evaluate No PatientCalculation found on this PatientCalculationDataDefinition
at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluator.evaluate(PatientCalculationDataEvaluator.java:54)
at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluator.evaluate(PatientCalculationDataEvaluator.java:38)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.executeEvaluator(BaseDefinitionService.java:367)
at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.executeEvaluator(PatientDataServiceImpl.java:70)
at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.executeEvaluator(PatientDataServiceImpl.java:38)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluateBypassingExclusionOfTestPatients(BaseDefinitionService.java:266)
at org.openmrs.module.reporting.definition.service.BaseDefinitionService.evaluate(BaseDefinitionService.java:231)
at org.openmrs.module.reporting.data.patient.service.PatientDataServiceImpl.evaluate(PatientDataServiceImpl.java:52)
at sun.reflect.GeneratedMethodAccessor738.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.openmrs.aop.LoggingAdvice.invoke(LoggingAdvice.java:118)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:50)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy28.evaluate(Unknown Source)
at sun.reflect.GeneratedMethodAccessor738.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)
at com.sun.proxy.$Proxy122.evaluate(Unknown Source)
at org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluatorTest.evaluate_shouldThrowAnErrorIfNoCalculationRegistrationExistsOnTheDefinition(PatientCalculationDataEvaluatorTest.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:115)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:102)
at org.apache.maven.surefire.Surefire.run(Surefire.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec
Running org.openmrs.module.reporting.data.converter.DateConverterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec
Running org.openmrs.module.reporting.dataset.definition.evaluator.EncounterAndObsDataSetEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.271 sec
Running org.openmrs.module.reporting.data.encounter.evaluator.PatientToEncounterDataEvaluatorTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.392 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PatientIdDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.205 sec
Running org.openmrs.module.reporting.data.person.evaluator.RelationshipsForPersonDataEvaluatorTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.636 sec
Running org.openmrs.module.reporting.data.patient.evaluator.PersonToPatientDataEvaluatorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.198 sec
Running org.openmrs.module.reporting.data.patient.service.PatientDataServiceImplTest
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:31:29,455| Number of batches to execute: 4
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:31:29,681| Number of batches to execute: 7
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.321 sec
Results :
Failed tests:
shouldHaveAllInheritedAnnotatedFieldsAsParameters(org.openmrs.module.reporting.evaluation.parameter.ParameterUtilTest)
Tests run: 697, Failures: 1, Errors: 0, Skipped: 13
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Reporting .......................................... SUCCESS [ 0.184 s]
[INFO] Reporting API ...................................... SUCCESS [ 4.445 s]
[INFO] reporting Module api 1.9 ........................... SUCCESS [ 0.723 s]
[INFO] reporting Module api 2.0 ........................... SUCCESS [ 0.314 s]
[INFO] reporting API Tests ................................ FAILURE [02:11 min]
[INFO] Reporting OMOD ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:17 min
[INFO] Finished at: 2017-02-09T17:31:30+01:00
[INFO] Final Memory: 50M/532M
[INFO] ------------------------------------------------------------------------
[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.
[ERROR]
[ERROR] Please refer to /Users/ivange/workspace/openmrs-module-reporting/api-tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :reporting-api-tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment