我们正面临着JCO SAP服务器的问题。
问题:我们有一个正在运行的JCO SAP服务器。假设系统离开网络,运行JCO SAP服务器开始抛出错误。如果系统在30-45分钟内返回网络,则启动JCO SAP服务器恢复其功能。但是,如果系统在长时间说1或2小时后进入网络,则JCO SAP服务器不会恢复其功能。
让我们知道有没有办法增加重试次数和重试间隔?或者是配置无限重试的方法。
方法:我们尝试通过调用服务器实例上的stop方法重新启动JCO SAP服务器,然后在同一服务器实例上调用start方法,但在重新启动JVM之前,JCO SAP服务器仍未接收从SAP服务器发送的IDOC。 / p>
期望:当系统长时间进入网络后再重新启动JCO SAP服务器(调用stop()> release()> start()方法)应该正常工作。
SAP Api是否与JVM绑定或者在JVM级别缓存某些内容?
请告诉我们需要做什么?因此,即使JCO SAP服务器长时间没有网络,它也会恢复其功能。
如果您需要更多信息,请与我们联系。
运行JCO SAP版本:SAPJCO3.jar(3.0.14)
SAP JCO服务器出网时错误
2016-09-01 11:34:08,014 ERROR [JCoServerThread-2] SAPServer com.adeptia.indigo.services.sap.server.ErrorListener.serverExceptionOccurred(ErrorListener.java:46) - ||||administrators|||||admin|Error occured on ADEPTIATEST connection 4-/H/155.56.59.11/H/cpcF501|sapgw05|ADEPTIATEST[CPIC-CALL: SAP_CMACCPTP3 on convId:
ERROR connection to partner '155.56.59.11:3299' broken
TIME Thu Sep 01 11:34:07 2016
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -6
MODULE nixxi.cpp
LINE 5087
DETAIL NiIRead: P=155.56.59.11:3299; L=192.168.1.73:51413
SYSTEM CALL recv
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 1
]|192.168.1.73||null
com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: CPIC-CALL: SAP_CMACCPTP3 on convId:
ERROR connection to partner '155.56.59.11:3299' broken
TIME Thu Sep 01 11:34:07 2016
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -6
MODULE nixxi.cpp
LINE 5087
DETAIL NiIRead: P=155.56.59.11:3299; L=192.168.1.73:51413
SYSTEM CALL recv
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 1
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:681)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:2269)
at com.sap.conn.jco.rt.DefaultServerWorker.dispatch(DefaultServerWorker.java:284)
at com.sap.conn.jco.rt.DefaultServerWorker.loop(DefaultServerWorker.java:369)
at com.sap.conn.jco.rt.DefaultServerWorker.run(DefaultServerWorker.java:245)
at java.lang.Thread.run(Thread.java:745)
Caused by: RfcException: [null]
message: CPIC-CALL: SAP_CMACCPTP3 on convId:
ERROR connection to partner '155.56.59.11:3299' broken
TIME Thu Sep 01 11:34:07 2016
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -6
MODULE nixxi.cpp
LINE 5087
DETAIL NiIRead: P=155.56.59.11:3299; L=192.168.1.73:51413
SYSTEM CALL recv
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 1
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATION
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcListen(RfcIoOpenCntl.java:2315)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcServer.listen(MiddlewareJavaRfc.java:2229)
... 4 more
Caused by:
>RfcIoException:
message: CPIC-CALL: SAP_CMACCPTP3 on convId:
ERROR connection to partner '155.56.59.11:3299' broken
TIME Thu Sep 01 11:34:07 2016
RELEASE 720
COMPONENT NI (network interface)
VERSION 40
RC -6
MODULE nixxi.cpp
LINE 5087
DETAIL NiIRead: P=155.56.59.11:3299; L=192.168.1.73:51413
SYSTEM CALL recv
ERRNO 10054
ERRNO TEXT WSAECONNRESET: Connection reset by peer
COUNTER 1
Return code: RFCIO_ERROR_SYSERROR(5)<
at com.sap.conn.rfc.engine.RfcIoOpenCntl.ab_rfclisten(RfcIoOpenCntl.java:1392)
at com.sap.conn.rfc.engine.RfcIoOpenCntl.RfcListen(RfcIoOpenCntl.java:2311)
... 5 more
答案 0 :(得分:0)
在停止JCO服务器实例时执行以下操作时,它应该可以正常工作:
ServerDataEventListener
实例删除对您服务器的引用。您可以从已注册的ServerDataEventListener
对象中检索ServerDataProvider
实例的引用。DestinationDataEventListener
实例删除对目的地的引用。您可以从已注册的DestinationDataEventListener
对象中检索DestinationDataProvider
实例的引用。