org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'context.loader': 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!)


Solutions on the web

Solution icon of googlegroups
Error creating bean with name 'context.loader': 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!)

Solution icon of googlegroups
via Google Groups by Frans Gouverne, 4 months ago
Error creating bean with name 'context.loader': 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!)

Solution icon of googlegroups
via Google Groups by Charlie Bunt, 4 months ago
Error creating bean with name 'context.loader': 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!)

Solution icon of github
Error creating bean with name 'context.loader': 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!)

Solution icon of github
Error creating bean with name 'org.springframework.boot.developertools.autoconfigure.LocalDeveloperToolsAutoConfiguration$LiveReloadConfiguration': 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!)

Solution icon of spring
via Spring JIRA by Archie Cobbs, 1 year ago
Error creating bean with name 'transactionManager': 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!)

Solution icon of spring
via Spring JIRA by Archie Cobbs, 1 year ago
Error creating bean with name 'transactionManager': 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!)

Solution icon of jasig
via Apereo Issues by Dan McCallum, 1 year ago
Error creating bean with name 'transactionManager': 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!)

Solution icon of web
via nabble.com by Unknown author, 1 year ago
Error creating bean with name 'org.apache.cxf.binding.soap.SoapBindingFactory': 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!)

Solution icon of web
via alfresco.com by Unknown author, 1 year ago
Error creating bean with name 'googledocs': 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!)

Stack trace

org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'context.loader': 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:209)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:400)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:390)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1140)[org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.BeanFactoryUtils.beansOfTypeIncludingAncestors(BeanFactoryUtils.java:226)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.BeanFactoryUtils.beanOfTypeIncludingAncestors(BeanFactoryUtils.java:318)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.red5.server.ContextLoader.uninit(ContextLoader.java:224)[red5.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_29]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_29]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_29]
	at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_29]
	at org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:273)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:199)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:487)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431)[org.springframework.beans-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048)[org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:433)[org.springframework.context-3.0.6.RELEASE.jar:3.0.6.RELEASE]
	at org.red5.server.Launcher.launch(Launcher.java:64)[red5.jar:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_29]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_29]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_29]
	at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_29]
	at org.red5.server.Bootstrap.bootStrap(Bootstrap.java:118)[boot.jar:na]
	at org.red5.server.Bootstrap.main(Bootstrap.java:49)[boot.jar:na]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 7 months ago
12 times, 1 day ago
64 times, 5 days ago
8 times, 1 month ago
24 more bugmates