hi, i have a problem with jco, when i use jco connect to external sap, i got following exception
----------------------------------------------------------------------------------------------------------
com.sap.conn.jco.JCoException: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
Connection parameters: TYPE=A DEST=destination ASHOST=113.108.177.181 SYSNR=00 PCS=1
LOCATION SAP-Gateway on host LRP-ERP / sapgw00
ERROR timeout during allocate
TIME Sat Jul 16 19:42:11 2016
RELEASE 720
COMPONENT SAP-Gateway
VERSION 2
RC 242
MODULE gwr3cpic.c
LINE 1911
DETAIL no connect of TP sapdp00 from host 113.108.177.181 after 20
sec
COUNTER 3
at com.sap.conn.jco.rt.MiddlewareJavaRfc.generateJCoException(MiddlewareJavaRfc.java:604)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1270)
at com.sap.conn.jco.rt.ClientConnection.connect(ClientConnection.java:661)
at com.sap.conn.jco.rt.PoolingFactory.init(PoolingFactory.java:103)
at com.sap.conn.jco.rt.ConnectionManager.createFactory(ConnectionManager.java:171)
at com.sap.conn.jco.rt.DefaultConnectionManager.createFactory(DefaultConnectionManager.java:44)
at com.sap.conn.jco.rt.ConnectionManager.getFactory(ConnectionManager.java:160)
at com.sap.conn.jco.rt.RfcDestination.initialize(RfcDestination.java:766)
at com.sap.conn.jco.rt.RfcDestination.ping(RfcDestination.java:976)
at jco.JCOWithoutFile.main(JCOWithoutFile.java:84)
Caused by:
RfcException: [null]
message: Connect from SAP gateway to RFC server failed
Connection parameters: TYPE=A DEST=destination ASHOST=113.108.177.181 SYSNR=00 PCS=1
LOCATION SAP-Gateway on host LRP-ERP / sapgw00
ERROR timeout during allocate
TIME Sat Jul 16 19:42:11 2016
RELEASE 720
COMPONENT SAP-Gateway
VERSION 2
RC 242
MODULE gwr3cpic.c
LINE 1911
DETAIL no connect of TP sapdp00 from host 113.108.177.181 after 20
sec
COUNTER 3
Return code: RFC_FAILURE(1)
error group: 102
key: RFC_ERROR_COMMUNICATION
at com.sap.conn.rfc.engine.RfcIoControl.error_end(RfcIoControl.java:255)
at com.sap.conn.rfc.engine.RfcIoControl.ab_rfcopen(RfcIoControl.java:94)
at com.sap.conn.rfc.api.RfcApi.RfcOpen(RfcApi.java:83)
at com.sap.conn.jco.rt.MiddlewareJavaRfc$JavaRfcClient.connect(MiddlewareJavaRfc.java:1263)
... 8 more
----------------------------------------------------------------------------------------------------------
the JCO_ASHOST i use here is an external ip which i can logon by SAP GUI, is there any thing wrong with ip or others? thanks for any help