Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Motech 2062 OpenLMIS integration Module #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Motech 2062 OpenLMIS integration Module #229

wants to merge 2 commits into from

Conversation

paulthalluri
Copy link
Contributor

No description provided.

@motech-gerrit
Copy link

Can one of the admins verify this patch?

2 similar comments
@motech-gerrit
Copy link

Can one of the admins verify this patch?

@motech-gerrit
Copy link

Can one of the admins verify this patch?

@pgesek
Copy link
Member

pgesek commented Apr 1, 2016

test this please

@craigappl
Copy link
Contributor

@paulthalluri or @atish160384 Can we get this updated for MOTECH 0.29 and tested? Note that we just upgraded spring.

I'm getting a dependency error when trying to install it:
2016-04-13 13:51:27,711 ERROR [org.motechproject.mds.osgi.MdsBundleWatcher] The org.motechproject.open-lmis [79] bundle cannot be resolved. This might indicate a problem with bundle dependencies. Any further exceptions are most likely caused by this problem. org.osgi.framework.BundleException: Unresolved constraint in bundle org.motechproject.open-lmis [79]: Unable to resolve 79.0: missing requirement [79.0] osgi.wiring.package; (osgi.wiring.package=org.motechproject.server.config) at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3974) at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1824) at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:937) at org.motechproject.mds.osgi.MdsBundleWatcher.assertBundleClassLoading(MdsBundleWatcher.java:234) at org.motechproject.mds.osgi.MdsBundleWatcher.process(MdsBundleWatcher.java:218) at org.motechproject.mds.osgi.MdsBundleWatcher.processInstalledBundles(MdsBundleWatcher.java:151) at org.motechproject.mds.osgi.MdsBundleWatcher.start(MdsBundleWatcher.java:87) at org.motechproject.mds.MDSInitializer.initMDS(MDSInitializer.java:67) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:344) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:295) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) at java.lang.Thread.run(Thread.java:745) 2016-04-13 13:51:28,079 ERROR [org.motechproject.server.osgi.status.PlatformStatusManagerImpl] org.motechproject.motech-platform-dataservices failed to start due to Error creating bean with name 'mdsInitializer': Invocation of init method failed; nested exception is org.motechproject.mds.exception.init.MdsInitializationException: Error while starting MDS Annotation Processor: could not get type for name org.motechproject.openlmis.domain.GeographicZone 2016-04-13 13:51:28,082 ERROR [org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener] Application context refresh failed (MotechOsgiConfigurableApplicationContext(bundle=org.motechproject.motech-platform-dataservices, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mdsInitializer': Invocation of init method failed; nested exception is org.motechproject.mds.exception.init.MdsInitializationException: Error while starting MDS Annotation Processor: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) at java.lang.Thread.run(Thread.java:745) Caused by: org.motechproject.mds.exception.init.MdsInitializationException: Error while starting MDS Annotation Processor: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.motechproject.mds.MDSInitializer.initMDS(MDSInitializer.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:344) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:295) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130) ... 16 more Caused by: org.reflections.ReflectionsException: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:389) at org.reflections.ReflectionUtils.forNames(ReflectionUtils.java:398) at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:385) at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:370) at org.motechproject.mds.reflections.ReflectionsUtil.getClasses(ReflectionsUtil.java:95) at org.motechproject.mds.annotations.internal.EntityProcessor.getElementsToProcess(EntityProcessor.java:82) at org.motechproject.mds.annotations.internal.AbstractProcessor.execute(AbstractProcessor.java:63) at org.motechproject.mds.annotations.internal.MDSAnnotationProcessor.processAnnotations(MDSAnnotationProcessor.java:37) at org.motechproject.mds.osgi.MdsBundleWatcher.process(MdsBundleWatcher.java:221) at org.motechproject.mds.osgi.MdsBundleWatcher.processInstalledBundles(MdsBundleWatcher.java:151) at org.motechproject.mds.osgi.MdsBundleWatcher.start(MdsBundleWatcher.java:87) at org.motechproject.mds.MDSInitializer.initMDS(MDSInitializer.java:67) ... 23 more 2016-04-13 13:51:28,086 ERROR [org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [org.motechproject.motech-platform-dataservices], unsatisfied dependencies: none org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mdsInitializer': Invocation of init method failed; nested exception is org.motechproject.mds.exception.init.MdsInitializationException: Error while starting MDS Annotation Processor: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1507) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:938) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:60) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:325) at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:290) at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137) at java.lang.Thread.run(Thread.java:745) Caused by: org.motechproject.mds.exception.init.MdsInitializationException: Error while starting MDS Annotation Processor: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.motechproject.mds.MDSInitializer.initMDS(MDSInitializer.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:344) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:295) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:130) ... 16 more Caused by: org.reflections.ReflectionsException: could not get type for name org.motechproject.openlmis.domain.GeographicZone at org.reflections.ReflectionUtils.forName(ReflectionUtils.java:389) at org.reflections.ReflectionUtils.forNames(ReflectionUtils.java:398) at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:385) at org.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:370) at org.motechproject.mds.reflections.ReflectionsUtil.getClasses(ReflectionsUtil.java:95) at org.motechproject.mds.annotations.internal.EntityProcessor.getElementsToProcess(EntityProcessor.java:82) at org.motechproject.mds.annotations.internal.AbstractProcessor.execute(AbstractProcessor.java:63) at org.motechproject.mds.annotations.internal.MDSAnnotationProcessor.processAnnotations(MDSAnnotationProcessor.java:37) at org.motechproject.mds.osgi.MdsBundleWatcher.process(MdsBundleWatcher.java:221) at org.motechproject.mds.osgi.MdsBundleWatcher.processInstalledBundles(MdsBundleWatcher.java:151) at org.motechproject.mds.osgi.MdsBundleWatcher.start(MdsBundleWatcher.java:87) at org.motechproject.mds.MDSInitializer.initMDS(MDSInitializer.java:67) ... 23 more

@llavoie
Copy link
Member

llavoie commented Jun 21, 2016

@shanmukhm will merge master into this branch and then it should be CR'ed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants