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

Atlassian JIRA | Armond Avanes | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ... when there is no configuration home and it's the first time you're laucnhing teh application to setup. Here is the exception logged on server: [STARTUP] Glue Standard 5.0 Beta2 (c) 2001-2003 webMethods, Inc. [ERROR] webapp: could not start service confluenceservice-v1 java.lang.IllegalStateException: Spring Application context has not been set at com.atlassian.confluence.setup.container.SpringContainerContext.getComponent(SpringContainerContext.java:47) at com.atlassian.confluence.rpc.soap.SoapServiceFactory.getService(SoapServiceFactory.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at electric.util.reflect.Reflect.invoke(Reflect.java:123) at electric.util.constructor.Factory.newInstance(Factory.java:73) at electric.service.descriptor.initializer.Constructor.create(Constructor.java:26) at electric.service.descriptor.ServiceDescriptor.setClassLoader(ServiceDescriptor.java:267) at electric.application.web.services.ManagedService.begin(ManagedService.java:55) at electric.application.web.managed.ManagedObject.start(ManagedObject.java:125) at electric.application.web.managed.ObjectManager.add(ObjectManager.java:87) at electric.application.web.services.ServiceManager.publishServiceEntries(ServiceManager.java:109) at electric.application.web.services.ServiceManager.loadServicesFromDescriptors(ServiceManager.java:96) at electric.application.web.services.ServiceManager.start(ServiceManager.java:64) at electric.application.web.WebApplication.startManagers(WebApplication.java:382) at electric.application.web.WebApplication.start(WebApplication.java:286) at electric.server.http.ServletServer.init(ServletServer.java:299) at com.caucho.server.http.Application.createServlet(Application.java:3111) at com.caucho.server.http.Application.loadServlet(Application.java:3062) at com.caucho.server.http.Application.initServlets(Application.java:1923) at com.caucho.server.http.Application.init(Application.java:1849) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:728) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:885) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:727) at com.caucho.server.http.ServletServer.init(ServletServer.java:538) at com.caucho.server.http.ResinServer.init(ResinServer.java:406) at com.caucho.server.http.ResinServer.main(ResinServer.java:1167) at com.caucho.server.http.HttpServer.main(HttpServer.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(Unknown Source)

    Atlassian JIRA | 1 decade ago | Armond Avanes
    java.lang.IllegalStateException: Spring Application context has not been set
  2. 0

    ... when there is no configuration home and it's the first time you're laucnhing teh application to setup. Here is the exception logged on server: [STARTUP] Glue Standard 5.0 Beta2 (c) 2001-2003 webMethods, Inc. [ERROR] webapp: could not start service confluenceservice-v1 java.lang.IllegalStateException: Spring Application context has not been set at com.atlassian.confluence.setup.container.SpringContainerContext.getComponent(SpringContainerContext.java:47) at com.atlassian.confluence.rpc.soap.SoapServiceFactory.getService(SoapServiceFactory.java:15) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at electric.util.reflect.Reflect.invoke(Reflect.java:123) at electric.util.constructor.Factory.newInstance(Factory.java:73) at electric.service.descriptor.initializer.Constructor.create(Constructor.java:26) at electric.service.descriptor.ServiceDescriptor.setClassLoader(ServiceDescriptor.java:267) at electric.application.web.services.ManagedService.begin(ManagedService.java:55) at electric.application.web.managed.ManagedObject.start(ManagedObject.java:125) at electric.application.web.managed.ObjectManager.add(ObjectManager.java:87) at electric.application.web.services.ServiceManager.publishServiceEntries(ServiceManager.java:109) at electric.application.web.services.ServiceManager.loadServicesFromDescriptors(ServiceManager.java:96) at electric.application.web.services.ServiceManager.start(ServiceManager.java:64) at electric.application.web.WebApplication.startManagers(WebApplication.java:382) at electric.application.web.WebApplication.start(WebApplication.java:286) at electric.server.http.ServletServer.init(ServletServer.java:299) at com.caucho.server.http.Application.createServlet(Application.java:3111) at com.caucho.server.http.Application.loadServlet(Application.java:3062) at com.caucho.server.http.Application.initServlets(Application.java:1923) at com.caucho.server.http.Application.init(Application.java:1849) at com.caucho.server.http.VirtualHost.init(VirtualHost.java:728) at com.caucho.server.http.ServletServer.initHosts(ServletServer.java:885) at com.caucho.server.http.ServletServer.initInternal(ServletServer.java:727) at com.caucho.server.http.ServletServer.init(ServletServer.java:538) at com.caucho.server.http.ResinServer.init(ResinServer.java:406) at com.caucho.server.http.ResinServer.main(ResinServer.java:1167) at com.caucho.server.http.HttpServer.main(HttpServer.java:103) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(Unknown Source)

    Atlassian JIRA | 1 decade ago | Armond Avanes
    java.lang.IllegalStateException: Spring Application context has not been set

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Spring Application context has not been set

      at com.atlassian.confluence.setup.container.SpringContainerContext.getComponent()
    2. com.atlassian.confluence
      SoapServiceFactory.getService
      1. com.atlassian.confluence.setup.container.SpringContainerContext.getComponent(SpringContainerContext.java:47)
      2. com.atlassian.confluence.rpc.soap.SoapServiceFactory.getService(SoapServiceFactory.java:15)
      2 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    4. electric.util.reflect
      Reflect.invoke
      1. electric.util.reflect.Reflect.invoke(Reflect.java:123)
      1 frame
    5. electric.util.constructor
      Factory.newInstance
      1. electric.util.constructor.Factory.newInstance(Factory.java:73)
      1 frame
    6. electric.service.descriptor
      ServiceDescriptor.setClassLoader
      1. electric.service.descriptor.initializer.Constructor.create(Constructor.java:26)
      2. electric.service.descriptor.ServiceDescriptor.setClassLoader(ServiceDescriptor.java:267)
      2 frames
    7. electric.application.web
      WebApplication.start
      1. electric.application.web.services.ManagedService.begin(ManagedService.java:55)
      2. electric.application.web.managed.ManagedObject.start(ManagedObject.java:125)
      3. electric.application.web.managed.ObjectManager.add(ObjectManager.java:87)
      4. electric.application.web.services.ServiceManager.publishServiceEntries(ServiceManager.java:109)
      5. electric.application.web.services.ServiceManager.loadServicesFromDescriptors(ServiceManager.java:96)
      6. electric.application.web.services.ServiceManager.start(ServiceManager.java:64)
      7. electric.application.web.WebApplication.startManagers(WebApplication.java:382)
      8. electric.application.web.WebApplication.start(WebApplication.java:286)
      8 frames
    8. electric.server.http
      ServletServer.init
      1. electric.server.http.ServletServer.init(ServletServer.java:299)
      1 frame
    9. com.caucho.server
      HttpServer.main
      1. com.caucho.server.http.Application.createServlet(Application.java:3111)
      2. com.caucho.server.http.Application.loadServlet(Application.java:3062)
      3. com.caucho.server.http.Application.initServlets(Application.java:1923)
      4. com.caucho.server.http.Application.init(Application.java:1849)
      5. com.caucho.server.http.VirtualHost.init(VirtualHost.java:728)
      6. com.caucho.server.http.ServletServer.initHosts(ServletServer.java:885)
      7. com.caucho.server.http.ServletServer.initInternal(ServletServer.java:727)
      8. com.caucho.server.http.ServletServer.init(ServletServer.java:538)
      9. com.caucho.server.http.ResinServer.init(ResinServer.java:406)
      10. com.caucho.server.http.ResinServer.main(ResinServer.java:1167)
      11. com.caucho.server.http.HttpServer.main(HttpServer.java:103)
      11 frames
    10. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    11. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(Unknown Source)
      1 frame