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

UpgradeUtil should not use APIException that accesses MessageSourceService

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: