Reporting Module error?

I put te Reporting Module to the modules directory, restarted Tomcat and now it says OpenMRS is not able to start. The following is the error message I get. What is it advised to do?

The following error occurred at startup: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘deleteOldAdHocReportDefinitionsTask’ defined in URL [jar:file:/C:/Windows/Temp/1461439048735.openmrs-lib-cache/reportingrest/reportingrest.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.hibernate.impl.SessionFactoryImpl’ to required type ‘org.openmrs.api.db.hibernate.DbSessionFactory’ for property ‘sessionFactory’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found

org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘deleteOldAdHocReportDefinitionsTask’ defined in URL [jar:file:/C:/Windows/Temp/1461439048735.openmrs-lib-cache/reportingrest/reportingrest.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.hibernate.impl.SessionFactoryImpl’ to required type ‘org.openmrs.api.db.hibernate.DbSessionFactory’ for property ‘sessionFactory’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:64) at org.openmrs.web.Listener.contextInitialized(Listener.java:180) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘deleteOldAdHocReportDefinitionsTask’ defined in URL [jar:file:/C:/Windows/Temp/1461439048735.openmrs-lib-cache/reportingrest/reportingrest.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.hibernate.impl.SessionFactoryImpl’ to required type ‘org.openmrs.api.db.hibernate.DbSessionFactory’ for property ‘sessionFactory’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found at org.openmrs.web.Listener.startOpenmrs(Listener.java:260) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘deleteOldAdHocReportDefinitionsTask’ defined in URL [jar:file:/C:/Windows/Temp/1461439048735.openmrs-lib-cache/reportingrest/reportingrest.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.hibernate.impl.SessionFactoryImpl’ to required type ‘org.openmrs.api.db.hibernate.DbSessionFactory’ for property ‘sessionFactory’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529) 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.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:832) at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:962) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:630) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:609) at org.openmrs.web.Listener.startOpenmrs(Listener.java:252) … 1 more Caused by: org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type ‘org.hibernate.impl.SessionFactoryImpl’ to required type ‘org.openmrs.api.db.hibernate.DbSessionFactory’ for property ‘sessionFactory’; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:463) at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494) at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1463) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1422) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) … 14 more Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.hibernate.impl.SessionFactoryImpl] to required type [org.openmrs.api.db.hibernate.DbSessionFactory] for property ‘sessionFactory’: no matching editors or conversion strategy found at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:267) at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448) … 20 more

You need to provider the versions you are using for the platform, reporting and reportingrest modules

@dkayiwa These are the versions I’m using:

OpenMRS version 2.3.1 Reporting Module 0.9.9 Reportingrest 1.5

Use reporting rest version 1.6

1 Like

Fixed!

Thanks for the help, as always @dkayiwa

Thanks bro!

I ran into a similar challenge & your post helped me fix it and get back on track.