java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@31dcd942: startup date [Mon Feb 13 20:20:09 EET 2017]; root of context hierarchy

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

    Using Spring boot with rest controller

    Stack Overflow | 3 months ago | Satyadev
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@58f7ff2f: startup date [Wed Nov 09 21:08:20 IST 2016]; root of context hierarchy
  2. 0

    JNDI issue when configuring JPA with Spring Boot

    Stack Overflow | 1 week ago | Hasan Can Saral
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@31dcd942: startup date [Mon Feb 13 20:20:09 EET 2017]; root of context hierarchy
  3. 0

    I try use undertow in spring boot ,but it's error

    Stack Overflow | 3 months ago | avlin han
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@71ba6d4e: startup date [Tue Dec 06 10:17:46 CST 2016]; root of context hierarchy
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    here a exception about springboot

    Stack Overflow | 3 weeks ago | tianjian song
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@7bedc48a: startup date [Sat Feb 04 12:25:48 GMT+08:00 2017]; root of context hierarchy
  6. 0

    update spring-boot to 1.5.1.RELEASE error

    GitHub | 2 weeks ago | eastseven
    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@2d2e5f00: startup date [Tue Feb 07 20:47:34 CST 2017]; root of context hierarchy
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. javax.naming.NoInitialContextException

    Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

    at javax.naming.spi.NamingManager.getInitialContext()
  2. Java RT
    InitialContext.lookup
    1. javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
    2. javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
    3. javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:350)
    4. javax.naming.InitialContext.lookup(InitialContext.java:417)
    4 frames
  3. Spring Context
    JndiLocatorSupport.lookup
    1. org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:155)
    2. org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
    3. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
    4. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:179)
    5. org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:104)
    5 frames
  4. Spring Framework
    JndiDataSourceLookup.getDataSource
    1. org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup.getDataSource(JndiDataSourceLookup.java:45)
    2. org.springframework.jdbc.datasource.lookup.JndiDataSourceLookup.getDataSource(JndiDataSourceLookup.java:48)
    2 frames
  5. Spring Boot AutoConfigure
    JndiDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$cbd71711$$FastClassBySpringCGLIB$$5304949f.invoke
    1. org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration.dataSource(JndiDataSourceAutoConfiguration.java:62)
    2. org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$cbd71711.CGLIB$dataSource$0(<generated>)
    3. org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$cbd71711$$FastClassBySpringCGLIB$$5304949f.invoke(<generated>)
    3 frames
  6. Spring Core
    MethodProxy.invokeSuper
    1. org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
    1 frame
  7. Spring Context
    ConfigurationClassEnhancer$BeanMethodInterceptor.intercept
    1. org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:356)
    1 frame
  8. Spring Boot AutoConfigure
    JndiDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$cbd71711.dataSource
    1. org.springframework.boot.autoconfigure.jdbc.JndiDataSourceAutoConfiguration$$EnhancerBySpringCGLIB$$cbd71711.dataSource(<generated>)
    1 frame
  9. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  10. Spring Beans
    SimpleInstantiationStrategy.instantiate
    1. org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
    1 frame
  11. Spring Context
    ApplicationListenerDetector.postProcessBeforeDestruction
    1. org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:404)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2 frames
  12. Spring Beans
    DefaultListableBeanFactory.destroySingletons
    1. org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    3. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    4. org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    5. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    6. org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)[spring-beans-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    6 frames
  13. Spring Context
    AbstractApplicationContext.refresh
    1. org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1033)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:555)[spring-context-4.3.6.RELEASE.jar:4.3.6.RELEASE]
    2 frames
  14. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    2. org.springframework.boot.SpringApplication.refresh(SpringApplication.java:762)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    3. org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:372)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:316)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1187)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1176)[spring-boot-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    6 frames
  15. com.company.commons
    CommonsApplication.main
    1. com.company.commons.core.CommonsApplication.main(CommonsApplication.java:12)[core-0.1.0-SNAPSHOT.jar:0.1.0-SNAPSHOT]
    1 frame
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_121]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_121]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_121]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_121]
    4 frames
  17. Spring Boot Maven Plugin
    AbstractRunMojo$LaunchRunner.run
    1. org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:507)[spring-boot-maven-plugin-1.4.4.RELEASE.jar:1.4.4.RELEASE]
    1 frame
  18. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_121]
    1 frame