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

UpgradeUtil should not use APIException that accesses MessageSourceService

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When upgrading OpenMRS versions before 1.10 to 2.x, you get this error message:

      ???There was an error while updating the database to the latest. file: liquibase-update-to-latest.xml. Error: Migration failed for change set liquibase-update-to-latest.xml::201401101647-TRUNK-4187::wyclif:???
      ??? liquibase-update-to-latest.xml : Service not found: interface org.openmrs.messagesource.MessageSourceService???
      Unable to update the database. See server error logs for the full stacktrace.
      ??? Caused By: Precondition Error???
      ??? Reason: ???
      ???:???
      

      Which is caused by the fact that UpgradeUtil uses an APIException constructor that calls Context.getMessageSourceService().getMessage() which fails because spring is not yet set up.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                dkayiwa Daniel Kayiwa
                dkayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: