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
NoSuchBeanDefinitionException for org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry when trying to publish AvailabilityChangeEvent during context close processing after refresh failure #21588
Comments
I believe the problem will occur when refresh fails in any application with an When the refresh fails, the Lines 137 to 141 in 840b029
I think we should be able to fix the problem by only publishing the |
Just FYI, since I posted initially the problem we had in #21507 (comment), we are not using the Reactive stack, but the Servlet one. Although I assume the problem is similar between both of the stacks. |
@filiphr Thanks for double-checking. Yeah, the servlet web server application context has the same problem. |
I just upgraded spring boot to 2.3.0-RELEASE and encountered this issue. Is there a workaround for this? Or do I need to stay with 2.2.x until 2.3.1 is released? |
There's no workaround, but the problem is somewhat benign. It will only occur as a result of an earlier failure to refresh the application context. If you address the cause of the refresh failure, the problem fixed by this issue will not occur. |
Ah thanks I figured it out.
It seems like ^ Sorry if this is not strictly related. |
That's right. Please see this section of the release notes for details. |
I am also experiencing the same issue regarding |
@chandlerb Have you follow the release notes section referenced above? |
Hi @chandlerb what s the solution? |
I'm wondering, under what circumstances would this line of code be triggered. If there is no scene, why not just delete it.
|
The text was updated successfully, but these errors were encountered: