Indexation Post treatment

Ok ! I figure out the problem with some breakpoints inside SpringBeanContainer ^^

Here the explanation from my perspective :

when you end up here at the HibernateSearch failure handler creation

My bean is correctly referenced inside the beanFactory
image

But if you evaluate partially the line who get the bean you get the true UnsatisfiedDependencyException:

In fact, at this time the RootRepository i tried to Inject into my FailureHandler wasn’t ready but the Exception was hidden by the fallbackProducer included who seems by default, try to cast the declared string in the background_failure_handler configuration into a class

HSEARCH000529: Unable to find org.hibernate.search.engine.reporting.FailureHandler implementation class: toto

My mistake was to not be in debug log level but this kind of Exception is very hidden ^^

Anyway, i solved it by adding @Lazy

@Component("toto")
public class HibernateSearchFailureHandler implements FailureHandler {
	@Autowired
	@Lazy
	private IRootRepository rootRepository;

Thanks for the help :wink: