[SOLVED] OpenERP fails to sync data from OpenMRS in Bahmni

Hi:

The bahmni-erp-connect log shows that

==================================================== 2016-02-05 13:31:30,536 WARN [openerp-atomfeed-service] [org.springframework.web.context.support.XmlWebApplicationContext] Exception thrown from ApplicationListener handling ContextClosedEvent java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call ‘refresh’ before multicasting events via the context: Root WebApplicationContext: startup

After analyse the log, It is spring framework throwing the exception. This is because of java 1.8 version. Once we changed to java version 1.7 and restarted the machine, it works fine.