java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

usergrid-user | Samuel Ngoda | 1 year 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

    Re: Usergrid unabe to start

    usergrid-user | 1 year ago | Samuel Ngoda
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  2. 0

    Re: Usergrid unabe to start

    usergrid-user | 1 year ago | Samuel Ngoda
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  3. 0

    Re: Usergrid unabe to start

    usergrid-user | 1 year ago | Samuel Ngoda
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Context initialization failed after updating Spring Version

    Stack Overflow | 2 years ago | RIP_SunMicroSys
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Wed Dec 10 08:30]; root of context hierarchy
  6. 0

    SAXParseException - noe4j:config - happens only on server deployment (Linux)

    Stack Overflow | 3 years ago | Carmel Baumel-Ezra
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

  1. Andreas Häber 3 times, last 1 week ago
  2. linxiaolong 2 times, last 2 months ago
  3. kjhdofjosvs 2 times, last 6 months ago
  4. marcbouvierdav 3 times, last 6 months ago
  5. andyglick 6 times, last 7 months ago
4 more registered users
91 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

    BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext

    at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory()
  2. Spring Context
    AbstractApplicationContext.close
    1. org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
    2. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1092)
    3. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1066)
    4. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1012)
    4 frames
  3. Spring
    ContextLoaderListener.contextDestroyed
    1. org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:586)
    2. org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
    2 frames
  4. Glassfish Core
    HostConfig$DeployWar.run
    1. org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5124)
    2. org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5786)
    3. org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:232)
    4. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:160)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
    8. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1095)
    9. org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1957)
    9 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames