java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
来源:互联网 发布:facetime是什么软件 编辑:程序博客网 时间:2024/06/05 17:06
spring项目启动的时候报错:
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Tue Jul 18 14:49:33 CST 2017]; root of context hierarchy
分析 最近的一次操作为复制了修改了一个类导致系统启动不了,可能原因:复制类的时候,注解的name命名重复
结论:
复制的 @Service("boWeiBrokenScreenService")标签重复
修改后已解决
详细错误如下:
MPLATNAUTO[2017-07-18 14:49:33,862]>>INFO >> [Closing Root WebApplicationContext: startup date [Tue Jul 18 14:49:33 CST 2017]; root of context hierarchy] - [org.springframework.web.context.support.XmlWebApplicationContext] -859 [localhost-startStop-1]
MPLATNAUTO[2017-07-18 14:49:33,895]>>WARN >> [Exception thrown from ApplicationListener handling ContextClosedEvent] - [org.springframework.web.context.support.XmlWebApplicationContext] -892 [localhost-startStop-1]
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Tue Jul 18 14:49:33 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:347)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1049)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5146)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5810)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
MPLATNAUTO[2017-07-18 14:49:33,895]>>WARN >> [Exception thrown from LifecycleProcessor on context close] - [org.springframework.web.context.support.XmlWebApplicationContext] -892 [localhost-startStop-1]
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Tue Jul 18 14:49:33 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5146)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5810)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
七月 18, 2017 2:49:33 下午 org.apache.catalina.core.StandardContext listenerStop
严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:171)
at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090)
at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1064)
at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:559)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:5146)
at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5810)
at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:224)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:159)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
阅读全文
0 0
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized解决办法
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before
- shiro造成dubbo无法注入java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
- ApplicationEventMulticaster not initialized
- ApplicationEventMulticaster not initialized
- java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- eclipse启动报错java.lang.IllegalStateException: LifecycleProcessor not initialized
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- java.lang.IllegalStateException: BeanFactory not initialized or already closed
- tomcat报错 ApplicationEventMulticaster not initialized
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' bef
- Spring报错java.lang.IllegalStateException: BeanFactory not initialized or already closed -call 'refres
- java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' befo
- 操作 python -- 进程与线程 (二)
- mybatis总结(分文件类型)
- 用Kotlin开发android平台语音识别,语义理解应用(olamisdk)
- PythonIO编程
- android之Toolbar使用详解
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
- cordova filetransfer插件——上传、下载文件
- 如果图片路径或者名称是中文,如何在页面显示
- Linux pipe函数
- tensorflow 实战 猫狗大战(一)训练自己的数据
- 使用Runtime去运行命令行 CreateProcess error=193, %1 不是有效的 Win32 应用程序。
- Android Service完全解析,关于服务你所需知道的一切(上)
- tomcat下部署solr
- java根据模板导出PDF详细教程(无bug版)