java.lang.IllegalStateException: Invalid BundleContext.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The following happens in the logs: {noformat} 2009-08-31 10:40:40,561 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.atlassian.gadgets.publisher, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.templaterenderer.api, com.atlassian.jira.oauth.serviceprovider, com.atlassian.jira.oauth.consumer, com.atlassian.gadgets.embedded, com.atlassian.oauth.consumer, com.atlassian.jira.gadgets, com.atlassian.oauth.serviceprovider, com.atlassian.sal.jira, com.atlassian.gadgets.directory, com.atlassian.gadgets.dashboard, com.atlassian.jirafisheyeplugin, com.atlassian.jira.rest, com.atlassian.streams.streams-jira-plugin, com.atlassian.gadgets.renderer, com.atlassian.jira.plugin.ext.bamboo], 1 seconds remaining 2009-08-31 10:40:41,562 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.atlassian.gadgets.publisher, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.templaterenderer.api, com.atlassian.jira.oauth.serviceprovider, com.atlassian.jira.oauth.consumer, com.atlassian.gadgets.embedded, com.atlassian.oauth.consumer, com.atlassian.jira.gadgets, com.atlassian.oauth.serviceprovider, com.atlassian.sal.jira, com.atlassian.gadgets.directory, com.atlassian.gadgets.dashboard, com.atlassian.jirafisheyeplugin, com.atlassian.jira.rest, com.atlassian.streams.streams-jira-plugin, com.atlassian.gadgets.renderer, com.atlassian.jira.plugin.ext.bamboo], 0 seconds remaining 2009-08-31 10:42:09,757 SpringOsgiExtenderThread-12 WARN admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyServiceManager] Dependency factory org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory@14fc6baa threw exception while detecting dependencies for beanFactory org.springframework.beans.factory.support.DefaultListableBeanFactory@46669fdd: defining beans [org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#0,restServletModuleManager,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#2,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#3,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#4,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1,authenticationContext,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#5,servletModuleManager,pluginEventManager]; root of factory hierarchy in OsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.rest.atlassian-rest-module, config=osgibundle:/META-INF/spring/*.xml) org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,767 SpringOsgiExtenderThread-12 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.plugins.rest.atlassian-rest-module], unsatisfied dependencies: none org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,878 SpringOsgiExtenderThread-12 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.rest.atlassian-rest-module, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,913 SpringOsgiExtenderThread-1 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.gadgets.publisher], unsatisfied dependencies: none java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:368) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,986 SpringOsgiExtenderThread-1 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.gadgets.publisher, config=osgibundle:/META-INF/spring/*.xml)) java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:368) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:10,184 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateContextFactory' for plugin 'com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin' with filter (objectClass=com.atlassian.templaterenderer.TemplateContextFactory) 2009-08-31 10:42:10,240 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&i18nResolver' for plugin 'com.atlassian.templaterenderer.api' with filter (objectClass=com.atlassian.sal.api.message.I18nResolver) 2009-08-31 10:42:20,374 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.oauth.serviceprovider, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs 2009-08-31 10:42:20,414 SpringOsgiExtenderThread-21 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.oauth.serviceprovider, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenStore_osgiService': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.apache.felix.framework.Felix.registerService(Felix.java:2676) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95) at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:325) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:267) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:260) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:191) at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) ... 16 more Exception in thread "SpringOsgiExtenderThread-21" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenStore_osgiService': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.apache.felix.framework.Felix.registerService(Felix.java:2676) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95) at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:325) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:267) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:260) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:191) at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) ... 16 more 2009-08-31 10:42:20,794 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateRenderer' for plugin 'com.atlassian.oauth.consumer' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer) 2009-08-31 10:42:20,794 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&consumerService' for plugin 'com.atlassian.oauth.consumer' with filter (objectClass=com.atlassian.oauth.consumer.ConsumerService) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&velocity-renderer-factory' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&dashboardService' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.gadgets.dashboard.DashboardService) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetViewFactory' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.gadgets.view.GadgetViewFactory) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateRenderer' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&delegateTokenStore' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&consumerStore' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&velocity-renderer-factory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&jaxbJsonMarshaller' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.plugins.rest.common.json.JaxbJsonMarshaller) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetViewFactory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.view.GadgetViewFactory) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&renderedGadgetUriBuilder' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.view.RenderedGadgetUriBuilder) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetSpecFactory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&txTemplate' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.transaction.TransactionTemplate) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&salUserManager' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.user.UserManager) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&applicationProperties' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.ApplicationProperties) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&pluginSettings' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.pluginsettings.PluginSettingsFactory) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&i18nResolver' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.message.I18nResolver) 2009-08-31 10:42:21,840 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins: com.atlassian.gadgets.publisher,com.atlassian.plugins.rest.atlassian-rest-module,com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin,com.atlassian.templaterenderer.api,com.atlassian.jira.oauth.serviceprovider,com.atlassian.jira.oauth.consumer,com.atlassian.gadgets.embedded,com.atlassian.oauth.consumer,com.atlassian.jira.gadgets,com.atlassian.oauth.serviceprovider,com.atlassian.sal.jira,com.atlassian.gadgets.directory,com.atlassian.gadgets.dashboard,com.atlassian.jirafisheyeplugin,com.atlassian.jira.rest,com.atlassian.streams.streams-jira-plugin,com.atlassian.gadgets.renderer,com.atlassian.jira.plugin.ext.bamboo 2009-08-31 10:42:21,841 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.loaders.DirectoryPluginLoader] No plugins found to be deployed 2009-08-31 10:42:21,848 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.manager.DefaultPluginManager] Plugin system started in 0:02:43.389 2009-08-31 10:42:22,007 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [jira.issue.index.DefaultIndexManager] Reindexing all issues 2009-08-31 10:42:22,163 http-8080-Processor51 WARN admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.jira.startup.JiraStartupLogger] {noformat}
    via by Anton Mazkovoi [Atlassian],
  • The following happens in the logs: {noformat} 2009-08-31 10:40:40,561 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.atlassian.gadgets.publisher, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.templaterenderer.api, com.atlassian.jira.oauth.serviceprovider, com.atlassian.jira.oauth.consumer, com.atlassian.gadgets.embedded, com.atlassian.oauth.consumer, com.atlassian.jira.gadgets, com.atlassian.oauth.serviceprovider, com.atlassian.sal.jira, com.atlassian.gadgets.directory, com.atlassian.gadgets.dashboard, com.atlassian.jirafisheyeplugin, com.atlassian.jira.rest, com.atlassian.streams.streams-jira-plugin, com.atlassian.gadgets.renderer, com.atlassian.jira.plugin.ext.bamboo], 1 seconds remaining 2009-08-31 10:40:41,562 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.atlassian.gadgets.publisher, com.atlassian.plugins.rest.atlassian-rest-module, com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin, com.atlassian.templaterenderer.api, com.atlassian.jira.oauth.serviceprovider, com.atlassian.jira.oauth.consumer, com.atlassian.gadgets.embedded, com.atlassian.oauth.consumer, com.atlassian.jira.gadgets, com.atlassian.oauth.serviceprovider, com.atlassian.sal.jira, com.atlassian.gadgets.directory, com.atlassian.gadgets.dashboard, com.atlassian.jirafisheyeplugin, com.atlassian.jira.rest, com.atlassian.streams.streams-jira-plugin, com.atlassian.gadgets.renderer, com.atlassian.jira.plugin.ext.bamboo], 0 seconds remaining 2009-08-31 10:42:09,757 SpringOsgiExtenderThread-12 WARN admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyServiceManager] Dependency factory org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory@14fc6baa threw exception while detecting dependencies for beanFactory org.springframework.beans.factory.support.DefaultListableBeanFactory@46669fdd: defining beans [org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#0,restServletModuleManager,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#2,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#3,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#4,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1,authenticationContext,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#5,servletModuleManager,pluginEventManager]; root of factory hierarchy in OsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.rest.atlassian-rest-module, config=osgibundle:/META-INF/spring/*.xml) org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,767 SpringOsgiExtenderThread-12 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.plugins.rest.atlassian-rest-module], unsatisfied dependencies: none org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,878 SpringOsgiExtenderThread-12 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.plugins.rest.atlassian-rest-module, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#1': 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:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryImporterDependencyFactory.getServiceDependencies(MandatoryImporterDependencyFactory.java:63) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:272) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,913 SpringOsgiExtenderThread-1 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.gadgets.publisher], unsatisfied dependencies: none java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:368) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:09,986 SpringOsgiExtenderThread-1 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.gadgets.publisher, config=osgibundle:/META-INF/spring/*.xml)) java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:368) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637) 2009-08-31 10:42:10,184 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateContextFactory' for plugin 'com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin' with filter (objectClass=com.atlassian.templaterenderer.TemplateContextFactory) 2009-08-31 10:42:10,240 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&i18nResolver' for plugin 'com.atlassian.templaterenderer.api' with filter (objectClass=com.atlassian.sal.api.message.I18nResolver) 2009-08-31 10:42:20,374 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [internal.util.concurrent.RunnableTimedExecution] Closing runnable for context OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.oauth.serviceprovider, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs 2009-08-31 10:42:20,414 SpringOsgiExtenderThread-21 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [extender.internal.activator.ContextLoaderListener] Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=com.atlassian.jira.oauth.serviceprovider, config=osgibundle:/META-INF/spring/*.xml)) org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenStore_osgiService': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.apache.felix.framework.Felix.registerService(Felix.java:2676) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95) at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:325) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:267) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:260) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:191) at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) ... 16 more Exception in thread "SpringOsgiExtenderThread-21" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tokenStore_osgiService': Initialization of bean failed; nested exception is java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355) at org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.IllegalStateException: Can only register services while bundle is active or activating. at org.apache.felix.framework.Felix.registerService(Felix.java:2676) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95) at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:325) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:267) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:260) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:191) at org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) ... 16 more 2009-08-31 10:42:20,794 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateRenderer' for plugin 'com.atlassian.oauth.consumer' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer) 2009-08-31 10:42:20,794 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&consumerService' for plugin 'com.atlassian.oauth.consumer' with filter (objectClass=com.atlassian.oauth.consumer.ConsumerService) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&velocity-renderer-factory' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&dashboardService' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.gadgets.dashboard.DashboardService) 2009-08-31 10:42:20,802 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetViewFactory' for plugin 'com.atlassian.jira.gadgets' with filter (objectClass=com.atlassian.gadgets.view.GadgetViewFactory) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&templateRenderer' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRenderer) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&delegateTokenStore' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.oauth.serviceprovider.ServiceProviderTokenStore) 2009-08-31 10:42:20,810 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&consumerStore' for plugin 'com.atlassian.oauth.serviceprovider' with filter (objectClass=com.atlassian.oauth.serviceprovider.ServiceProviderConsumerStore) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&velocity-renderer-factory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.templaterenderer.velocity.one.six.VelocityTemplateRendererFactory) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&jaxbJsonMarshaller' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.plugins.rest.common.json.JaxbJsonMarshaller) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetViewFactory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.view.GadgetViewFactory) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&renderedGadgetUriBuilder' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.view.RenderedGadgetUriBuilder) 2009-08-31 10:42:21,729 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&gadgetSpecFactory' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.gadgets.spec.GadgetSpecFactory) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&txTemplate' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.transaction.TransactionTemplate) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&salUserManager' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.user.UserManager) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&applicationProperties' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.ApplicationProperties) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&pluginSettings' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.pluginsettings.PluginSettingsFactory) 2009-08-31 10:42:21,730 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [plugin.osgi.factory.OsgiPlugin] Never resolved service '&i18nResolver' for plugin 'com.atlassian.gadgets.dashboard' with filter (objectClass=com.atlassian.sal.api.message.I18nResolver) 2009-08-31 10:42:21,840 http-8080-Processor51 ERROR admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins: com.atlassian.gadgets.publisher,com.atlassian.plugins.rest.atlassian-rest-module,com.atlassian.templaterenderer.atlassian-template-renderer-velocity1.6-plugin,com.atlassian.templaterenderer.api,com.atlassian.jira.oauth.serviceprovider,com.atlassian.jira.oauth.consumer,com.atlassian.gadgets.embedded,com.atlassian.oauth.consumer,com.atlassian.jira.gadgets,com.atlassian.oauth.serviceprovider,com.atlassian.sal.jira,com.atlassian.gadgets.directory,com.atlassian.gadgets.dashboard,com.atlassian.jirafisheyeplugin,com.atlassian.jira.rest,com.atlassian.streams.streams-jira-plugin,com.atlassian.gadgets.renderer,com.atlassian.jira.plugin.ext.bamboo 2009-08-31 10:42:21,841 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.loaders.DirectoryPluginLoader] No plugins found to be deployed 2009-08-31 10:42:21,848 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.plugin.manager.DefaultPluginManager] Plugin system started in 0:02:43.389 2009-08-31 10:42:22,007 http-8080-Processor51 INFO admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [jira.issue.index.DefaultIndexManager] Reindexing all issues 2009-08-31 10:42:22,163 http-8080-Processor51 WARN admin 38372x2148x1 1kvbbh0 /secure/admin/XmlRestore.jspa [atlassian.jira.startup.JiraStartupLogger] {noformat}
    via by Anton Mazkovoi [Atlassian],
  • h3.Summary Enabling and installing JIRA Agile; or updating JIRA Agile in a certain way is causing it to fail. h3.Steps to Reproduce Install JIRA Agile in the specific order that makes it not work, which is still to be discovered. h3.Expected Results JIRA Agile enables successfully. h3.Actual Results The following stack trace is thrown: {code}2013-12-08 18:18:36,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 2 seconds remaining 2013-12-08 18:18:37,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 1 seconds remaining 2013-12-08 18:18:38,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 0 seconds remaining 2013-12-08 18:18:39,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.manager.DefaultPluginManager] Disabling com.pyxis.greenhopper.jira 2013-12-08 18:18:40,872 pool-15-thread-1 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.pyxis.greenhopper.jira 2013-12-08 18:18:41,872 ThreadPoolAsyncTaskExecutor::Thread 39 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.pyxis.greenhopper.jira], unsatisfied dependencies: none java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2013-12-08 18:18:41,872 ThreadPoolAsyncTaskExecutor::Thread 39 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.pyxis.greenhopper.jira, config=osgibundle:/META-INF/spring/*.xml)) java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source){code} Once JAG is disabled or stalled, all boards are disabled. h3.Workaround # Increase the plugin start timeout from default 60 seconds to 300 seconds by specifying the startup parameter *-Datlassian.plugins.enable.wait=300*. For a better description please see the Workaround on [JIRA System Plugin Timeout While Waiting for Plugins to Enable|https://confluence.atlassian.com/display/JIRAKB/JIRA+System+Plugin+Timeout+While+Waiting+for+Plugins+to+Enable]. Note that if you do not specify the increased timeout, you will likely run into the same problem when you try updating the plugin to a newer version in UPM. # Restart JIRA. This should enable back JIRA Agile # If JIRA Agile boards are missing, perform a re-index to bring back all the missing board. (!) So far Atlassian still unable to reproduce this behaviour explicitly, this bug ticket is created to keep track how many users are affected and find a common pattern to reproduce the bug.
    via by Vicky Kharisma [Atlassian],
  • h3.Summary Enabling and installing JIRA Agile; or updating JIRA Agile in a certain way is causing it to fail. h3.Steps to Reproduce Install JIRA Agile in the specific order that makes it not work, which is still to be discovered. h3.Expected Results JIRA Agile enables successfully. h3.Actual Results The following stack trace is thrown: {code}2013-12-08 18:18:36,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 2 seconds remaining 2013-12-08 18:18:37,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 1 seconds remaining 2013-12-08 18:18:38,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.util.WaitUntil] Plugins that have yet to be enabled: [com.pyxis.greenhopper.jira], 0 seconds remaining 2013-12-08 18:18:39,903 pool-15-thread-1 INFO hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.manager.DefaultPluginManager] Disabling com.pyxis.greenhopper.jira 2013-12-08 18:18:40,872 pool-15-thread-1 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [atlassian.plugin.manager.PluginEnabler] Unable to start the following plugins due to timeout while waiting for plugin to enable: com.pyxis.greenhopper.jira 2013-12-08 18:18:41,872 ThreadPoolAsyncTaskExecutor::Thread 39 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.pyxis.greenhopper.jira], unsatisfied dependencies: none java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 2013-12-08 18:18:41,872 ThreadPoolAsyncTaskExecutor::Thread 39 ERROR hhunfeld 1095x47194x1 1p0no84 172.20.2.134 /rest/plugins/self-update/1.0/ [extender.internal.activator.ContextLoaderListener] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.pyxis.greenhopper.jira, config=osgibundle:/META-INF/spring/*.xml)) java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source){code} Once JAG is disabled or stalled, all boards are disabled. h3.Workaround # Increase the plugin start timeout from default 60 seconds to 300 seconds by specifying the startup parameter *-Datlassian.plugins.enable.wait=300*. For a better description please see the Workaround on [JIRA System Plugin Timeout While Waiting for Plugins to Enable|https://confluence.atlassian.com/display/JIRAKB/JIRA+System+Plugin+Timeout+While+Waiting+for+Plugins+to+Enable]. Note that if you do not specify the increased timeout, you will likely run into the same problem when you try updating the plugin to a newer version in UPM. # Restart JIRA. This should enable back JIRA Agile # If JIRA Agile boards are missing, perform a re-index to bring back all the missing board. (!) So far Atlassian still unable to reproduce this behaviour explicitly, this bug ticket is created to keep track how many users are affected and find a common pattern to reproduce the bug.
    via by Vicky Kharisma [Atlassian],
  • Stop/Start Bundle
    via by Sébastien Nicouleau,
  • Stop/Start Bundle
    via by Sébastien Nicouleau,
  • h3. Summary When shutting down Confluence using the service or via shutdown.sh or shutdown.bat, it can throw errors. When this happens, Confluence will appear to hang and the shutdown process is extremely slow h3. Steps to Reproduce # Install Confluence 5.8.13 # Start Confluence # Let Confluence run for a bit # Shutdown Confluence h3. Expected Results Confluence shutsdown without issue h3. Actual Results Confluence can hang on shutdown and throw errors in the logs, for example the below exception is thrown in the atlassian-confluence.log file: {noformat} 2015-10-21 12:23:13,174 ERROR [localhost-startStop-2] [internal.util.concurrent.RunnableTimedExecution] execute Closing runnable for context NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.plugin.notifications.notifications-module, config=osgibundle:/META-INF/spring/*.xml) did not finish in 10000ms; consider taking a snapshot and then shutdown the VM in case the thread still hangs 2015-10-21 12:23:13,174 ERROR [localhost-startStop-2] [support.internal.aop.ServiceDynamicInterceptor] serviceChanged Exception during service event handling java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:514) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:425) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReference(OsgiServiceReferenceUtils.java:76) at org.springframework.osgi.service.importer.support.internal.aop.ServiceDynamicInterceptor$Listener.serviceChanged(ServiceDynamicInterceptor.java:195) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419) at org.apache.felix.framework.Felix.access$000(Felix.java:74) at org.apache.felix.framework.Felix$1.serviceChanged(Felix.java:401) at org.apache.felix.framework.ServiceRegistry.unregisterService(ServiceRegistry.java:151) at org.apache.felix.framework.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:127) at org.apache.felix.framework.ServiceRegistry.unregisterServices(ServiceRegistry.java:196) at org.apache.felix.framework.Felix.stopBundle(Felix.java:2555) at org.apache.felix.framework.Felix.uninstallBundle(Felix.java:2632) at org.apache.felix.framework.BundleImpl.uninstall(BundleImpl.java:1022) at com.atlassian.plugin.osgi.factory.OsgiPlugin.uninstallInternal(OsgiPlugin.java:503) at com.atlassian.plugin.impl.AbstractPlugin.uninstall(AbstractPlugin.java:425) at com.atlassian.plugin.impl.AbstractDelegatingPlugin.uninstall(AbstractDelegatingPlugin.java:196) at com.atlassian.plugin.loaders.ScanningPluginLoader.onShutdown(ScanningPluginLoader.java:245) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48) at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253) at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107) at com.atlassian.event.internal.EventPublisherImpl.invokeListeners(EventPublisherImpl.java:160) at com.atlassian.event.internal.EventPublisherImpl.publish(EventPublisherImpl.java:79) at com.atlassian.confluence.event.TimingEventPublisher.publish(TimingEventPublisher.java:73) at com.atlassian.plugin.event.impl.DefaultPluginEventManager.broadcast(DefaultPluginEventManager.java:73) at com.atlassian.plugin.manager.DefaultPluginManager.broadcast(DefaultPluginManager.java:608) at com.atlassian.plugin.manager.DefaultPluginManager.shutdown(DefaultPluginManager.java:598) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextDestroyed(PluginFrameworkContextListener.java:77) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4776) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5390) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1424) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1413) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) {noformat} h3. Workaround * Start/shutdown Confluence using {{start-confluence.sh}} and {{stop-confluence.sh}} (or .bat if you are on Windows)
    via by Stephen Brannen,
    • java.lang.IllegalStateException: Invalid BundleContext. at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:453) at org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:368) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159) at org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195) at org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327) at org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213) at org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:248) at org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:175) at org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175) at org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:718) at java.lang.Thread.run(Thread.java:637)

    Users with the same issue

    Unknown visitor1 times, last one,
    davidvanlaatum
    davidvanlaatum2 times, last one,