We're updating the issue view to help you get more done. 

Hibernate Search bootstrap failed

Description

Hello guys,

i have an issue when i try to start my project with the 6.0.0.Alpha7 version.

Configuration

1 2 3 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");

Error log

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 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

i look into it and it appears the bean is correctly referenced in explicitConfiguredBeans (see my screen1 attached)
but when the method createBackend in IndexManagerBuildingStateHolder try to instanciate the context, it's not working.

 

On this other screen, you can see the error occurs when the AbstractConfigurationProperty try to get the bean.

Do you have any ideas?

Environment

Spring 5 + Hibernate 5.4.x

Status

Assignee

Yoann Rodière

Reporter

Alexis CUCUMEL

Suitable for new contributors

Yes, likely

Pull Request

None

Feedback Requested

None

Components

Affects versions

6.0.0.Alpha7

Priority

Major