cancel
Showing results for 
Search instead for 
Did you mean: 

JCo connector error

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Are you passing the FQDN for the GWHOST, instead try passing only the host name and see.

Former Member
0 Kudos

> Are you passing the FQDN for the GWHOST, instead try

> passing only the host name and see.

That wouldn't work because SAP is in other domain...

Former Member
0 Kudos

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

Former Member
0 Kudos

> 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.