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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

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

,
via Stack Overflow by Unknown author

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

Solutions on the web

via Stack Overflow by Pratik Shah
, 11 months ago
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
via GitHub by peanutpi
, 10 months ago
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
via Stack Overflow by SerSergious
, 2 months ago
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@50eca7c6: startup date [Wed Sep 27 15:23:18 CEST 2017]; root of context hierarchy
via GitHub by jiangyuhe123
, 1 year ago
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
via Stack Overflow by user2035039
, 1 year ago
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@4e4aea35: startup date [Wed Oct 19 12:36:20 CEST 2016]; root of context hierarchy
via Stack Overflow by Kihats
, 1 year ago
LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5c33f1a9: startup date [Sun Oct 09 11:59:28 EAT 2016]; root of context hierarchy
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)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1002)
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:818)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:326)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
at com.dw.test.ScsProducerApplication.main(ScsProducerApplication.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

Users with the same issue

114 times, 5 days ago
Once, 2 weeks ago
Once, 3 weeks ago
4 times, 3 weeks ago
Once, 3 weeks ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.