Older or Incompatible Spring libraries

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor
(source)

Typical Exception Messages

  1. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.service, config=osgibundle:/META-INF/spring/*.xml): startup date [Mon Jan 07 14:28:05 CET 2013]; root of context hierarchy
  2. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Fri Feb 27 12:28:49 CET 2015]; root of context hierarchy
  3. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: dk.intelligentsystems.platform.Application$ClosingXmlApplicationContext@2e02d950: startup date [Mon Mar 30 11:45:47 CEST 2015]; root of context hierarchy
  4. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: OsgiBundleXmlApplicationContext(bundle=org.squashtest.tm.plugin.report.qualitativecoverage, config=osgibundle:/META-INF/spring/*.xml): startup date [Tue Mar 10 16:17:21 CET 2015]; root of context hierarchy
  5. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: OsgiBundleXmlApplicationContext(bundle=myBroker-broker.xml, config=osgibundle:/META-INF/spring/*.xml): startup date [Wed Sep 12 13:20:36 CEST 2012]; root of context hierarchy
  6. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Fri Jul 06 02:52:24 WAT 2012]; root of context hierarchy
  7. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Wed Mar 28 12:42:02 MST 2012]; root of context hierarchy
  8. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Thu Sep 11 14:25:27 WIB 2014]; root of context hierarchy
  9. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.context.annotation.AnnotationConfigApplicationContext@29774679: startup date [Mon Dec 07 23:27:56 CET 2015]; root of context hierarchy
  10. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sat Jul 12 13:47:37 CST 2014]; root of context hierarchy

Specific cases

Solution

Nwabunnia, 10 months ago

Upgrade spring-web and spring-webmvc dependencies. Also upgrade your Java version to Java 8 if using less.

External results for this pattern (323)

  1. cousin1994via GitHub3 weeks ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@af2e13c: startup date [Tue May 29 21:05:58 CST 2018]; root of context hierarchy
    Show stack trace
  2. monikanaagarvia GitHub1 month ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.context.annotation.AnnotationConfigApplicationContext@79014d9: startup date [Tue Jul 03 19:46:19 CEST 2018]; root of context hierarchy
    Show stack trace
  3. samko635via GitHub1 month ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.web.context.support.GenericWebApplicationContext@413d1baf: startup date [Tue Sep 19 14:17:21 ICT 2017]; root of context hierarchy
    Show stack trace
  4. Vignesh Rvia Stack Overflow2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@445629: startup date [Thu Aug 17 16:02:09 IST 2017]; root of context hierarchy
    Show stack trace
  5. Krlos9108via Stack Overflow2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sat Apr 26 15:15:16 CDT 2014]; root of context hierarchy
    Show stack trace
  6. Scottvia Stack Overflow2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@ddd51a7: startup date [Mon Dec 22 19:22:58 EST 2014]; root of context hierarchy
    Show stack trace
  7. gregturnvia GitHub2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@6b98a075: startup date [Sat Aug 12 08:41:02 CDT 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@c730b35
    Show stack trace
  8. coolworkervia GitHub2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Wed Dec 30 22:01:06 CST 2015]; root of context hierarchy
    Show stack trace
  9. Silence-Wangvia GitHub2 months ago
    LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext - /cuppy: startup date [Thu Jul 13 14:34:36 CST 2017]; parent: hybris Application context - master
    Show stack trace
  10. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Fri Dec 15 15:05:16 CET 2017]; root of context hierarchy
    Show stack trace