Last active
March 3, 2020 22:08
-
-
Save bashir2/a53cecc2996dca3d1efa33ffda0709f5 to your computer and use it in GitHub Desktop.
OpenMRS FHIR and FHIR2 modules dependency injection conflict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WARN - AbstractApplicationContext.refresh(487) |2020-03-03 11:30:40,247| Exception encountered during context initialization - cancelling refresh attempt | |
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fhirPatientServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientTranslator org.openmrs.module.fhir2.api.impl.FhirPatientServiceImpl.translator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PractitionerReferenceTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractProvenanceHandlingTranslator.practitionerReferenceTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'practitionerReferenceTranslatorUserImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) | |
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) | |
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762) | |
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) | |
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) | |
at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:894) | |
at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:866) | |
at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:656) | |
at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:635) | |
at org.openmrs.web.Listener.startOpenmrs(Listener.java:266) | |
at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) | |
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientTranslator org.openmrs.module.fhir2.api.impl.FhirPatientServiceImpl.translator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PractitionerReferenceTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractProvenanceHandlingTranslator.practitionerReferenceTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'practitionerReferenceTranslatorUserImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) | |
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) | |
... 16 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PractitionerReferenceTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractProvenanceHandlingTranslator.practitionerReferenceTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'practitionerReferenceTranslatorUserImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) | |
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) | |
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) | |
... 18 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PractitionerReferenceTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractProvenanceHandlingTranslator.practitionerReferenceTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'practitionerReferenceTranslatorUserImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) | |
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) | |
... 29 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'practitionerReferenceTranslatorUserImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) | |
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) | |
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) | |
... 31 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.translators.PatientIdentifierTranslator org.openmrs.module.fhir2.api.translators.impl.AbstractReferenceHandlingTranslator.patientIdentifierTranslator; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) | |
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) | |
... 42 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'patientIdentifierTranslatorImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1202) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) | |
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) | |
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) | |
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) | |
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1127) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1051) | |
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:949) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:533) | |
... 44 more | |
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.openmrs.module.fhir2.api.FhirPatientService org.openmrs.module.fhir2.api.translators.impl.PatientIdentifierTranslatorImpl.patientService; nested exception is java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) | |
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) | |
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) | |
... 55 more | |
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/openmrs/util/OpenmrsClassLoader) previously initiated loading for a different type with name "ca/uhn/fhir/rest/param/StringOrListParam" | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Class.java:265) | |
at com.sun.proxy.$Proxy279.<clinit>(Unknown Source) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) | |
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment