Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-3060

Database setup wizard fails to complete

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Medium

      Description

      When i run the database setup wizard using the current trunk, it does not complete because of an exception as per the stack trace below:

      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::1226412230538-40::ben (generated) ran successfully in 6ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::1226412230538-41::isurundt ran successfully in 41ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::1226348923233-9::ben (generated) ran successfully in 9ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::insert-demo-visit-types::dkayiwa ran successfully in 12ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::insert-demo-encounter-roles::dkayiwa ran successfully in 6ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::insert-demo-providers::dkayiwa ran successfully in 8ms
      INFO 2/15/12 2:57 PM:liquibase: ChangeSet liquibase-demo-data.xml::enable-foreign-key-checks::ben ran successfully in 1ms
      INFO 2/15/12 2:57 PM:liquibase: Successfully released change log lock
      INFO 2/15/12 2:57 PM:liquibase: Reading from `liquibasechangelog`
      INFO 2/15/12 2:57 PM:liquibase: Successfully acquired change log lock
      INFO 2/15/12 2:58 PM:liquibase: Successfully released change log lock
      WARN - InitializationFilter$InitializationCompletion$1.run(1531) |2012-02-15 14:58:00,424| Error while trying to update to the latest database version
      org.openmrs.util.DatabaseUpdateException: There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: null
      	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:152)
      	at org.openmrs.web.filter.initialization.InitializationFilter$InitializationCompletion$1.run(InitializationFilter.java:1525)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.NullPointerException
      	at liquibase.changelog.DatabaseChangeLog.getChangeSet(DatabaseChangeLog.java:91)
      	at liquibase.changelog.DatabaseChangeLog.getChangeSet(DatabaseChangeLog.java:146)
      	at liquibase.database.AbstractDatabase.checkDatabaseChangeLogTable(AbstractDatabase.java:504)
      	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:225)
      	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:164)
      	at org.openmrs.util.DatabaseUpdater.executeChangelog(DatabaseUpdater.java:149)
      	... 2 more
      

        Attachments

          Activity

            People

            • Assignee:
              dkayiwa Daniel Kayiwa
              Reporter:
              dkayiwa Daniel Kayiwa
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: