i have an issue when i try to start my project with the 6.0.0.Alpha7 version.
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?
Spring 5 + Hibernate 5.4.x
Thanks for the (very detailed!) report.
This kind of error could potentially happen on older versions of Spring that did not implement Hibernate ORM's dependency injection mechanisms correctly. Essentially they forgot to call the fallback provided by ORM/Search, so if a bean was not found in Spring, Hibernate Search was never given a chance to search among its own (internal) bean definitions.
Which version of Spring are you using? All versions with the following fix should work correctly: https://github.com/spring-projects/spring-framework/commit/17caac8f1fd53f54270e799a6c754dac9f3a6e60#diff-0e3dfb02e10b8638a2d7ba221e8448cb
These versions appear to include the fix: v5.2.0.M3 v5.2.0.M2 v5.2.0.M1 v5.1.8.RELEASE v5.1.7.RELEASE v5.1.6.RELEASE v5.1.5.RELEASE
I don't know of any workaround, except upgrading your Spring dependency.
On an unrelated note, you may want to know there's a typo in your configuration. This:
Should be this:
("backend" => "backends")
Thanks Yoann for the reply !
Unfortunatly i’am on Spring 5.1.0.RELEASE so i will try to upgrade for check
I will keep you updated
It’s working on spring 5.1.0.RELEASE with an additional upgrade of Gson to 2.8.5 (i was in 2.6.1 and the size api of JsonObject was missing)
Thx for the tips !
It’s working on spring 5.1.0.RELEASE
I suppose you mean 5.1.5.RELEASE or later. Thanks for the feedback!
Closing, since the bug is not in Hibernate Search.
Yes ! exactly