java.lang.IllegalStateException

LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2fb1c977: startup date [Wed Dec 28 03:48:37 GMT 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4b45caee


Samebug tips1

Execute mvn dependency:tree from your project's root directory.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web21969

Solution icon of stackoverflow
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2fb1c977: startup date [Wed Dec 28 03:48:37 GMT 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4b45caee

Solution icon of github
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2fb1c977: startup date [Wed Dec 28 03:48:37 GMT 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4b45caee

Solution icon of github
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6931a948: startup date [Sat Dec 03 09:40:44 CST 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7e0d0d62

Solution icon of stackoverflow
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.context.annotation.AnnotationConfigApplicationContext@2b7b565b: startup date [Mon Dec 28 15:37:09 CST 2015]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7d5a0b14

Solution icon of github
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@701fc37a: startup date [Fri Dec 23 12:53:09 CET 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@25618e91

Solution icon of github
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7d373bcf: startup date [Wed May 18 09:42:34 CST 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@57a3e26a

Solution icon of stackoverflow
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@23f3100e: startup date [Fri Mar 03 23:38:37 IST 2017]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@57b8f50d

Solution icon of stackoverflow
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@32eff876: startup date [Wed Dec 28 00:18:31 EET 2016]; root of context hierarchy

Solution icon of github
via GitHub by Zasch
, 1 year ago
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@79179359: startup date [Thu Feb 11 09:02:11 CET 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@32910148

Solution icon of github
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@48d5f34e: startup date [Sat Aug 27 12:19:12 CST 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@291caca8

Stack trace

  • java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2fb1c977: startup date [Wed Dec 28 03:48:37 GMT 2016]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@4b45caee at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:417)[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1002)[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:961)[spring-context-4.3.4.RELEASE.jar!/:4.3.4.RELEASE] at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:818)[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)[spring-boot-1.4.2.RELEASE.jar!/:1.4.2.RELEASE] at com.dw.test.ScsProducerApplication.main(ScsProducerApplication.java:24)[?:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_112] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_112] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_112] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_112] at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)[spring-boot-devtools-1.4.2.RELEASE.jar!/:1.4.2.RELEASE]

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

6 times, 6 months ago
6 times, 6 months ago
4 times, 2 days ago
Once, 6 days ago
Once, 2 weeks ago
149 more bugmates