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.

Comment From: sbrannen

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

Comment From: spring-projects-issues

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.

Comment From: spring-projects-issues

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.