cancel
Showing results for 
Search instead for 
Did you mean: 

JCo

Former Member
0 Kudos

Hi,

I just start to work on JCo and when i tried to eastablish a connection, i recieved error report as below:

Start to connect

Caught an exception:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed

Connect_PM GWHOST=NSPAD421, GWSERV=sapgw10,

ASHOST=NSPAD421, SYSNR=10

LOCATION CPIC (TCP/IP) on local host

ERROR partner not reached (host 10.48.162.41, service 3310)

TIME Mon Aug 27 13:39:53 2007

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -10

MODULE nixxi_r.cpp

LINE 8634

DETAIL NiPConnect2

SYSTEM CALL SiPeekPendConn

ERRNO 10060

ERRNO TEXT WSAETIMEDOUT: Connection timed out

COUNTER 1

my client is set as followed:

client = JCO.createClient( "001", // SAP client

<id>, // userid

<password>, // password

"EN", // language

"NSPAD421", // host name

"10" ); // system number

Does anyone has any idea of this?

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Li,

May be its the problem with the gateway port.Ask your basis guys to open the port for the gateway sapgw10 .The port number for this gateway can be found in hosts file under etc folder.

Regards

Akshaya

Former Member
0 Kudos

Hi,

U need to give the MSGSERVERPort no in ServerSystemwindowssystem32drivershosts--services.

Add the following

MSGSERV tcp/3601.

and in the host file also add the following

192.10.100.10 EPhostname

It is not reaching to the R/3 system.

Thanks,

Lohi.

Message was edited by:

Lohitha M

Former Member
0 Kudos

I have config the files you mentioned already, however the server still can not reached by the JCo. Did i forget something still?

Former Member
0 Kudos

Maybe there is a problem with a firewall. Try to ping the server or to reach it via "telnet" on that mentioned port.

Former Member
0 Kudos

Hi, Thanks, there is no problem for me to ping the server but the jco still can not reach it.