on 10-01-2007 10:47 AM
Hi,
I'm trying to connect JCo to SAP and I'm getting following error :
Version of the JCO-library:
-
2.1.8 (2006-12-11)
Caught an exception:
com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
Connect_PM GWHOST=xxxxx, GWSERV=sapgw05, ASHOST=xxxxx, SYSNR=05
LOCATION SAP-Gateway on host xxxxx / sapgw05
ERROR partner not reached (host xxxxx, service sapgw05)
TIME Mon Oct 01 11:17:37 2007
RELEASE 640
COMPONENT NI (network interface)
VERSION 37
RC -10
MODULE nixxi.cpp
LINE 8707
DETAIL NiPConnect2
SYSTEM CALL SiPeekPendConn
ERRNO 10061
ERRNO TEXT WSAECONNREFUSED: Connection r
I post this error to administrator of SAP and he said that all should be ok (related to connection credentials). He was "worry" only in one point, I need to access this SAP system from one network address, but SAPGUI can connect successfully from the same computer so I hope this isn't problem.
The Code which generates this error is Example1.java from JCO zip archive.
Are you passing the FQDN for the GWHOST, instead try passing only the host name and see.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jindrich,
Check if you can login to SAPGui using the same logon information. If yes then please check your logon info. Also if you are using host name instead of ip address, make sure that the host ame is entered in hosts file of your machine.
Regards,
Smruti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Check if you can login to SAPGui using the same logon
Yes I can
> Also if you are using host name instead of ip
> address, make sure that the host ame is entered in
> hosts file of your machine.
I have tried both approaches, I have entered ip and dns name of PC. All crashes with same error. It seems that this sap installation is "corrupted" for this issue, because when I try JCO on other SAP implementation (different company) this error wouldn't appeat. However, on other system I get Timeout error but sap admin will try to solve it because it could be error on his side. I'm Not sap admin, I only need to access functions of our SAP developer from my code.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.