升级了JDK之后,启动应用,直接抛出此异常。网上搜罗半天,没有正确的解决方案。

然后想到了是“升级了JDK”,重新检查所有JDK相关的配置的地方,在Debug Configurations里找到启动时默认配置了系统环境JDK,更换之,重启,好使了。。。。。

总结一下,网上的解决方案不一定都适用自己遇到的问题,很多问题向前排查一步,或许就能找到原因。

(网上出现的此异常情况原因有:缺Jar(这个不一定会抛此异常)、重复命名service(@service(***)导致重名bean,spring不知道该怎么代理)等等吧)

  1. 五月 08, 2017 4:27:19 下午 org.apache.catalina.core.StandardContext start
  2. 严重: Error listenerStart
  3. 五月 08, 2017 4:27:19 下午 org.apache.catalina.core.StandardContext start
  4. 严重: Context [] startup failed due to previous errors
  5. 五月 08, 2017 4:27:19 下午 org.apache.catalina.core.ApplicationContext log
  6. 信息: Closing Spring root WebApplicationContext
  7. 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
  8. 16:27:19,493 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (org.springframework.context.support.AbstractApplicationContext:1052) - Exception thrown from ApplicationListener handling ContextClosedEvent
  9. 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
  10. at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:347)
  11. at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:334)
  12. at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1049)
  13. at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
  14. at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:558)
  15. at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
  16. at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
  17. at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
  18. at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
  19. at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  20. at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
  21. at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  22. at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
  23. at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
  24. at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(AbstractRunMojo.java:850)
  25. at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(AbstractRunMojo.java:429)
  26. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
  27. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
  28. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  29. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  30. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  31. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  32. at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  33. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  34. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  35. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
  36. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  37. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
  38. at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  39. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  40. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  41. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  42. at java.lang.reflect.Method.invoke(Method.java:497)
  43. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
  44. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  45. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
  46. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  47. 16:27:19,499 WARN [org.springframework.web.context.support.XmlWebApplicationContext] (org.springframework.context.support.AbstractApplicationContext:1060) - Exception thrown from LifecycleProcessor on context close
  48. 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
  49. at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
  50. at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1057)
  51. at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:1010)
  52. at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:558)
  53. at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:143)
  54. at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4245)
  55. at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4886)
  56. at org.apache.catalina.core.StandardContext.start(StandardContext.java:4750)
  57. at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  58. at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
  59. at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
  60. at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
  61. at org.apache.catalina.startup.Embedded.start(Embedded.java:825)
  62. at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.startContainer(AbstractRunMojo.java:850)
  63. at org.apache.tomcat.maven.plugin.tomcat6.AbstractRunMojo.execute(AbstractRunMojo.java:429)
  64. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
  65. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
  66. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
  67. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
  68. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
  69. at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
  70. at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
  71. at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
  72. at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
  73. at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
  74. at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
  75. at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
  76. at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
  77. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  78. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  79. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  80. at java.lang.reflect.Method.invoke(Method.java:497)
  81. at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
  82. at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
  83. at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
  84. at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
  85. 五月 08, 2017 4:27:19 下午 org.apache.catalina.core.ApplicationContext log
  86. 信息: Shutting down log4j
  87. 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
  88. 五月 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. php-fpm 如果dm设置为 static,那么其实只有pm.max_children这个参数生效。系统会开启设置数量的php-fpm进程。

    php-fpm未优化网友反映的问题 1.最近将Wordpress迁移至阿里云.由于自己的服务器是云服务器,硬盘和内存都比较小,所以内存经常不够使,通过ps ax命令查看后,发现启动php-fpm进程数 ...

  2. 【揭秘】什么是不对称秘钥和CA证书

    密钥交换简单的说就是利用非对称加密算法来加密对称密钥保证传输的安全性,之后用对称密钥来加密数据. ★方案1--单纯用"对称加密算法"的可行性 首先简单阐述一下,"单纯用对 ...

  3. nodejs 聊天室简单实现

    前言 博客园的样式真心不会用啊,看着大大们的博客各种好看,心里无奈啊,只能慢慢摸索了. 最近的项目nodejs+wcf+app,app直接从wcf服务获取数据,nodejs作为单独的服务器为app提供 ...

  4. Hbase存储详解

    转自:http://my.oschina.net/mkh/blog/349866 Hbase存储详解 started by chad walters and jim 2006.11 G release ...

  5. Bootstrap打印问题

    删除bootstrap的样式引用,就可以正常打印预览了. bootstrap 设置了@media print相关属性导致 @media print { * { color: #000 !importa ...

  6. 学习DBCC CHECKIDENT

    检查指定表的当前标识值,如有必要,还对标识值进行更正. 语法DBCC CHECKIDENT    ( 'table_name'        [ , { NORESEED                ...

  7. 把xml格式的字符串写入到一个xml文件中

    package demo; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; impo ...

  8. Docker入门与应用系列(五)Dockerfile

    Dockerfile是为快速构建docker image而设计的,当你使用dockerbuild 命令的时候,docker 会读取当前目录下的命名为Dockerfile(首字母大写)的纯文本文件并执行 ...

  9. GIT 回退出错 Unlink of file 'xx' failed. Should I try again? (y/n) 解决办法

    发生过程 回退版本 如果回退版本时 里面有删除或者移动的文件 容易出这个问题 解决方法 git reset --hard 版本号  回退失败了  就 本地工作目录跟版本那个工作目录比较   然后还原修 ...

  10. AndroidManifest.xml文件详解(activity)(五)

    android:taskAffinity 这个属性用于跟Activity有亲缘关系的任务.带有相同亲缘关系的Activity,在概念上是属于相同任务的(从用户的角度看,它们是属于同一应用程序的).任务 ...