bahmni / bahmni-offline-sync Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
+Problem : +
Today after installing Bahmni connect on Bahmni version 0.92 , open mr fails to startup.
Analysis :
This is how the log looks,
Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventRecordServiceHelper' defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmniOfflineSync/bahmniOfflineSync.jar!/org/bahmni/module/bahmniOfflineSync/utils/EventRecordServiceHelper.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.bahmni.module.bahmniOfflineSync.utils.EventRecordServiceHelper]: Constructor threw exception; nested exception is java.lang.NullPointerException
org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eventRecordServiceHelper' defined in URL [jar:file:/opt/openmrs/.openmrs-lib-cache/bahmniOfflineSync/bahmniOfflineSync.jar!/org/bahmni/module/bahmniOfflineSync/utils/EventRecordServiceHelper.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.bahmni.module.bahmniOfflineSync.utils.EventRecordServiceHelper]: Constructor threw exception; nested exception is java.lang.NullPointerException
at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65)
at org.openmrs.web.Listener.contextInitialized(Listener.java:196)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4751)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5175)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
On looking into the code I found this ,
There is a space in between AtomFeedSpringTransactionManager .class
that is causing the issue. To test the theory I removed the space did a local build and deployed to confirm.
This issue exists on all versions of code beyond .91 so probably a hotfix for .92 and fix on the master would be required.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.