不涉及
iMC&U-Center jserver进程启动失败,报错“进程启动失败,需要审计日志分析原因”或者“进程启动未知错误”等之类的报错
对于进程启动失败问题,什么进程启动失败就对应查看什么进程的日志。如本例现场jserver进程启动失败,就收集imcforeground.log分析。
1、查看日志有如下报错提示,该问题很常见,大部分是因为现场环境有杀毒软件、或者磁盘异常导致server.xml文件被损坏导致。
2、现场对应查找%iMC/client/conf/server.xml,发现文件大小确实只有0Kb。
2020-11-14 10:15:38 [WARN ] [main] [com.imc.common.CommonUtils::queryWebServerPort] getWebServerPort() Parse E:\Program Files\iMC\client\conf\server.xml get SAXException: org.xml.sax.SAXParseException; systemId: file:/E:/Program%20Files/iMC/client/conf/server.xml; lineNumber: 1; columnNumber: 1; 文件提前结束。
at ***.***.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at ***.***.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:347)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:205)
at com.imc.common.CommonUtils.queryWebServerPort(CommonUtils.java:728)
at com.imc.common.CommonUtils.getWebServerPortFromServerXml(CommonUtils.java:556)
at com.imc.bootstrap.TomcatStartup.init(TomcatStartup.java:136)
at com.imc.bootstrap.TomcatStartup.afterPropertiesSet(TomcatStartup.java:79)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1571)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1509)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at com.imc.bootstrap.IMCServer.load(IMCServer.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606) at com.imc.bootstrap.ServerStartup.load(ServerStartup.java:677)
at com.imc.bootstrap.ServerStartup.start(ServerStartup.java:511) at com.imc.bootstrap.ServerStartup.process(ServerStartup.java:384)
at com.imc.bootstrap.Bootstrap.process(Bootstrap.java:139)
at com.imc.bootstrap.Bootstrap.main(Bootstrap.java:249)
从现场环境
%iMC\deploy\components\iMC-PLAT\V700R001B06D023SP05(这个根据现场实际环境修改,即为目录下最新文件夹)\client\client.zip\client\conf找到server.xml文件对应替换到现场环境对应目录下E:\Program Files\iMC\client\conf\server.xml下,再重启jserver即可。
注:该问题分析及排查不局限于jserver进程启动失败,对于其他例如euplat和seplat等进程启动失败都有可能会有类似原因,只要日志中出现这个上述错误,一般这么处理就能解决。
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作