Skip to content

BeanCreationNotAllowedException: Singleton bean creation not allowed while the singletons of this factory are in destruction #33130

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

Closed
aurelio-fi opened this issue Jul 1, 2024 · 3 comments

Comments

@aurelio-fi
Copy link

aurelio-fi commented Jul 1, 2024

I am using Spring 4.3.2.RELEASE.

I have had no problems, until I upgraded my Oracle database version from 12c to 19c.

Since then every now and then I have this error.

org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'myBean': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:216) ~[spring-beans-4.3.2.RELEASE.jar!/:4.3.2.RELEASE]

This problem occurs from time to time. When it happens I restart my app and everything goes back to normal. There are days that go by without problems in my application. Please help.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 1, 2024
@sbrannen
Copy link
Member

sbrannen commented Jul 1, 2024

Hi @aurelio-fi,

Spring Framework 4.3.2 is no longer supported

Please upgrade to a supported version and let us know if the issue persists.

Thanks

@sbrannen sbrannen added the status: waiting-for-feedback We need additional information before we can continue label Jul 1, 2024
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jul 8, 2024
@spring-projects-issues
Copy link
Collaborator

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

@spring-projects-issues spring-projects-issues closed this as not planned Won't fix, can't repro, duplicate, stale Jul 15, 2024
@spring-projects-issues spring-projects-issues removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged or decided on labels Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants