Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
3.5
Description
So far we've only seen this happen on Windows machines. Sometimes, when restarting Confluence, Confluence fails to start up with the following error showing in the logs:
2011-07-04 21:25:35,419 INFO [main] [com.atlassian.confluence.lifecycle] <init> Loading EhCache cache manager 2011-07-04 21:25:42,486 ERROR [main] [springframework.web.context.ContextLoader] initWebApplicationContext Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'bundledPluginLoader' while setting constructor argument with index 1 with key [50]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with index 1 with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument with index 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bundledPluginLoader' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPluginFactory' while setting constructor argument with index 1 with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument with index 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPluginFactory' defined in class path resource [services/pluginServiceContext.xml]: Cannot resolve reference to bean 'osgiPersistentCache' while setting constructor argument with index 2; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'osgiPersistentCache': FactoryBean threw exception on object creation; nested exception is com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix Caused by: com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:91) at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.<init>(DefaultOsgiPersistentCache.java:37) at com.atlassian.confluence.plugin.spring.OsgiPersistentCacheFactory.getObject(OsgiPersistentCacheFactory.java:23) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean(AbstractBeanFactory.java:1246) at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1217) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:260) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:267) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:385) at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:121) ... Caused by: java.io.IOException: Unable to delete file: C:\Users\Administrator\bamboo-agent-home\xml-data\build-dir\CONFSTABTPM-TOM6SQL08R2-UPG\confluence-test-runner\confluence-multi-test\target\confluence-home\plugins-osgi-cache\felix\felix-cache\bundle9\version0.0\bundle.jar at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044) at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.validate(DefaultOsgiPersistentCache.java:87) ... 66 more
This might be due to resource leakage.