Skip to content

Initializer fails OpenMRS startup if running emrapi 3.3.0 #325

Description

@mseaton

We are running the latest initializer snapshot (2.12.0-SNAPSHOT) along with emrapi 3.3.0 and OpenMRS is failing to start, presumably due to 9b8e9ff

The error is:

WARN - AbstractApplicationContext.refresh(591) |2026-06-04T08:35:36,516| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'procedureTypesLoader': Unsatisfied dependency expressed through method 'setParser' parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'procedureTypesCsvParser': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.openmrs.module.initializer.api.procedure.ProcedureTypesCsvParser] from ClassLoader [{ModuleClassLoader: uid=1250730284; initializer}]
INFO - ServiceContext.doneRefreshingContext(852) |2026-06-04T08:35:36,526| Done refreshing Context
Exception in thread "pool-2-thread-10" Exception in thread "pool-2-thread-7" Exception in thread "pool-2-thread-8" Exception in thread "pool-2-thread-9" Exception in thread "pool-2-thread-3" org.openmrs.module.ModuleException: Unable to run onStartup() method of service {} Module: $Proxy333

This is easily reproducible by just setting up an OpenMRS SDK server using these distro properties below, and starting it up:

name=Iniz Test
version=1.0.0-SNAPSHOT
war.openmrs=2.8.6
omod.addresshierarchy=2.21.0
omod.appframework=2.19.0
omod.appui=1.18.0
omod.authentication=2.3.0
omod.authenticationui=1.3.0
omod.calculation=2.0.0
omod.coreapps=3.4.0
omod.emrapi=3.3.0
omod.event.groupId=org.openmrs
omod.event=4.0.0
omod.fhir2=3.1.0-SNAPSHOT
omod.htmlformentry=7.2.1
omod.htmlformentryui=3.2.0
omod.htmlwidgets=2.0.1
omod.idgen=5.0.4
omod.initializer=2.12.0-SNAPSHOT
omod.legacyui=2.1.0
omod.metadatadeploy=1.13.0
omod.metadatamapping=2.0.0
omod.metadatasharing=1.10.0
omod.namephonetics=1.19.0
omod.owa=1.15.0
omod.registrationapp=1.29.0
omod.registrationcore=1.13.0
omod.reporting=2.1.0
omod.reportingcompatibility=2.10.0
omod.reportingrest=2.0.0
omod.reportingui=1.14.0
omod.serialization.xstream.type=omod
omod.serialization.xstream=0.3.0
omod.spa=2.1.0
omod.uicommons=3.1.0
omod.uiframework=4.0.0
omod.uilibrary=2.0.7
omod.webservices.rest=3.4.1

property.initializer.startup.load=fail_on_error

db.h2.supported=false

@wikumChamith / @ibacher FYI

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions