Java.lang.IllegalStateException:ApplicationEventMulticaster not Initialized-call ' refresh ' BEFORE__SSM build an exception

Source: Internet
Author: User

Today's little anecdotes are a new SSM framework that works correctly in MyEclipse, but it's wrong in Eclipse, and the error is as follows:

Warning: Exception thrown from Applicationlistener handling contextclosedevent
Java.lang.IllegalStateException:ApplicationEventMulticaster not Initialized-call ' refresh ' before multicasting Events via the Context:root webapplicationcontext:startup date [Tue Mar 17:13:36 CST 2016]; 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:558)
At Org.springframework.web.context.ContextLoaderListener.contextDestroyed (contextloaderlistener.java:143)
At Org.apache.catalina.core.StandardContext.listenerStop (standardcontext.java:5014)
At Org.apache.catalina.core.StandardContext.stopInternal (standardcontext.java:5659)
At Org.apache.catalina.util.LifecycleBase.stop (lifecyclebase.java:232)
At Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:160)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1559)
At Org.apache.catalina.core.containerbase$startchild.call (containerbase.java:1549)
At Java.util.concurrent.FutureTask.run (futuretask.java:266)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1142)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:617)
At Java.lang.Thread.run (thread.java:745)


Solution: Originally is jdk8 reason, seemingly it cannot spring3 completely parse, changed into jdk6 run correctly, and later installed the JDK7 run also correct small anecdotes of learning notes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.