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 ...
随机推荐
- 全栈JavaScript之路(十四)HTML5 中与class属性相关的扩充
1. getElementByClassName() :支持getElementsByClassName()方法的浏览器有IE 9+.Firefox 3+.Safari 3.1+.Chrome 和 O ...
- 用node.js进行微信公众平台的开发
基本原理 用nodejs怎样来实现对微信公众平台的开发呢? 别的就不多说了,先来简单介绍微信公众平台的基本原理. 微信服务器就相当于一个转发服务器,终端(手机.Pad等)发起请求至微信服务器,微信服务 ...
- 【转】不用程序mysql也可以查询今天、昨天、7天、近30天、本月、上一月的数据
今天 select * from 表名 where to_days(时间字段名) = to_days(now()); 昨天 SELECT * FROM 表名 WHERE TO_DAYS( NO ...
- 【ARDUINO】HC-05蓝牙不配对问题
除了刷主从之外,不配对的原因有1:已经配对其他设备,需用AT+RMAAD来移除.2.默认为蓝牙由绑定指令设置,需改为任意地址连接模式AT+CMODE=1 //#define AT 2 #define ...
- Java逍遥游记读书笔记<二>
Abstract抽象类 1.抽象类不能被实例化 2.抽象方法没有方法体 如: public abstract class Weapen { public abstract void attack(); ...
- python3----练习题(冒泡排序)
冒泡,原理是临近的数字两两进行比较,按照从小到大的顺序进行交换,这样交换一次之后,最大的数字就被交换到了最后一位. li = [33, 2, 10, 1] for j in range(1, len( ...
- PhoneGap 获得设备属性Demo
<!DOCTYPE html> <html> <head> <title>设备属性Demo</title> <script type= ...
- Openstack创建镜像
如何创建生产用的Openstack镜像 参考官方文档https://docs.openstack.org/image-guide/centos-image.html 1,创建虚拟机硬盘 qemu-im ...
- Html中编码格式的设置,及引入javascript、css的方法
1.html页面中设置字符编码的格式: <meta http-equiv="Content-Type" content="text/html; charset=ut ...
- Decorate设计模式
定义:装饰器设计模式以对客户端透明的方式扩展对象的功能,是继承关系的一个替代方案.不改变对象的情况下,动态增加其功能. • 需要扩展一个类的功能,或给一个类添加附加的成员. • 需要动态地给一个对象增 ...