cancel
Showing results for 
Search instead for 
Did you mean: 

How to solve this problem about JCO cnnection ?

Former Member
0 Kudos

Hi, All ,

I am trying to connect the R3 which lies in the same VPN as my machine . I get the error message as following .

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

Connect_PM GWHOST=10.16.215.51, GWSERV=sapgw01, ASHOST=10.16.215.51, SYSNR=01

LOCATION CPIC (TCP/IP) on local host

ERROR partner not reached (host 10.16.215.51, service 3301)

TIME Wed Mar 01 19:16:11 2006

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

Accepted Solutions (0)

Answers (2)

Answers (2)

kishorg
Advisor
Advisor
0 Kudos

Hi Guixin,

Are u using JCO in console application or ?.

have u copied the two DLL files which is available with sapjco.jar in the system32 directory .

just refer this forum.here we have discussed some issues ..

let me know

sapjco.jar , librfc32.dll and sapjcorfc.dll all of these files must be of the same version. u have to replace the DLL files already present in system32 with these files.

just refer this also.

http://searchsap.techtarget.com/general/0,295582,sid21_gci1096472,00.html

Regards

Kishor Gopinathan

Former Member
0 Kudos

Hi, Kishor Gopinathan :

I had copied the necessary file to the right path. and also,Before i got the message aboved ,I had get a successful connection with <b>another R3 server</b> using the same program .

Message was edited by: guixin chen

Message was edited by: guixin chen

kishorg
Advisor
Advisor
0 Kudos

Hi Guixin,

the following link contain some of the exceptions associated with JCO.

http://help.sap.com/saphelp_nw04/helpdata/en/f6/daea401675752ae10000000a155106/content.htm

from this what we can infer is that , usually this type of errors are because of the Back end connection parameter problems.

Guixin check these things in your connection parameter,

<b> Instance Number</b>

u told u could connect to other R/3 system using the same code. so check whether the Instance Number u have given there for connection is correct or not.

<b>Gateway service Details</b>

if u use gateway service details also as connection parameter, then just check, the gateway service u have given there is correct or not.

gateway service name can be ---

sapgw<Instance Number>.

eg sapgw00 -- means the instance number is 00.

check the instance number also here...

check the version of the R/3 system also , whether JCO support ur this version or not.

Regards

Kishor Gopinathan

Former Member
0 Kudos

Hi,

Were you able to connect directly to the SAP R/3 using SAP Logon?

Thanks and regards

RK

Former Member
0 Kudos

RK :

Yes , I can do .