Hello guys,
i have an issue when i try to start my project with the 6.0.0.Alpha7 version.
*Configuration*
{code:java}hibernateProperties.put("hibernate.search.backend.myBackend.host", "http://127.0.0.1:9200"); hibernateProperties.put("hibernate.search.backends.myBackend.type", "elasticsearch"); hibernateProperties.put("hibernate.search.default_backend", "myBackend");{code}
*Error log*
{code:java}Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [com/xxxxx/xxxxx/configuration/HibernateConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.search.util.common.SearchException: HSEARCH000520: Hibernate Search bootstrap failed. Failures:
Hibernate ORM mapping: type 'com.xxxx.xxxx.business.Courriel': index 'com.xxxx.xxxx.business.Courriel': failures: - HSEARCH000501: Unable to convert configuration property 'hibernate.search.backends.myBackend.type' with value 'elasticsearch': No qualifying bean of type 'org.hibernate.search.engine.backend.spi.BackendFactory' available at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1744) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:576) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:498) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:273) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1241) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1168) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:595) ... 101 common frames omitted{code}
i look into it and it appears the bean is correctly referenced in spring context explicitConfiguredBeans (see my screen1 attached) but when the method _createBackend_ in {color:#59afe1}IndexManagerBuildingStateHolder{color} try to instanciate the context, it's not working.
!screen1 (81f203d5-aeaf-4692-b680-4e61e75a2d73).JPG|width=1146,height=686!
On this other screen, you can see the error occurs when the {{AbstractConfigurationProperty}} try to get the bean from the spring context.
!screen2 (b7b1b7aa-4a22-4ea1-89f0-3bcaa00587d4).JPG|width=1453,height=368!
Do you have any ideas? |
|