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

Stack Overflow | Dimitris P. | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0
    samebug tip
    Execute mvn dependency:tree from your project's root directory.
  2. 0

    What is the conflict that causes lang.ClassCastException on WebLogic?

    Stack Overflow | 6 months ago | Dimitris P.
    java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
  3. 0

    Weblogic DeployerException: NoSuchMethodError: org.apache.xerces.impl.xpath.regex.RegularExpression.<init>(Ljava/lang/String;Ljava/lang/String;Ljava/util/Locale;)V

    Oracle Community | 2 months ago | User479867-Oracle
    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

    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context

    Stack Overflow | 2 years ago
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon May 25 02:35:09 GMT+03:30 2015]; root of context hierarchy
  6. 0

    LifecycleProcessor not initialized – call ‘refresh’ before invoking lifecycle methods via the context | Solutions for enthusiast and professional programmers

    fatal-errors.com | 12 months ago
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon May 25 02:35:09 GMT+03:30 2015]; root of context hierarchy

  1. iferca 1 times, last 2 weeks ago
  2. linxiaolong 2 times, last 3 weeks ago
  3. Nikolay Rybak 1 times, last 3 weeks ago
  4. tvrmsmith 2 times, last 2 months ago
  5. tomthomas 6 times, last 2 months ago
11 more registered users
84 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:1090)
    3. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
    4. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
    4 frames
  3. Spring
    ContextLoader.closeWebApplicationContext
    1. org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
    1 frame