Skip to content

Instantly share code, notes, and snippets.

@ssmusoke
Created June 24, 2016 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ssmusoke/f7a461a1e4c6a7e0479da83ee9447431 to your computer and use it in GitHub Desktop.
Save ssmusoke/f7a461a1e4c6a7e0479da83ee9447431 to your computer and use it in GitHub Desktop.
Stephens-MacBook-Pro:openmrs-module-aijar ssmusoke$ mvn test
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.openmrs.module:aijar-api:jar:1.0.10-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.openmrs.web:openmrs-web:jar -> duplicate declaration of version (?) @ org.openmrs.module:aijar-api:[unknown-version], /Users/ssmusoke/IdeaProjects/openmrs-module-aijar/api/pom.xml, line 46, column 15
[WARNING]
[WARNING] Some problems were encountered while building the effective model for org.openmrs.module:aijar-omod:jar:1.0.10-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.openmrs.maven.plugins:maven-openmrs-plugin is missing. @ org.openmrs.module:aijar-omod:[unknown-version], /Users/ssmusoke/IdeaProjects/openmrs-module-aijar/omod/pom.xml, line 176, column 12
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Aijar
[INFO] aijar Module API
[INFO] aijar Module OMOD
[INFO] aijar tools Module
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Aijar 1.0.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building aijar Module API 1.0.10-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ aijar-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 9 resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ aijar-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ aijar-api ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ aijar-api ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ aijar-api ---
[INFO] Surefire report directory: /Users/ssmusoke/IdeaProjects/openmrs-module-aijar/api/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.openmrs.module.aijar.activator.HTMLFormsInitializerTest
ERROR - TestContextManager.prepareTestInstance(309) |2016-06-24 13:54:43,956| Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@32fcd72e] to prepare test instance [org.openmrs.module.aijar.activator.HTMLFormsInitializerTest@75932728]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:122)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:307)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stringToHtmlFormConverter': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.HtmlFormEntryService org.openmrs.module.htmlformentryui.converter.StringToHtmlFormConverter.htmlFormEntryService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrEncounterService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrEncounterServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrEncounterServiceTarget' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'encounterObservationServiceHelper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationServiceHelper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'obsMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'obsMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encounterTransactionMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/org/openmrs/module/emrapi/encounter/EncounterTransactionMapper.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.openmrs.module.emrapi.encounter.EncounterObservationsMapper]: : Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrVisitService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.visit.EmrVisitServiceImpl#3d7f0649' of type [org.openmrs.module.emrapi.visit.EmrVisitServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.visit.EmrVisitServiceImpl#3d7f0649' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'visitResponseMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'visitResponseMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'encounterTransactionMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encounterTransactionMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/org/openmrs/module/emrapi/encounter/EncounterTransactionMapper.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.openmrs.module.emrapi.encounter.EncounterObservationsMapper]: : Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'htmlFormEntryService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/htmlformentry-api/2.6/htmlformentry-api-2.6.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl#72bdbaa2' of type [org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl#72bdbaa2' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/htmlformentry-api/2.6/htmlformentry-api-2.6.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler#19e1898d' of type [org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler] while setting bean property 'handlers' with key [TypedStringValue: value [drugOrder], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler#19e1898d': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.handler.DrugOrderTagHandlerSupport org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler.handler; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.handler.DrugOrderTagHandlerSupport] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
... 32 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.HtmlFormEntryService org.openmrs.module.htmlformentryui.converter.StringToHtmlFormConverter.htmlFormEntryService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
... 48 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:988)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
... 50 more
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 18.414 sec <<< FAILURE!
validate_formsAreWellFormed(org.openmrs.module.aijar.activator.HTMLFormsInitializerTest) Time elapsed: 18.029 sec <<< ERROR!
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99)
at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:122)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:307)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:211)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:288)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:284)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:88)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stringToHtmlFormConverter': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.HtmlFormEntryService org.openmrs.module.htmlformentryui.converter.StringToHtmlFormConverter.htmlFormEntryService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrEncounterService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'emrEncounterServiceTarget' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrEncounterServiceTarget' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'encounterObservationServiceHelper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationServiceHelper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'obsMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'obsMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encounterTransactionMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/org/openmrs/module/emrapi/encounter/EncounterTransactionMapper.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.openmrs.module.emrapi.encounter.EncounterObservationsMapper]: : Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emrVisitService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.emrapi.visit.EmrVisitServiceImpl#3d7f0649' of type [org.openmrs.module.emrapi.visit.EmrVisitServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.emrapi.visit.EmrVisitServiceImpl#3d7f0649' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'visitResponseMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'visitResponseMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'encounterTransactionMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encounterTransactionMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/org/openmrs/module/emrapi/encounter/EncounterTransactionMapper.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.openmrs.module.emrapi.encounter.EncounterObservationsMapper]: : Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encounterObservationsMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'observationMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'observationMapper' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean 'drugMapper' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'drugMapper' is defined
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'htmlFormEntryService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/htmlformentry-api/2.6/htmlformentry-api-2.6.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl#72bdbaa2' of type [org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.htmlformentry.impl.HtmlFormEntryServiceImpl#72bdbaa2' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/htmlformentry-api/2.6/htmlformentry-api-2.6.jar!/moduleApplicationContext.xml]: Cannot create inner bean 'org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler#19e1898d' of type [org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler] while setting bean property 'handlers' with key [TypedStringValue: value [drugOrder], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler#19e1898d': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.handler.DrugOrderTagHandlerSupport org.openmrs.module.htmlformentry.handler.DrugOrderTagHandler.handler; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.handler.DrugOrderTagHandlerSupport] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'accountService' defined in URL [jar:file:/Users/ssmusoke/.m2/repository/org/openmrs/module/emrapi-api/1.12/emrapi-api-1.12.jar!/moduleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: Lorg/openmrs/module/providermanagement/api/ProviderManagementService;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:120)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:100)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:64)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:91)
... 32 more
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: org.openmrs.module.htmlformentry.HtmlFormEntryService org.openmrs.module.htmlformentryui.converter.StringToHtmlFormConverter.htmlFormEntryService; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
... 48 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.openmrs.module.htmlformentry.HtmlFormEntryService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=htmlFormEntryService)}
at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:988)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:858)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
... 50 more
Running org.openmrs.module.aijar.identifier.EIDIdentifierValidatorTest
Tests run: 22, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.226 sec
Results :
Tests in error:
validate_formsAreWellFormed(org.openmrs.module.aijar.activator.HTMLFormsInitializerTest): Failed to load ApplicationContext
Tests run: 23, Failures: 0, Errors: 1, Skipped: 0
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Aijar .............................................. SUCCESS [ 0.022 s]
[INFO] aijar Module API ................................... FAILURE [ 22.399 s]
[INFO] aijar Module OMOD .................................. SKIPPED
[INFO] aijar tools Module ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.082 s
[INFO] Finished at: 2016-06-24T13:54:44-07:00
[INFO] Final Memory: 17M/970M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project aijar-api: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/ssmusoke/IdeaProjects/openmrs-module-aijar/api/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :aijar-api
Stephens-MacBook-Pro:openmrs-module-aijar ssmusoke$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment