升级了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: --异常记录的更多相关文章

  1. 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 ...

  2. LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the contex异常的原因

    eclipse里面启动tomcat报这个错误的原因是由于jar包冲突了,在我的项目里面引入了jar包,但是我的工程里面有这个jar包的两个工程,都被导入到同一个项目里面了,导致不知道该去用哪一个类,所 ...

  3. 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.重新编 ...

  4. eclipse启动报错java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' befo

    报错: java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invo ...

  5. java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context 错误

    spring boot 项目启动报错:原因一般是注入了相同名字的service -- :: com.gxcards.mes.MainWwwWeb: logStartupProfileInfo INFO ...

  6. ApplicationEventMulticaster not initialized - call 'refresh' before

    https://stackoverflow.com/questions/45318618/applicationeventmulticaster-not-initialized-call-refres ...

  7. vue & lifecycle methods & this bug & ES6 Arrow function & this bind bug

    vue & lifecycle methods & this bug ES6 Arrow function & this bind bug bad fetchTableData ...

  8. React LifeCycle Methods & re-learning 2019

    React LifeCycle Methods & re-learning 2019 v16.9.0 https://reactjs.org/docs/react-component.html ...

  9. [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 ...

随机推荐

  1. CRM认识的误区

    众所周知,CRM,就是平时说的“客户关系管理”,指用CRM来管理 企业与客户之间的关系.纵观整个IT圈子,做CRM的厂商比比皆是,每个厂商都有自己的产品宣言,令人眼花缭乱.但是领很多老板们不解的是,我 ...

  2. android camera之nv21旋转

    这周做的一个android的camera开发,需要获取到视频帧数据,并且需要是nv21格式的byte数组,并且视频帧的图像需要是正方向的.和android相机打过交道的都清楚,android的came ...

  3. HTML5课程

    1.新语义化标签:section.header.footer.nav.article.aside.figure.dialog.time.meter.mark.progress.video 2.最新的属 ...

  4. EasyUI项目学习

    介绍easyui的使用,主要包括以下组件 布局面板 - layout 可伸缩面板 - accordion 选项卡 - tabs 控制面板 - panel 窗口 - window 对话框 - dialo ...

  5. 自己编写Android Studio插件 别停留在用的程度了(转载)

    转自:自己编写Android Studio插件 别停留在用的程度了 1概述 相信大家在使用Android Studio的时候,或多或少的会使用一些插件,适当的配合插件可以帮助我们提升一定的开发效率,更 ...

  6. python笔记-基础入门

    Python 特点 1.易于学习:Python有相对较少的关键字,结构简单,和一个明确定义的语法,学习起来更加简单. 2.易于阅读:Python代码定义的更清晰. 3.易于维护:Python的成功在于 ...

  7. WPF MVVM(Caliburn.Micro) 数据验证

    书接前文 前文中仅是WPF验证中的一种,我们暂且称之为View端的验证(因为其验证规是写在Xaml文件中的). 还有一种我们称之为Model端验证,Model通过继承IDataErrorInfo接口来 ...

  8. Tweened Animations 渐变动作

    Tweened Animations 渐变动作 Animations分两类: 第一类:渐变的(Tweened): 淡入淡出(Alpha),旋转(Rotate),移动(Translate),缩放(Sca ...

  9. 【分享】Collecting all the cheat sheets

    http://overapi.com/   这个网站可以查询到所有与编程相关的各种技术,并给出详细的知识点(干货).

  10. poj 1322 Chocolate (概率dp)

    ///有c种不同颜色的巧克力.一个个的取.当发现有同样的颜色的就吃掉.去了n个后.到最后还剩m个的概率 ///dp[i][j]表示取了i个还剩j个的概率 ///当m+n为奇时,概率为0 # inclu ...