Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTTP Status 500 - Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-service.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.openmrs.module.sync.api.db.hibernate.usertype.GenericEnumUserType, at table: sync_record, for columns: [org.hibernate.mapping.Column(state)]
- type Exception report
- message Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-service.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.openmrs.module.sync.api.db.hibernate.usertype.GenericEnumUserType, at table: sync_record, for columns: [org.hibernate.mapping.Column(state)]
- description The server encountered an internal error that prevented it from fulfilling this request.
- exception
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-service.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.openmrs.module.sync.api.db.hibernate.usertype.GenericEnumUserType, at table: sync_record, for columns: [org.hibernate.mapping.Column(state)]
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
- org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
- org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
- org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:189)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:174)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:125)
- org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
- org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- root cause
- org.hibernate.MappingException: Could not determine type for: org.openmrs.module.sync.api.db.hibernate.usertype.GenericEnumUserType, at table: sync_record, for columns: [org.hibernate.mapping.Column(state)]
- org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:349)
- org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:322)
- org.hibernate.mapping.Property.isValid(Property.java:241)
- org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:496)
- org.hibernate.mapping.RootClass.validate(RootClass.java:270)
- org.hibernate.cfg.Configuration.validate(Configuration.java:1360)
- org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1851)
- org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1930)
- org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.buildSessionFactory(LocalSessionFactoryBuilder.java:372)
- org.springframework.orm.hibernate4.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:454)
- org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:439)
- org.openmrs.api.db.hibernate.HibernateSessionFactoryBean.afterPropertiesSet(HibernateSessionFactoryBean.java:187)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
- org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
- org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
- org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
- org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
- org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
- org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:962)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:189)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.lookupSessionFactory(OpenSessionInViewFilter.java:174)
- org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:125)
- org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.openmrs.web.filter.StartupFilter.doFilter(StartupFilter.java:105)
- org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
- org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement