Created
February 9, 2017 16:54
-
-
Save ivange94/0f10987fa64237ad42ce78cccd3c4563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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/dataset/definition/evaluator/LogicDataSetEvaluator.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/dataset/definition/evaluator/LogicDataSetEvaluator.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 | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.openmrs.module.reporting.dataset.DataExportDataSetPersisterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.071 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/cohort/definition/evaluator/SqlCohortDefinitionEvaluatorTest.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/cohort/definition/evaluator/SqlCohortDefinitionEvaluatorTest.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 | |
------------------------------------------------------- | |
T E S T S | |
------------------------------------------------------- | |
Running org.openmrs.module.reporting.evaluation.querybuilder.SqlQueryBuilderTest | |
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: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 13.085 sec | |
Running org.openmrs.module.reporting.query.person.evaluator.SqlPersonQueryEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.54 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.ProgramEnrollmentCohortDefinitionEvaluatorTest | |
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.038 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:50:09,226| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:50:09,280| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.reportingserializerxml | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.644 sec | |
Running org.openmrs.module.reporting.cohort.definition.service.BaseCohortDefinitionServiceTest | |
WARN - BaseCohortDefinitionServiceTest.evaluate_shouldSaveSqlCohortDefinition(64) |2017-02-09 17:50:09,525| parameters = [] | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.29 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.CompositionEncounterQueryEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.024 sec | |
Running org.openmrs.module.reporting.report.renderer.DelimitedTextReportRendererTest | |
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.605 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.PersonIdDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.229 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.PersonAttributeCohortDefinitionEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.951 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.AgeAtDateOfOtherDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.315 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.PreferredIdentifierDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.488 sec | |
Running org.openmrs.module.reporting.query.obs.evaluator.AllObsQueryEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.078 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiParameterDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.179 sec | |
Running org.openmrs.module.reporting.data.obs.evaluator.ConvertedObsDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.239 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterLocationDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.686 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.AllPatientsCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.231 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.531 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.AuditEncounterQueryEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.466 sec | |
Running org.openmrs.module.reporting.report.ReportRequestTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.29 sec | |
Running org.openmrs.module.reporting.report.renderer.CsvReportRendererTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.149 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.PreferredNameDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.629 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.EvaluatableDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.147 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientStateCohortDefinitionEvaluatorTest | |
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.633 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.BasicEncounterQueryEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.232 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.ObsActiveListPersonDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.304 sec | |
Running org.openmrs.module.reporting.common.DateUtilTest | |
Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.052 sec | |
Running org.openmrs.module.reporting.definition.library.implementerconfigured.ImplementerConfiguredDataSetDefinitionLibraryComponentTest | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:50:25,145| 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.575 sec | |
Running org.openmrs.module.reporting.validator.PatientStateCohortDefinitionValidatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.407 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.ProgramEnrollmentsForPatientDataEvaluatorTest | |
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.71 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.GenderCohortDefinitionEvaluatorTest | |
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnPatientsWithUnknownGenderWhenUnknownAreIncluded(101) |2017-02-09 17:50:27,903| Cohort: Cohort id=null size=1 | |
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnFemalePatientsWhenFemalesAreIncluded(91) |2017-02-09 17:50:28,100| Cohort: Cohort id=null size=5 | |
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnMalePatientsWhenMalesAreIncluded(78) |2017-02-09 17:50:28,492| Cohort: Cohort id=null size=3 | |
WARN - GenderCohortDefinitionEvaluatorTest.evaluate_shouldReturnNoPatientsWhenNoneAreIncluded(113) |2017-02-09 17:50:28,689| Cohort: Cohort id=null size=0 | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.994 sec | |
Running org.openmrs.module.reporting.data.converter.MapConverterTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.SqlCohortDefinitionEvaluatorTest | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:50:30,698| 304 2017-02-09 17:50:30.698 > 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.GeneratedMethodAccessor249.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy23.evaluateToList(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy104.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.GeneratedMethodAccessor285.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy34.evaluate(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy105.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:50:30,701| 304 2017-02-09 17:50:30.701 > 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.GeneratedMethodAccessor249.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy23.evaluateToList(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor249.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy104.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.GeneratedMethodAccessor285.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy34.evaluate(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor285.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy105.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.627 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.576 sec | |
Running org.openmrs.module.reporting.data.converter.AgeRangeConverterTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.ObsForEncounterEvaluatorTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.378 sec | |
Running org.openmrs.module.reporting.template.HandlebarsHelpersTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.456 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.24 sec | |
Running org.openmrs.module.reporting.indicator.util.IndicatorUtilTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.data.obs.evaluator.GroupMemberObsDataEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 0.673 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.dataset.definition.evaluator.PatientDataSetEvaluatorTest | |
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.723 sec | |
Running org.openmrs.module.reporting.report.renderer.XlsReportRendererTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.44 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.OptionalParameterCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.214 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.PatientCalculationDataEvaluatorTest | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:50:39,428| 472 2017-02-09 17:50:39.428 > 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.GeneratedMethodAccessor519.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy26.evaluate(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor519.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy109.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.399 sec | |
Running org.openmrs.module.reporting.indicator.CohortIndicatorDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.232 sec | |
Running org.openmrs.module.reporting.data.converter.BooleanConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.PersonToPatientDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 sec | |
Running org.openmrs.module.reporting.validator.CompositionCohortDefinitionValidatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.667 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.NumericObsCohortDefinitionEvaluatorTest | |
Tests run: 11, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.451 sec | |
Running org.openmrs.module.reporting.indicator.aggregation.AggregationTest | |
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.PersonAttributeDataEvaluatorTest | |
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.146 sec | |
Running org.openmrs.module.reporting.common.ExcelUtilTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.825 sec | |
Running org.openmrs.module.reporting.query.obs.evaluator.SqlObsQueryEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.611 sec | |
Running org.openmrs.module.reporting.data.encounter.library.BuiltInEncounterDataLibraryTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.972 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.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:50:47,054| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:50:47,097| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/visitId.reportingserializerxml | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.109 sec | |
Running org.openmrs.module.reporting.evaluation.EvaluationContextTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.538 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterVisitDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.21 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.PatientObjectDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.228 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.ObsDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.246 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.MostRecentEncounterForPatientQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 sec | |
Running org.openmrs.module.reporting.common.DateRangeTest | |
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.AgeAtEncounterDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.216 sec | |
Running org.openmrs.module.reporting.validator.LogicCohortDefinitionValidatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.401 sec | |
Running org.openmrs.module.reporting.data.patient.service.PatientDataServiceImplTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:50:50,107| Number of batches to execute: 4 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:50:50,378| Number of batches to execute: 7 | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.458 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.DefinitionLibraryCohortDefinitionEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.635 sec | |
Running org.openmrs.module.reporting.common.AgeTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.SqlDataSetEvaluatorTest | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:50:51,620| 645 2017-02-09 17:50:51.620 > 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.GeneratedMethodAccessor596.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy35.evaluate(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor596.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy111.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:50:52,202| 653 2017-02-09 17:50:52.202 > 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.GeneratedMethodAccessor619.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy23.getColumns(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor619.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy104.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.GeneratedMethodAccessor596.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy35.evaluate(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor596.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy111.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.372 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.data.converter.ObsFromObsGroupConverterTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.287 sec | |
Running org.openmrs.module.reporting.report.service.ReportServiceTest | |
WARN - LoggingReportProcessor.process(45) |2017-02-09 17:50:56,816| Processing report with configuration: {Still=not needed} | |
WARN - LoggingReportProcessor.process(46) |2017-02-09 17:50:56,816| Request: Report Request (38c94615-0ce5-45f2-bd0f-ed2244b7ffed)for My report to TsvReportRenderer | |
WARN - ReportServiceImpl.runReport(516) |2017-02-09 17:50:56,816| 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.GeneratedMethodAccessor697.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy84.runReport(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy85.runReport(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy85.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.55 sec | |
Running org.openmrs.module.reporting.data.patient.library.BuiltInPatientDataLibraryTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.587 sec | |
Running org.openmrs.module.reporting.data.obs.evaluator.PersonToObsEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.413 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.data.obs.evaluator.ObsIdDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.ConditionalParameterCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortsWithVaryingParametersDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.229 sec | |
Running org.openmrs.module.reporting.data.converter.PropertyConverterTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.274 sec | |
Running org.openmrs.module.reporting.data.person.service.PersonDataServiceImplTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.392 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.CodedObsCohortDefinitionEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.684 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.ObsForEncounterQueryEvaluatorTest | |
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.683 sec | |
Running org.openmrs.module.reporting.data.visit.evaluator.PatientToVisitDataEvaluatorTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:02,529| Number of batches to execute: 2 | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.431 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.ConditionalParameterEncounterQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 sec | |
Running org.openmrs.module.reporting.evaluation.querybuilder.HqlQueryBuilderTest | |
Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 7.686 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.PatientToEncounterDataEvaluatorTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:10,869| Number of batches to execute: 2 | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.438 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.MultiPeriodIndicatorDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.239 sec | |
Running org.openmrs.module.reporting.evaluation.EvaluationProfilerTest | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,271| 932 2017-02-09 17:51:11.271 > BEFORE EVALUATION_STARTED Super User (admin) | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,272| 932 2017-02-09 17:51:11.272 > BEFORE EVALUATING_DEFINITION CohortIndicator[type=COUNT,cohortDefinition=Male] | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,274| 932 2017-02-09 17:51:11.274 >> BEFORE EVALUATING_DEFINITION GenderCohortDefinition[males] | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,274| 932 2017-02-09 17:51:11.274 >> AFTER EVALUATING_DEFINITION 0(ms) 0(ms) GenderCohortDefinition[males] | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,275| 932 2017-02-09 17:51:11.275 > AFTER EVALUATING_DEFINITION 3(ms) 4(ms) CohortIndicator[type=COUNT,cohortDefinition=Male] | |
TRACE - EvaluationProfiler.log(119) |2017-02-09 17:51:11,275| 932 2017-02-09 17:51:11.275 > AFTER EVALUATION_COMPLETED 3(ms) 4(ms) 4(ms) | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterWithCodedObsCohortDefinitionEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.859 sec | |
Running org.openmrs.module.reporting.data.visit.evaluator.SqlVisitDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 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.215 sec | |
Running org.openmrs.module.reporting.evaluation.parameter.ParameterUtilTest | |
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.269 sec <<< FAILURE! | |
Running org.openmrs.module.reporting.report.service.db.PropertiesTypeTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.SimultaneousEncountersDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.36 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.EncountersForPatientDataEvaluatorTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:13,393| Number of batches to execute: 2 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:13,412| Number of batches to execute: 2 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:13,429| Number of batches to execute: 2 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:13,461| Number of batches to execute: 2 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:13,489| Number of batches to execute: 2 | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.299 sec | |
Running org.openmrs.module.reporting.query.person.service.PersonQueryServiceImplTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.408 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:51:14,922| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:51:14,963| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.reportingserializerxml | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.028 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.EvaluatableCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.151 sec | |
Running org.openmrs.module.reporting.report.definition.service.ReportDefinitionServiceImplTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.164 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.DefinitionLibraryPatientDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.632 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.data.person.evaluator.ConvertedPersonDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec | |
Running org.openmrs.module.reporting.validator.InStateCohortDefinitionValidatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortIndicatorDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec | |
Running org.openmrs.module.reporting.serializer.ReportingSerializerTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.874 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.ScriptedCompositionPatientDataEvaluatorTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:18,184| Number of batches to execute: 4 | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.576 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.SimplePatientDataSetEvaluatorTest | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:18,785| Number of batches to execute: 9 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:18,859| Number of batches to execute: 9 | |
INFO - PatientDataServiceImpl.executeEvaluator(80) |2017-02-09 17:51:18,931| Number of batches to execute: 9 | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.459 sec | |
Running org.openmrs.module.reporting.evaluation.service.EvaluationServiceTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.944 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.LogicDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.002 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.person.evaluator.BirthdateDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 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.435 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.25 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.BirthAndDeathCohortDefinitionEvaluatorTest | |
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.445 sec | |
Running org.openmrs.module.reporting.definition.converter.SqlCohortDefinitionConverterTest | |
INFO - SqlCohortDefinitionConverter.convertDefinition(82) |2017-02-09 17:51:26,850| Successfully converted SqlCohortDefinition named 'InvalidSqlCohortDefinition' to new format | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 sec | |
Running org.openmrs.module.reporting.query.person.evaluator.PatientPersonQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.ConvertedPatientDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.402 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.InverseCohortDefinitionEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.423 sec | |
Running org.openmrs.module.reporting.data.JoinDataDefinitionTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec | |
Running org.openmrs.module.reporting.data.converter.StringConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.ObsForPersonDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.698 sec | |
Running org.openmrs.module.reporting.validator.StaticCohortDefinitionValidatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.143 sec | |
Running org.openmrs.module.reporting.report.util.SqlScriptParserTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 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:51:29,759| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/patientId.sql | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:51:29,802| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/encounterDatetime.reportingserializerxml | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.034 sec | |
Running org.openmrs.module.reporting.data.obs.evaluator.EncounterToObsDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.435 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.EncounterCohortDefinitionEvaluatorTest | |
Tests run: 9, Failures: 0, Errors: 0, Skipped: 2, Time elapsed: 1.468 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.ScriptedCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.186 sec | |
Running org.openmrs.module.reporting.data.converter.BirthdateConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.137 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.VitalStatusDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.202 sec | |
Running org.openmrs.module.reporting.common.ReflectionUtilTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec | |
Running org.openmrs.module.reporting.report.renderer.ExcelTemplateRendererTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.248 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.PatientIdDataEvaluatorTest | |
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.411 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.CohortCrossTabDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.217 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.data.converter.ListConverterTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.calculation.PatientDataCalculationBehaviorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.645 sec | |
Running org.openmrs.module.reporting.data.visit.evaluator.PersonToVisitDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.403 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.DrugOrdersForPatientDataEvaluatorTest | |
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.222 sec | |
Running org.openmrs.module.reporting.definition.service.DefinitionServiceTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.148 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.RelationshipsForPersonDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.63 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.InProgramCohortDefinitionEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.065 sec | |
Running org.openmrs.module.reporting.common.ExcelBuilderTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 3.101 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.EncounterAndObsDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.306 sec | |
Running org.openmrs.module.reporting.data.visit.evaluator.VisitIdDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.395 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.PatientIdentifierCohortDefinitionEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.83 sec | |
Running org.openmrs.module.reporting.indicator.QueryCountIndicatorEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec | |
Running org.openmrs.module.reporting.report.renderer.TextTemplateRendererTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.704 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterIdDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.PresenceOrAbsenceCohortDefinitionEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.643 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.query.visit.evaluator.ActiveVisitQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.234 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.AgeCohortDefinitionEvaluatorTest | |
Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.734 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.SqlPatientDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.193 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.RepeatPerTimePeriodDataSetEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.053 sec | |
Running org.openmrs.module.reporting.validator.SqlCohortDefinitionValidatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.4 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.MappedParametersCohortDefinitionEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.205 sec | |
Running org.openmrs.module.reporting.data.obs.evaluator.PatientToObsDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.408 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.PreferredAddressDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.206 sec | |
Running org.openmrs.module.reporting.query.obs.service.ObsQueryServiceImplTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.205 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.DateObsCohortDefinitionEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.SqlEncounterDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.199 sec | |
Running org.openmrs.module.reporting.cohort.CohortsTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.414 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.data.encounter.evaluator.ConvertedEncounterDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.207 sec | |
Running org.openmrs.module.reporting.data.converter.BirthdateToAgeConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec | |
Running org.openmrs.module.reporting.report.renderer.CohortDetailReportRendererTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.292 sec | |
Running org.openmrs.module.reporting.query.obs.evaluator.BasicObsQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.252 sec | |
Running org.openmrs.module.reporting.indicator.PeriodIndicatorReportTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.416 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.PersonToEncounterDataEvaluatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.411 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.VisitCohortDefinitionEvaluatorTest | |
Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.006 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.PersonDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.194 sec | |
Running org.openmrs.module.reporting.query.person.evaluator.AllPersonQueryEvaluatorTest | |
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.162 sec | |
Running org.openmrs.module.reporting.validator.InProgramCohortDefinitionValidatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.417 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.CurrentPatientStateDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.221 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.validator.InverseCohortDefinitionValidatorTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.276 sec | |
Running org.openmrs.module.reporting.data.converter.PersonNameConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.13 sec | |
Running org.openmrs.module.reporting.data.visit.library.BuiltInVisitDataLibraryTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.157 sec | |
Running org.openmrs.module.reporting.evaluation.CachingCohortDefinitionTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.192 sec | |
Running org.openmrs.module.reporting.data.converter.ObsValueTextAsCodedConverterTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.402 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.MappedParametersEncounterQueryEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.212 sec | |
Running org.openmrs.module.reporting.report.service.MysqlReportServiceTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.001 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:51:56,863| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.sql | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:51:56,880| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.reportingserializerxml | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:51:56,908| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/females.groovy | |
INFO - BaseImplementerConfiguredDefinitionLibrary.loadDefinitions(121) |2017-02-09 17:51:57,392| Loading /Users/ivange/workspace/openmrs-module-reporting/api-tests/invalidCohortDefinition.groovy | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.543 sec | |
Running org.openmrs.module.reporting.indicator.SqlIndicatorTest | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:51:58,192| 1618 2017-02-09 17:51:58.192 > 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.GeneratedMethodAccessor1102.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.GeneratedMethodAccessor1102.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy130.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy23.evaluateToObject(Unknown Source) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy104.evaluateToObject(Unknown Source) | |
at org.openmrs.module.reporting.indicator.evaluator.SqlIndicatorEvaluator.evaluateSql(SqlIndicatorEvaluator.java:58) | |
... 67 more | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:51:58,796| 1626 2017-02-09 17:51:58.796 > 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.GeneratedMethodAccessor1102.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.GeneratedMethodAccessor1102.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy130.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.GeneratedMethodAccessor1105.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy23.evaluateToObject(Unknown Source) | |
at sun.reflect.GeneratedMethodAccessor1105.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.$Proxy104.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.635 sec | |
Running org.openmrs.module.reporting.query.encounter.service.EncounterQueryServiceImplTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.393 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.EncounterProviderDataEvaluatorTest | |
ERROR - EvaluationProfiler.log(116) |2017-02-09 17:52:00,420| 1643 2017-02-09 17:52:00.420 > 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.GeneratedMethodAccessor592.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.GeneratedMethodAccessor592.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) | |
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196) | |
at com.sun.proxy.$Proxy108.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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
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.222 sec | |
Running org.openmrs.module.reporting.definition.library.BaseDefinitionLibraryTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.534 sec | |
Running org.openmrs.module.reporting.report.renderer.ReportDesignRendererTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.267 sec | |
Running org.openmrs.module.reporting.dataset.definition.evaluator.LogicDataSetEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0 sec | |
Running org.openmrs.module.reporting.report.util.SqlUtilsTest | |
Tests run: 3, 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.389 sec | |
Running org.openmrs.module.reporting.data.person.evaluator.GenderDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.197 sec | |
Running org.openmrs.module.reporting.definition.library.AllDefinitionLibrariesComponentTest | |
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.268 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.data.patient.evaluator.PatientIdentifierDataEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.605 sec | |
Running org.openmrs.module.reporting.data.converter.NullValueConverterTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec | |
Running org.openmrs.module.reporting.data.patient.evaluator.ProgramStatesForPatientDataEvaluatorTest | |
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.896 sec | |
Running org.openmrs.module.reporting.cohort.definition.evaluator.CompositionCohortDefinitionEvaluatorTest | |
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.844 sec | |
Running org.openmrs.module.reporting.common.FractionTest | |
Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec | |
Running org.openmrs.module.reporting.query.encounter.evaluator.SqlEncounterQueryEvaluatorTest | |
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.594 sec | |
Running org.openmrs.module.reporting.validator.BaseObsCohortDefinitionValidatorTest | |
Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.597 sec | |
Running org.openmrs.module.reporting.data.encounter.evaluator.AuditInfoEncounterDataEvaluatorTest | |
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.163 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.264 s] | |
[INFO] Reporting API ...................................... SUCCESS [ 6.796 s] | |
[INFO] reporting Module api 1.9 ........................... SUCCESS [ 0.816 s] | |
[INFO] reporting Module api 2.0 ........................... SUCCESS [ 0.443 s] | |
[INFO] reporting API Tests ................................ FAILURE [02:18 min] | |
[INFO] Reporting OMOD ..................................... SKIPPED | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] BUILD FAILURE | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Total time: 02:26 min | |
[INFO] Finished at: 2017-02-09T17:52:08+01:00 | |
[INFO] Final Memory: 43M/602M | |
[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