-
Notifications
You must be signed in to change notification settings - Fork 38.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BeanNotOfRequiredTypeException
if @Bean
factory method returns null
#34543
Comments
BeanNotOfRequiredTypeException
if @Bean
factory method returns null
Related discussion: #33792 (comment) |
@felipe-issa-zebra could you share a bit more of the stacktrace? Specifically, the full stack inbetween the While returning |
Hi @jhoeller , Here is the complete stacktrace I have on intelij:
|
Ah so it's in the 6.2.3-introduced |
I've upgraded our app from spring 3.3.5 to 3.4.3 and on the newer version the app is throwing the following error on initialization:
This spring bean is created the following way:
If the bean is created, it works just fine. But when the scenario doesn't create the bean, the exception is thrown and the app is does not initialize.
The text was updated successfully, but these errors were encountered: