java.lang.IllegalStateException: Spring Application context has not been set

Atlassian JIRA | Jabari Deng | 1 year ago
  1. 0

    h6. Summary Confluence Server 5.9.1 upgrade to Confluence Data Center 5.9.1 failed. h6. Environment Tested on Ubuntu version 14.04 LTS. h6. Steps to Reproduce # [Install Confluence Server 5.9.1|https://confluence.atlassian.com/doc/installing-confluence-on-linux-from-archive-file-255362363.html] in your local machine. (i) Please ensure that Confluence is not run by _root_ and the user that runs Confluence does have the full permission to the {{<Confluence-Home>}} and {{<Confluence-Installation>}} directories. # Navigate to *Confluence Administration page >> License Details* and update the license with the Confluence Data Center that you've obtain. # The _License update requires migration_ pop up dialog will then be displayed, click _Confirm_ to start the migration. # Restart Confluence. h6. Expected Results Confluence Server 5.9.1 would be upgraded to Confluence Data Center 5.9.1 successfully. h6. Actual Results The below exception is thrown in the atlassian-confluence.log file: {noformat} 2015-12-08 08:41:11,072 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.9.1 [build 6207 based on commit hash 0c7cba54ff3925d4d57a63f5dc42940bd53cea47] 2015-12-08 08:41:12,748 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun 2015-12-08 08:41:15,314 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup finished in 0:00:02.564 2015-12-08 08:41:15,315 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun 2015-12-08 08:41:16,642 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup finished in 0:00:01.327 2015-12-08 08:41:16,795 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2015-12-08 08:41:16,807 ERROR [localhost-startStop-1] [ContainerBase.[Standalone].[localhost].[/]] log Exception sending context initialized event to listener instance of class com.atlassian.confluence.plugin.PluginFrameworkContextListener java.lang.IllegalStateException: Spring Application context has not been set at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48) at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.getSystemTenant(PluginFrameworkContextListener.java:242) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2015-12-08 08:41:16,846 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2015-12-08 08:41:16,848 WARN [localhost-startStop-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set 2015-12-08 08:41:16,848 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence 2015-12-08 08:41:16,849 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Preparing to shut down the plugin system 2015-12-08 08:41:16,849 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system {noformat} The below exception is thrown in the catalina.out log file: {noformat} 08-Dec-2015 08:41:03.652 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"] 08-Dec-2015 08:41:03.680 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 08-Dec-2015 08:41:03.683 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 435 ms 08-Dec-2015 08:41:03.690 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone 08-Dec-2015 08:41:03.690 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23 2015-12-08 08:41:11,072 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.9.1 [build 6207 based on commit hash 0c7cba54ff3925d4d57a63f5dc42940bd53cea47] 08-Dec-2015 08:41:16.808 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 08-Dec-2015 08:41:16.839 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.github.gquintana.metrics.sql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.930 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"] 08-Dec-2015 08:41:16.934 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 13250 ms {noformat}

    Atlassian JIRA | 1 year ago | Jabari Deng
    java.lang.IllegalStateException: Spring Application context has not been set
  2. 0

    h6. Summary Confluence Server 5.9.1 upgrade to Confluence Data Center 5.9.1 failed. h6. Environment Tested on Ubuntu version 14.04 LTS. h6. Steps to Reproduce # [Install Confluence Server 5.9.1|https://confluence.atlassian.com/doc/installing-confluence-on-linux-from-archive-file-255362363.html] in your local machine. (i) Please ensure that Confluence is not run by _root_ and the user that runs Confluence does have the full permission to the {{<Confluence-Home>}} and {{<Confluence-Installation>}} directories. # Navigate to *Confluence Administration page >> License Details* and update the license with the Confluence Data Center that you've obtain. # The _License update requires migration_ pop up dialog will then be displayed, click _Confirm_ to start the migration. # Restart Confluence. h6. Expected Results Confluence Server 5.9.1 would be upgraded to Confluence Data Center 5.9.1 successfully. h6. Actual Results The below exception is thrown in the atlassian-confluence.log file: {noformat} 2015-12-08 08:41:11,072 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.9.1 [build 6207 based on commit hash 0c7cba54ff3925d4d57a63f5dc42940bd53cea47] 2015-12-08 08:41:12,748 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup begun 2015-12-08 08:41:15,314 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] earlyStartup Plugin system earlyStartup finished in 0:00:02.564 2015-12-08 08:41:15,315 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup begun 2015-12-08 08:41:16,642 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] lateStartup Plugin system lateStartup finished in 0:00:01.327 2015-12-08 08:41:16,795 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2015-12-08 08:41:16,807 ERROR [localhost-startStop-1] [ContainerBase.[Standalone].[localhost].[/]] log Exception sending context initialized event to listener instance of class com.atlassian.confluence.plugin.PluginFrameworkContextListener java.lang.IllegalStateException: Spring Application context has not been set at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48) at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.getSystemTenant(PluginFrameworkContextListener.java:242) at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:57) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) 2015-12-08 08:41:16,846 FATAL [localhost-startStop-1] [atlassian.spring.container.SpringContainerContext] getComponent Spring Application context has not been set 2015-12-08 08:41:16,848 WARN [localhost-startStop-1] [atlassian.confluence.plugin.PluginFrameworkContextListener] contextDestroyed Failed to shut down plugin system during ServletContext shutdown: Spring Application context has not been set 2015-12-08 08:41:16,848 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextDestroyed Stopping Confluence 2015-12-08 08:41:16,849 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Preparing to shut down the plugin system 2015-12-08 08:41:16,849 INFO [localhost-startStop-1] [atlassian.plugin.manager.DefaultPluginManager] shutdown Shutting down the plugin system {noformat} The below exception is thrown in the catalina.out log file: {noformat} 08-Dec-2015 08:41:03.652 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8090"] 08-Dec-2015 08:41:03.680 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read 08-Dec-2015 08:41:03.683 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 435 ms 08-Dec-2015 08:41:03.690 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service Tomcat-Standalone 08-Dec-2015 08:41:03.690 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.0.23 2015-12-08 08:41:11,072 INFO [localhost-startStop-1] [com.atlassian.confluence.lifecycle] contextInitialized Starting Confluence 5.9.1 [build 6207 based on commit hash 0c7cba54ff3925d4d57a63f5dc42940bd53cea47] 08-Dec-2015 08:41:16.808 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file 08-Dec-2015 08:41:16.839 SEVERE [localhost-startStop-1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.hsqldb.jdbc.JDBCDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [com.github.gquintana.metrics.sql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.923 WARNING [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [ROOT] registered the JDBC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 08-Dec-2015 08:41:16.930 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"] 08-Dec-2015 08:41:16.934 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 13250 ms {noformat}

    Atlassian JIRA | 1 year ago | Jabari Deng
    java.lang.IllegalStateException: Spring Application context has not been set
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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

      Spring Application context has not been set

      at com.atlassian.spring.container.SpringContainerContext.getComponent()
    2. com.atlassian.spring
      ContainerManager.getComponent
      1. com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)
      2. com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
      2 frames
    3. com.atlassian.confluence
      PluginFrameworkContextListener.contextInitialized
      1. com.atlassian.confluence.plugin.PluginFrameworkContextListener.getSystemTenant(PluginFrameworkContextListener.java:242)
      2. com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:57)
      2 frames
    4. Glassfish Core
      ContainerBase$StartChild.call
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4729)
      2. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5167)
      3. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      4. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
      5. org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1399)
      5 frames
    5. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames