今天发现SAP As Java 开发机无法启动,根据 Note 2542513 处理该问题并记录。
今天发现SAP EP+BPM服务器不能正常启动,jstart.exe进程显示 some process running 的黄灯状态。重启也不管用。到SAP官网 https://wiki.scn.sap.com/wiki/display/ASJAVA/%28JAVA%29+Application+Server+Java+Troubleshooting 里面找到Startup,点击 Starting AS Java cluster/instance 去看看到底发生了什么。
匹配到 Central services instance green; Java instance yellow 的情况。
匹配到 Internet Communication Manager (ICM) Running 的情况。
匹配到 server process Stopped 的情况。
匹配到 AS Java exit code 为 2150 的情况。
建议查看 server process log files (start with std_serverX.out files ),果然找到 /usr/sap/<SID>/J00/work/std_server0.out 文件。里面报错内容为
Service [com.sap.security.core.ume.service] start ================= ERROR =================
CSN Component [BC-JAS-SEC-UME], DC Name [sap.com/com.sap.security.core.ume.service]
com.sap.engine.frame.ServiceException: Start of UME service failed. Check help topic "Start of UME Service Failed". Technical details: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination UMEBackendConnection failed: ######## on bjvm-198 sysnr 00
at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:465)
at com.sap.engine.frame.ApplicationFrameAdaptor.start(ApplicationFrameAdaptor.java:31)
at com.sap.engine.core.service630.container.ServiceRunner.startFrame(ServiceRunner.java:165)
at com.sap.engine.core.service630.container.ServiceRunner.startService(ServiceRunner.java:118)
at com.sap.engine.core.service630.container.ServiceRunner.run(ServiceRunner.java:65)
at com.sap.engine.frame.core.thread.Task.run(Task.java:73)
at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:178)
at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:316)
Caused by: com.sap.security.core.persistence.datasource.PersistenceException: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination UMEBackendConnection failed: ######## on bjvm-198 sysnr 00
at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.<init>(PrincipalDatabagFactoryInstance.java:699)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getNewInstance(PrincipalDatabagFactory.java:203)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.newInstance(PrincipalDatabagFactory.java:153)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.newInstance(PrincipalDatabagFactory.java:215)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:139)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactory.getInstance(PrincipalDatabagFactory.java:94)
at com.sap.security.core.InternalUMFactory.initializeUME(InternalUMFactory.java:211)
at com.sap.security.core.server.ume.service.UMEServiceFrame.start(UMEServiceFrame.java:288)
... 7 more
Caused by: com.sap.security.core.persistence.datasource.PersistenceException: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination UMEBackendConnection failed: ######## on bjvm-198 sysnr 00
at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.newPersistenceException(R3PersistenceBase.java:217)
at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.init(R3PersistenceBase.java:501)
at com.sap.security.core.persistence.imp.PrincipalDatabagFactoryInstance.<init>(PrincipalDatabagFactoryInstance.java:550)
... 14 more
Caused by: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination UMEBackendConnection failed: ######## on bjvm-198 sysnr 00
at com.sap.security.core.persistence.datasource.imp.r3persistence.R3JCo700Proxy$Client700.getAttributes(R3JCo700Proxy.java:350)
at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.doInitRfc(R3PersistenceBase.java:714)
at com.sap.security.core.persistence.datasource.imp.R3Persistence.localInitialization(R3Persistence.java:254)
at com.sap.security.core.persistence.datasource.imp.R3PersistenceBase.init(R3PersistenceBase.java:480)
... 15 more
Caused by: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: Initialization of destination UMEBackendConnection failed: ######## on bjvm-198 sysnr 00
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:901)
at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:601)
at com.sap.conn.jco.rt.RfcDestination.getAttributes(RfcDestination.java:34)
at com.sap.security.core.persistence.datasource.imp.r3persistence.R3JCo700Proxy$Client700.getAttributes(R3JCo700Proxy.java:347)
... 18 more
Caused by: com.sap.conn.jco.JCoException: (103) JCO_ERROR_LOGON_FAILURE: ######## on bjvm-198 sysnr 00
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:678)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1446)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:723)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:115)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:349)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:46)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:323)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:893)
... 21 more
Caused by: RfcException:
message: ######## on bjvm-198 sysnr 00
return code: RFC_SYS_EXCEPTION (3)
error group: 103
key: RFC_ERROR_LOGON_FAILURE
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:197)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1410)
... 27 more
Caused by: RfcException raised by system [S4D|bjvm-198]:
message: ########
return code: RFC_SYS_EXCEPTION (3)
error group: 104
key: RFC_ERROR_SYSTEM_FAILURE
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:2041)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:163)
... 28 more
Caused by: com.sap.conn.rfc.exceptions.RfcGetException: ########
at com.sap.conn.rfc.engine.RfcImp.ab_rfcerror(RfcImp.java:1176)
at com.sap.conn.rfc.engine.RfcGet.ab_rfcget(RfcGet.java:120)
at com.sap.conn.rfc.engine.RfcRcv.ab_rfcreceive(RfcRcv.java:36)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcReceive(RfcIoOpenCntl.java:1983)
... 29 more
FATAL: Critical shutdown with exit code [2150] was requested due to [AS Java cannot be started; core service [com.sap.security.core.ume.service] failed to start]
Heap
par new generation reserved 1397760K, committed 1397760K, used 978260K [0x00000006f0000000, 0x0000000745500000, 0x0000000745500000)
eden space 1048320K, 89% used [0x00000006f0000000, 0x0000000729415280, 0x000000072ffc0000)
from space 174720K, 23% used [0x000000072ffc0000, 0x0000000732700020, 0x000000073aa60000)
to space 174720K, 0% used [0x000000073aa60000, 0x000000073aa60000, 0x0000000745500000)
concurrent mark-sweep generation reserved 2796544K, committed 2796544K, used 27K [0x0000000745500000, 0x00000007f0000000, 0x00000007f0000000)
Metaspace used 55582K, capacity 59026K, committed 59268K, reserved 315392K
class space used 6125K, capacity 7042K, committed 7184K, reserved 262144K
--------------------------------------------------------------------------------
再到SAP官网搜索 Initialization of destination UMEBackendConnection failed ,找到note 2542513 ,按图索骥找到 AS Java 的配置工具,Configurations - Destinations - RFC - Propertysheet UMEBackendConnection ,于是逐项检查,最终发现是 jco.client.user 账号 SAPJSF_FMD 过期了。重新设置有效期即可解决问题。