简体   繁体   English

系统退出网络时面临SAP JCO服务器连接问题

[英]Facing issue with SAP JCO server connectivity when system out of network

We are facing issue with JCO SAP Server. 我们正面临着JCO SAP Server的问题。

Issue: We have a running JCO SAP server. 问题:我们有一个正在运行的JCO SAP服务器。 Suppose if system gets out of the network, running JCO SAP server start throwing error. 假设系统离开网络,运行JCO SAP服务器开始抛出错误。 If system comes back in network within 30-45 minutes then started JCO SAP server resume its functionality. 如果系统在30-45分钟内返回网络,则启动JCO SAP服务器恢复其功能。 But if system comes in network after long time say 1 or 2 hours then JCO SAP server doesn't resume its functionality. 但是如果系统在长时间说1或2小时后进入网络,则JCO SAP服务器不会恢复其功能。

Let us know is there any way to increase the retry count and retry interval? 让我们知道有没有办法增加重试次数和重试间隔? Or a way to configure infinite retries. 或者配置无限重试的方法。

Approach: We tried to restart JCO SAP server by calling stop method on server instance and then we called start method on same server instance, but still JCO SAP server is not receiving IDOCs sent from SAP server until we restart the JVM. 方法:我们尝试通过调用服务器实例上的stop方法重新启动JCO SAP服务器,然后在同一服务器实例上调用start方法,但是在我们重新启动JVM之前,JCO SAP服务器仍未接收从SAP服务器发送的IDOC。

Expectation: When system comes in network after long time then after restarting the JCO SAP server (calling stop() > release() > start() methods) should work properly. 期望:当系统长时间进入网络后再重新启动JCO SAP服务器(调用stop()> release()> start()方法)应该正常工作。

Does SAP Api have any binding with JVM or it cache something at JVM level? SAP Api是否与JVM绑定或在JVM级别缓存某些内容?

Please let us know what we need to do? 请告诉我们需要做什么? So that started JCO SAP server resumes its functionality even after it's out of network for long time. 因此,即使JCO SAP服务器长时间不在网络中,它也会恢复其功能。

Let me know in case you need more information. 如果您需要更多信息,请告诉我。

Running JCO SAP Version : SAPJCO3.jar (3.0.14) 运行JCO SAP版本:SAPJCO3.jar(3.0.14)

SAP JCO server error when it goes out of network 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

It should work fine when you do the following while stopping JCO server instance: 在停止JCO服务器实例时执行以下操作时,它应该可以正常工作:

  1. Delete reference to your server from ServerDataEventListener instance. ServerDataEventListener实例中删除对服务器的引用。 You can retrieve reference of ServerDataEventListener instance from your registered ServerDataProvider object. 您可以从已注册的ServerDataProvider对象中检索ServerDataEventListener实例的引用。
  2. Delete reference to your destination from DestinationDataEventListener instance. DestinationDataEventListener实例删除对DestinationDataEventListener引用。 You can retrieve reference of DestinationDataEventListener instance from your registered DestinationDataProvider object. 您可以从已注册的DestinationDataProvider对象中检索DestinationDataEventListener实例的引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM