cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to connect to ECC system through stand alone JAVA program using JCO.

Former Member
0 Kudos

Hi All,

I want to connect to ECC system through standalone JAVA program using jco.while executing my java program it is saying that connection refused.

I am getting the error as shown below.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: CMALLC : rc=20 > Co

nnect from SAP gateway to RFC server failed

Connect_PM GWHOST=192.168.10.99, GWSERV=sapgw01, SYSNR=01

LOCATION SAP-Gateway on host igm501 / sapgw01

ERROR partner '192.168.10.99:sapgw01' not reached

TIME Mon Sep 1 15:00:37 2008

RELEASE 700

COMPONENT NI (network interface)

VERSION 38

RC -10

MODULE nixxi.cpp

LINE 2821

DETAIL NiPConnect2

SYSTEM CALL connect

ERRNO 239

ERRNO TEXT Connection refused

COUNTER 2

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)

at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(MiddlewareRFC.java:11

25)

at com.sap.mw.jco.JCO$Client.connect(JCO.java:3138)

at JConnector_frmDesk.<init>(JConnector_frmDesk.java:91)

at JConnector_frmDesk.main(JConnector_frmDesk.java:141)

I have already configured SAPDP01,SAPGW01 in my services file in windows\system32\drivers\etc\services.

What else i need to do to connect to ECC system through my JAVA program.Please help me in this regard.

Regards,

Ramana.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi !

Check this to verify that you are correctly using JCO:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffb...

Try to give in ashost="/H/saprouter/H/sap".

Regards,

Matias.