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 ...
随机推荐
- vSphereClient向ESXi主机分配许可证
ESXi服务器需要使用VMwarevSphereClient进行管理(7.0+版本可以通过浏览器进行管理)在VMware vSphere client可以方便的创建.管理虚拟机,并分配相应的资源.要能 ...
- 控件禁用与启easyui用
1.validatebox可以用的用法:前两种适用于单个的validatebox;第三种应用于整个form里面的输入框; <1>.$("#id").attr(" ...
- c#上传大文件方法
客户端代码: /// <summary> /// 将本地文件上传到指定的服务器(HttpWebRequest方法) /// </summary> /// <param n ...
- C# .net 多线程中集合数据同步
from:http://www.cnblogs.com/GavinCome/archive/2008/04/09/1145250.html C# .net 多线程中集合数据同步(转) 集合类通常不是线 ...
- sqlmap注入教程
1.SQLMAP用于Access数据库注入 (1)猜解是否能注入win: python sqlmap.py -u "http://www.stronkin.com/en/CompHonorB ...
- AtomicInteger保证线程安全的全局变量
现有业务场景需要做一个线程间的全局变量,并且实现自增效果. 初始使用了volatile 来保证count的安全性,如下: import java.util.concurrent.ExecutorSer ...
- vijos P1740 聪明的质检员
题目链接:传送门 题目大意:给你n个物品,每件物品有重量 W 和价值 V,给m个区间,和一个标准值.(n,m最大200000) 要求找到一个值x,使得m个所有区间的权值和与标准值的差的绝对值最小.单个 ...
- 160628、利用Oracle rownum让表排序字段值连续
利用Oracle rownum让表排序字段值连续 1.需求说明 表(eval_index)中有字段如下: 表字段 描述 说明 ID 主键 GROUP_ID 分组编号 SORT_NUM 排序序号 按照分 ...
- HDU 1875 畅通工程再续(kruskal)
畅通工程再续 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Sub ...
- Oracle http://127.0.0.1:8080/apex无法访问解决方案
造成无法访问的原因多数情况是由于Oracle中TNS的配置发生了改变. 造成TNS配置有问题的原因可能是:1. 修改了计算机名 2. 修改了IP 默认oracleXE 启动OracleXETNS ...