Plan for OpenMRS Core 1.11.x

Build: #53 failed

Job: Integration Test failed

Stages & jobs

  1. Build and Test

  2. Deploy

Should upgrade from clean1 9to1 10: Test case result

The below summarizes the result of the test "Should upgrade from clean1 9to1 10" in build 53 of OpenMRS Core - OpenMRS Core 1.11.x - Integration Test. View test case history
Description
Should upgrade from clean1 9to1 10
Test class
org.openmrs.util.databasechange.Database1_9_7UpgradeIT
Method
shouldUpgradeFromClean1_9To1_10
Duration
11 secs
Status
Failed (New Failure)

Error Log

java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201312201523-TRUNK-4138::banka:      Reason: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement: Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:           Caused By: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement: Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:           Caused By: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement: Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:           Caused By: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement: Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:           Caused By: Column "DATE_ACTIVATED" not found; SQL statement: Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
java.io.IOException: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201312201523-TRUNK-4138::banka:
     Reason: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:233)
	at org.openmrs.util.databasechange.Database1_9_7UpgradeIT.shouldUpgradeFromClean1_9To1_10(Database1_9_7UpgradeIT.java:125)
	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.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:168)
	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	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.junit.runners.ParentRunner.run(ParentRunner.java:309)
	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: liquibase.exception.MigrationFailedException: Migration failed for change set liquibase-update-to-latest.xml::201312201523-TRUNK-4138::banka:
     Reason: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]:
          Caused By: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:347)
	at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:27)
	at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:58)
	at liquibase.Liquibase.update(Liquibase.java:114)
	at org.openmrs.util.databasechange.DatabaseUpgradeTestUtil.upgrade(DatabaseUpgradeTestUtil.java:228)
	... 32 more
Caused by: liquibase.exception.UnexpectedLiquibaseException: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
	at liquibase.change.custom.CustomChangeWrapper.generateStatements(CustomChangeWrapper.java:115)
	at liquibase.database.AbstractDatabase.executeStatements(AbstractDatabase.java:1073)
	at liquibase.changelog.ChangeSet.execute(ChangeSet.java:317)
	... 36 more
Caused by: liquibase.exception.CustomChangeException: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
	at org.openmrs.util.databasechange.CreateDiscontinueOrders.handleError(CreateDiscontinueOrders.java:119)
	at org.openmrs.util.databasechange.CreateDiscontinueOrders.createDiscontinueOrders(CreateDiscontinueOrders.java:94)
	at org.openmrs.util.databasechange.CreateDiscontinueOrders.execute(CreateDiscontinueOrders.java:43)
	at liquibase.change.custom.CustomChangeWrapper.generateStatements(CustomChangeWrapper.java:110)
	... 38 more
Caused by: liquibase.exception.DatabaseException: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-173]
	at liquibase.database.jvm.JdbcConnection.prepareStatement(JdbcConnection.java:294)
	at org.openmrs.util.databasechange.CreateDiscontinueOrders.createDiscontinueOrders(CreateDiscontinueOrders.java:62)
	... 40 more
Caused by: org.h2.jdbc.JdbcSQLException: Column "DATE_ACTIVATED" not found; SQL statement:
Insert into orders(previous_order_id, concept_id, patient_id, encounter_id, creator, date_created, discontinued_reason, discontinued_reason_non_coded, uuid, order_action, orderer, order_number, order_type_id, date_activated, auto_expire_date) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [42122-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.table.Table.getColumn(Table.java:613)
	at org.h2.command.Parser.parseColumn(Parser.java:805)
	at org.h2.command.Parser.parseColumnList(Parser.java:790)
	at org.h2.command.Parser.parseInsert(Parser.java:983)
	at org.h2.command.Parser.parsePrepared(Parser.java:375)
	at org.h2.command.Parser.parse(Parser.java:279)
	at org.h2.command.Parser.parse(Parser.java:251)
	at org.h2.command.Parser.prepareCommand(Parser.java:218)
	at org.h2.engine.Session.prepareLocal(Session.java:428)
	at org.h2.engine.Session.prepareCommand(Session.java:377)
	at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1138)
	at org.h2.jdbc.JdbcPreparedStatement.<init>(JdbcPreparedStatement.java:70)
	at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:267)
	at liquibase.database.jvm.JdbcConnection.prepareStatement(JdbcConnection.java:292)
	... 41 more