java.lang.IllegalStateException: Invalid BundleContext.

Atlassian JIRA | Vicky Kharisma [Atlassian] | 3 years ago
  1. 0

    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.

    Atlassian JIRA | 3 years ago | Vicky Kharisma [Atlassian]
    java.lang.IllegalStateException: Invalid BundleContext.
  2. 0

    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.

    Atlassian JIRA | 3 years ago | Vicky Kharisma [Atlassian]
    java.lang.IllegalStateException: Invalid BundleContext.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    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}

    Atlassian JIRA | 7 years ago | Anton Mazkovoi [Atlassian]
    java.lang.IllegalStateException: Invalid BundleContext.
  5. 0

    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}

    Atlassian JIRA | 7 years ago | Anton Mazkovoi [Atlassian]
    java.lang.IllegalStateException: Invalid BundleContext.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Invalid BundleContext.

      at org.apache.felix.framework.BundleContextImpl.checkValidity()
    2. Apache Felix Framework
      BundleContextImpl.getServiceReferences
      1. org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:365)
      2. org.apache.felix.framework.BundleContextImpl.getServiceReferences(BundleContextImpl.java:307)
      2 frames
    3. Spring OSGi Core
      OsgiServiceReferenceUtils.isServicePresent
      1. org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:159)
      2. org.springframework.osgi.util.OsgiServiceReferenceUtils.getServiceReferences(OsgiServiceReferenceUtils.java:195)
      3. org.springframework.osgi.util.OsgiServiceReferenceUtils.isServicePresent(OsgiServiceReferenceUtils.java:327)
      3 frames
    4. org.springframework.osgi
      DependencyWaiterApplicationContextExecutor.refresh
      1. org.springframework.osgi.extender.internal.dependencies.startup.MandatoryServiceDependency.isServicePresent(MandatoryServiceDependency.java:82)
      2. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.doFindDependencies(DependencyServiceManager.java:287)
      3. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.access$700(DependencyServiceManager.java:40)
      4. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager$1.run(DependencyServiceManager.java:213)
      5. org.springframework.osgi.extender.internal.util.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:124)
      6. org.springframework.osgi.extender.internal.dependencies.startup.DependencyServiceManager.findServiceDependencies(DependencyServiceManager.java:209)
      7. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.stageOne(DependencyWaiterApplicationContextExecutor.java:239)
      8. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.refresh(DependencyWaiterApplicationContextExecutor.java:169)
      8 frames
    5. Spring OSGi Core
      AbstractDelegatedExecutionApplicationContext.refresh
      1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.refresh(AbstractDelegatedExecutionApplicationContext.java:175)
      1 frame
    6. org.springframework.osgi
      ContextLoaderListener$2.run
      1. org.springframework.osgi.extender.internal.activator.ContextLoaderListener$2.run(ContextLoaderListener.java:716)
      1 frame
    7. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames