LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: --异常记录
升级了JDK之后,启动应用,直接抛出此异常。网上搜罗半天,没有正确的解决方案。
然后想到了是“升级了JDK”,重新检查所有JDK相关的配置的地方,在Debug Configurations里找到启动时默认配置了系统环境JDK,更换之,重启,好使了。。。。。
总结一下,网上的解决方案不一定都适用自己遇到的问题,很多问题向前排查一步,或许就能找到原因。
(网上出现的此异常情况原因有:缺Jar(这个不一定会抛此异常)、重复命名service(@service(***)导致重名bean,spring不知道该怎么代理)等等吧)


五月 08, 2017 4:27:19 下午 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
五月 08, 2017 4:27:19 下午 org.apache.catalina.core.StandardContext start
严重: Context [] startup failed due to previous errors
五月 08, 2017 4:27:19 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
16:27:19,492 INFO [org.springframework.web.context.support.XmlWebApplicationContext] (org.springframework.context.support.AbstractApplicationContext:1042) - Closing Root WebApplicationContext: startup date [Mon May 08 16:27:18 CST 2017]; root of context hierarchy
16:27:19,493 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (org.springframework.context.support.AbstractApplicationContext:1052) - Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon May 08 16:27:18 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:558)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(AbstractRunMojo.java:850)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(AbstractRunMojo.java:429)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
16:27:19,499 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (org.springframework.context.support.AbstractApplicationContext:1060) - Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Mon May 08 16:27:18 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:558)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(AbstractRunMojo.java:850)
at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(AbstractRunMojo.java:429)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
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:497)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
五月 08, 2017 4:27:19 下午 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
16:27:19,510 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] (org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:444) - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@36ab3814: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,baseCampusDaoImpl,baseExportDataAnalysisDaoImpl,baseInterfaceLogDaoImpl,baseLoginDaoImpl,baseProjectManagerDaoImpl,basePublishNotesDaoImpl,baseUserDaoImpl,baseVisitDaoImpl,baseWebApiDaoImpl,blackBordDaoImpl,cpv3AuthorityManagementDaoImpl,cpv3BaseBbsDaoImpl,cpv3BasePersonDaoImpl,cpv3BaseUniversityDaoImpl,cpv3BaseVenueDaoImpl,cpv3CustormIndustryDaoImpl,cpv3DataCollectDaoImpl,cpv3EnumBDaoImpl,cpv3FileDaoImpl,cpv3LedgerDaoImpl,cpv3MapSqlDaoImpl,cpv3MenuDaoImpl,cpv3SpecialityRankDaoImpl,cpv3StudentPoolDaoImpl,cpv3SupplierDaoImpl,cpv3UniContactDaoImpl,cpv3WeChatDaoImpl,baseCampusServiceImpl,baseExportDataAnalysisServiceImpl,baseInterfaceLogServiceImpl,baseLoginServiceImpl,baseProjectManagerServiceImpl,basePublishNotesServiceImpl,baseUserServiceImpl,baseVisitServiceImpl,baseWebApiServiceImpl,blackBordServiceImpl,cpv3AuthorityManagementServiceImpl,cpv3BaseBbsServiceImpl,cpv3BasePersonServiceImpl,cpv3BaseUniversityServiceImpl,cpv3BaseVenueCampusDataServiceImpl,cpv3BaseVenueServiceImpl,cpv3CostManageServiceImpl,cpv3CustormIndustryServiceImpl,cpv3DataCollectServiceImpl,cpv3EnumBServiceImpl,cpv3FileServiceImpl,cpv3LedgerServiceImpl,cpv3MenuServiceImpl,cpv3ProductManageServiceImpl,cpv3SpecialityRankServiceImpl,cpv3StudentPoolServiceImpl,cpv3SupplierServiceImpl,cpv3UniContactServiceImpl,cpv3WeChatServiceImpl,ctalkTelDaoImpl,recruitPilotDaoImpl,telephonistDaoImpl,ctalkTelServiceImpl,recruitPilotServiceImpl,telephonistServiceImpl,flushLocalFileToAli,messageScanJob,synchCustomerJob,taskFileZipJob,taskReminder,baseService,cdcLogService,cdcStaticsService,cdcUtilService,commentService,customerService,extFeedbackService,extPowerService,extRoleService,extTaskService,extUniversityService,extUserService,feedbackService,fileZipService,homeService,httpClientService,messageService,pdHomeService,projectService,regionService,taskNotfiyService,taskReminderService,taskService,telMessageService,universityService,userService,CommonDao,cpmsPersonManageDaoImpl,cpmsPersonScheduleProjectDao,cpmsPersonScheduleTaskDaoImpl,cpmsPersonScheduleTaskManageDaoImpl,cpmsProjectScheduleDaoImpl,cpmsPscheduleTaskDaoImpl,cpmsReasonDao,cpmsRefuseDao,cpmsStatusSetDaoImpl,cpmsTaskDao,cpmsTaskFeedbackDao,cpmsTaskOperatLogDao,cpmsUniversityCpmsDao,CpmsVenueDao,cpmsVenueScheduleDao,cpmsVenueUseDao,cpmsVscheduleTaskDao,projectCpmsDao,resourceCpmsDao,taskFollowingDao,userCpmsDao,venueCpmsDao,cpmsTaskReminder,scheduleService,timerTask,CommonService,cpmsPersonManageServiceImpl,cpmsPersonScheduleProjectService,cpmsPersonScheduleTaskManageServiceImpl,cpmsPersonScheduleTaskServiceImpl,cpmsProjectScheduleServiceImpl,cpmsPscheduleTaskServiceImpl,cpmsReasonService,cpmsRefuseService,cpmsStatusSetServiceImpl,cpmsTaskFeedbackService,cpmsTaskService,cpmsUniversityService,cpmsVenueScheduleService,cpmsVscheduleTaskService,projectCpmsService,resourceCpmsService,userCpmsService,venueCpmsServiceImpl,costHyalineDaoImpl,cpv3CostDaoImpl,cpv3CrmDaoImpl,cpv3EnumDaoImpl,cpv3ImportV7DaoImpl,cpv3LedgerDao,cpv3MaterialColumnDaoImpl,cpv3MaterialDaoImpl,cpv3ProdCostRelDaoImpl,cpv3ProductDaoImpl,cpv3ProjectApplyDao,cpv3ProjectDao,cpv3QuoChooseProdClassDaoImpl,cpv3QuoMaterialProdRelDaoImpl,cpv3QuoProdPlanCostDaoImpl,cpv3QuotationDaoImpl,cpv3QuotationProdDaoImpl,cpv3QuoUniversityDaoImpl,cpv3UniversityDaoImpl,costHyalineService,cpv3EnumServiceImpl,xepExcelService,cpv3ImportV7Service,cpv3LedgerService,cpv3MaterialServiceImpl,cpv3ProductServiceImpl,cpv3ProjectService,quotationCpmsService,cpv3UniversityServiceImpl,rbDingTalkDaoImpl,rbImportDaoImpl,rbLedgerDaoImpl,rbPersonLedgerDaoImpl,rbProjectCalendarDaoImpl,rbProjectPubPlanDaoImpl,rbTaskReportDaoImpl,rbVenuePersonOptDaoImpl,surveyDaoImpl,taskExecuteInfoDaoImpl,todoTaskDaoImpl,visitMonitorDaoImpl,channelTaskjob,cityledgerTask,dingTask,ledgerTaskInnerWarnJob,ledgerTaskJob,ledgerTaskResultJob,messageResJob,quartzJob,ResetTelephonistPwdJob,surveyCollectJob,taskRemind,dingTalkServiceImpl,exportLedgerExcelServiceImpl,presenceRateWaringTaskService,publicSentimentServiceImpl,rbImportServiceImpl,rbLedgerServiceImpl,rbPersonLedgerServiceImpl,rbProjectCalendarServiceImpl,rbProjectPubPlanServiceImpl,rbTaskReportServiceImpl,rbVenuePersonOptServiceImpl,surveyServiceImpl,taskExecuteInfoServiceImpl,todoTaskServiceImpl,videoUrlServiceImpl,visitMonitorServiceImpl,dingTalkThread,saasAccountDaoImpl,saasMainDaoImpl,saasWarningDaoImpl,saasAccountServiceImpl,saasMainServiceImpl,saasWarningService,reportStateJob,schedulerCtrl,ZPQuartzService,org.springframework.aop.config.internalAutoProxyCreator,job_noticeExecute,noticeExecuteCronTrigger,ding_jobExecute,ding_jobTrigger,presence_noticeExecute,presenceExecuteCronTrigger,taskLedgerExecute,taskLedgerResultExecute,surveyCollectExecute,taskLedgerInnerWarnExecute,messageResExecute,resetTelePwdExecute,taskLedgerExecuteCronTrigger,taskCityWeekLedgerExecute,taskLedgerCityWeekTrigger,taskLedgerResultExecuteCronTrigger,surveyCollectCronTrigger,innerWarnExecuteCronTrigger,messageResCronTrigger,resetTelePwdCronTrigger,todo_task,todo_taskCronTrigger2,todo_taskCronTrigger3,warningInit,warningInitCronTrigger,executeScoreInit,executeScoreInitCronTrigger,exportTaskWarning,exportTaskWarningCronTrigger,channel_jobExecute,channel_jobTrigger,mapScheduler,cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,clientFactory,rbacClient,holidayClientFactory,holidayInfoService,org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#1,mongoTemplate,propertyConfigurer,cdcDataSource,crmDataSource,cdcJdbcTemplate,transactionManager,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,cdcDao,crmJdbcTemplate,crmTransactionManager,crmDao,pgDataSource,pgJdbcTemplate,pgTransactionManager,pgDao,dwDataSource,dwJdbcTemplate,dwTransactionManager,dwDao,springContextUtils,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor]; root of factory hierarchy
五月 08, 2017 4:27:19 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: --异常记录的更多相关文章
- LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Sun Jan 13 17:59:19 CST 2019]; root of context hierarch
在运行项目时出现了:LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via ...
- LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the contex异常的原因
eclipse里面启动tomcat报这个错误的原因是由于jar包冲突了,在我的项目里面引入了jar包,但是我的工程里面有这个jar包的两个工程,都被导入到同一个项目里面了,导致不知道该去用哪一个类,所 ...
- java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Mon Oct 01 16:32:37 CS
使用idea工具更改项目包名时报 :java.lang.ClassNotFoundException 解决方案: 1.删除项目的target目录,这个目录存放的是编译后的文件 2.清除缓存 3.重新编 ...
- eclipse启动报错java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' befo
报错: java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invo ...
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context 错误
spring boot 项目启动报错:原因一般是注入了相同名字的service -- :: com.gxcards.mes.MainWwwWeb: logStartupProfileInfo INFO ...
- ApplicationEventMulticaster not initialized - call 'refresh' before
https://stackoverflow.com/questions/45318618/applicationeventmulticaster-not-initialized-call-refres ...
- vue & lifecycle methods & this bug & ES6 Arrow function & this bind bug
vue & lifecycle methods & this bug ES6 Arrow function & this bind bug bad fetchTableData ...
- React LifeCycle Methods & re-learning 2019
React LifeCycle Methods & re-learning 2019 v16.9.0 https://reactjs.org/docs/react-component.html ...
- [MST] Use Volatile State and Lifecycle Methods to Manage Private State
MST has a pretty unique feature: It allows you to capture private state on models, and manage this s ...
随机推荐
- nginx-1.14.0安装
1.百度搜索Nginx,点击Nginx news官网,点击nginx-1.13.10进入下载网页,选择Stable version的版本之后下载. 2.进入根目录,cd / 3.在根目录下创建soft ...
- expr判断整数是相加的值,返回命令的返回值$? 是0,但是少数情况是1,例如1 + -1 ,$? 的结果是1 ,判断要大于1最准确
[root@m01 ~]# expr 1 + 12[root@m01 ~]# echo $?0[root@m01 ~]# echo 1 - 51 - 5[root@m01 ~]# expr 1 - 5 ...
- maven项目打ZIP包
1.Maven插件配置: <!-- ZIP打包 --> <plugin> <artifactId>maven-assembly-plugin</artifac ...
- 模式识别之Shape Context---利用Shape Context进行形状识别
什么是Shape Context Shape Context是一个用于形状识别的,非常经典的特征(一串便于计算机处理的数字)提取方法,它由Serge Belongie和Jitendra Malik ...
- Java多线程基础知识总结
2016-07-18 15:40:51 Java 多线程基础 1. 线程和进程 1.1 进程的概念 进程是表示资源分配的基本单位,又是调度运行的基本单位.例如,用户运行自己的程序,系统就创建一个进程, ...
- C++ Base64编码解码、MD5及TEA加密解密
Crypto.h以及Crypto.cpp Crypto.h 123456789101112131415161718192021222324252627282930313233343536373839 ...
- Laravel5.1 模型 --远层一对多关系
远层一对多我们可以通过一个例子来充分的了解它: 每一篇文章都肯定有并且只有一个发布者 发布者可以有多篇文章,这是一个一对多的关系.一个发布者可以来自于一个国家 但是一个国家可以有多个发布者,这又是一个 ...
- TypeScript 函数 (五)
传递给一个函数的参数个数必须与函数期望的参数个数一致. 参数类别: 必须参数 可选参数 :可选参数必须在参数后面. 默认参数 :当用户没有传递这个参数或传递的值是undefined时. 它们叫做有默认 ...
- JavaWeb中文乱码问题解决思路
1.提交页面请求或者服务器端的响应时,需要确保页面编码当时与服务器编码方式是否一致. 2.对于从服务器写入数据库中的数据和从数据库中读取到服务器中的数据,需要确保服务器编码方式与数据库编码方式是否一致 ...
- 分布式服务框架:Zookeeper简介
分布式服务框架:Zookeeper(分布式系统的可靠协调系统) 本文导读: 1 Zookeeper概述 2 Zookeeper总体结构 ——逻辑图.运转流程.特点.优点.数据结构 3 Zookeepe ...