AnsweredAssumed Answered

Alfresco 3.3 shutdown exception

Question asked by kma on Apr 16, 2010
Latest reply on Jun 9, 2010 by marcobusetto
Hi,

During shutdown of Alfresco 3.3, windows and Linux, I get the exception below.
This exception does only occur when we have installed our own module,
we do not see this on Alfresco 3.2.

Any idea what can cause this ?

Thanks,
Karsten

09:45:32,734 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'Synchronization' subsystem, ID: [Synchronization, default]
09:45:32,750 ERROR [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] Exception thrown from ApplicationListener handling ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'shutdownBackstop': 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)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:132)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:296)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:943)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
   at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.stop(ChildApplicationContextFactory.java:642)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.stop(AbstractPropertyBackedBean.java:485)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:357)
   at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.destroy(ChildApplicationContextFactory.java:327)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:342)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:977)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:953)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:363)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:78)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
09:45:32,921 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'Synchronization' subsystem, ID: [Synchronization, default]
09:45:32,921 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopping 'fileServers' subsystem, ID: [fileServers, default]
09:45:35,921 ERROR [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ChildApplicationContext] Exception thrown from ApplicationListener handling ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'shutdownBackstop': 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)
   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
   at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:132)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:296)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:943)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
   at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory$ApplicationContextState.stop(ChildApplicationContextFactory.java:642)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.stop(AbstractPropertyBackedBean.java:485)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:357)
   at org.alfresco.repo.management.subsystems.ChildApplicationContextFactory.destroy(ChildApplicationContextFactory.java:327)
   at org.alfresco.repo.management.subsystems.AbstractPropertyBackedBean.destroy(AbstractPropertyBackedBean.java:342)
   at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:184)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:486)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:462)
   at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:430)
   at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:977)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:953)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:917)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:363)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:78)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:584)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
   at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
09:45:36,078 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Stopped 'fileServers' subsystem, ID: [fileServers, default]

Outcomes