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.

Atlassian JIRA | Anton Mazkovoi [Atlassian] | 7 years ago
  1. 0

    [JRA-18705] OSGi Sping problem when restarting the plugin subsystem during an XML restore - Atlassian JIRA

    atlassian.com | 1 year ago
    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.
  2. 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]
    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.
  3. 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]
    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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Possible race condition in launch?

    GitHub | 6 years ago | pkriens
    java.lang.IllegalStateException: Can only register services while bundle is active or activating.

  1. davidvanlaatum 40 times, last 2 months ago
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

    Can only register services while bundle is active or activating.

    at org.apache.felix.framework.Felix.registerService()
  2. Apache Felix Framework
    BundleContextImpl.registerService
    1. org.apache.felix.framework.Felix.registerService(Felix.java:2676)
    2. org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:254)
    2 frames
  3. Spring OSGi Core
    MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization
    1. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310)
    2. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279)
    3. org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95)
    4. org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40)
    5. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:325)
    6. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:267)
    7. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.discoverDependentImporterFor(DefaultMandatoryDependencyManager.java:260)
    8. org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.addServiceExporter(DefaultMandatoryDependencyManager.java:191)
    9. org.springframework.osgi.service.dependency.internal.MandatoryDependencyBeanPostProcessor.postProcessAfterInitialization(MandatoryDependencyBeanPostProcessor.java:46)
    9 frames
  4. Spring Beans
    AbstractAutowireCapableBeanFactory$1.run
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1344)
    3. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    4 frames
  5. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  6. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    2. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
    7 frames
  7. Spring Context
    AbstractApplicationContext.finishBeanFactoryInitialization
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    1 frame
  8. Spring OSGi Core
    AbstractDelegatedExecutionApplicationContext.completeRefresh
    1. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:69)
    2. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:355)
    3. org.springframework.osgi.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
    4. org.springframework.osgi.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:320)
    4 frames
  9. org.springframework.osgi
    DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run
    1. org.springframework.osgi.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:136)
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:637)
    1 frame