cancel
Showing results for 
Search instead for 
Did you mean: 

stack trace

Former Member
0 Kudos

hallo guys,

when trying to connect to sap system i am getting the following error...

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

Connect_PM GWHOST=XXX, GWSERV=sapgw00, ASHOST=XXX, SYSNR=00

LOCATION CPIC (TCP/IP) on local host

ERROR partner not reached (host xx.xx.xx.xx, service 3300)

TIME Sat Aug 20 12:11:57 2005

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -10

MODULE nixxi_r.cpp

LINE 8605

DETAIL NiPConnect2

SYSTEM CALL SiPeekPendConn

ERRNO 10061

ERRNO TEXT WSAECONNREFUSED: Connection r

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

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

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

at testpack.Connect1.<init>(Connect1.java:15)

at testpack.Connect1.main(Connect1.java:25)

i have added sapjco to my calss path and also used the dlls....

wht could be the reason for this...

thx..

regards,

aj.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

open \windows\system32\drivers\ect\services in notepad and add <b>sapgw00 3300/tcp</b> in your system from where you are trying.

regards

Anand.M

Former Member
0 Kudos

Helloo Ajay ,

u better try to use sapjco.jar and the associated dll's which are specific. i had this problem , but through my experience , i could realize that for a particular sapjco.jar specific dll's are present . if u get this entire thing as a pack (sapjco.jar and associated dll's ) i think it will work . really i have faced the same problem and i could resolve this problem in that way..

that dll's are installed along with the sap GUI.

Former Member
0 Kudos

hi kishore,

thx for ur response man,...

i included sapjco.jar in my path,librfc32.dll in system 32 folder and also sapjcorfc.dll in my path...

still i am getting error.... are there anyother dlls which i have to include...in my project...can u pls provide all the dlls which u have used..

thx kishor,

regrads,

aj.

Former Member
0 Kudos

You do not need to have the librfc32.dll in the system32 folder.

Here is what you need.

sapjco.jar

librfc32.dll

sapjcorfc.dll

+ depending on the version the 4 .net dlls needed (see sapnote with jco version 2.1.5)

ALL in the same directory (\sap\jco)

Have that directory on your path

Have sapjco.jar on your classpath

This should do it.

Former Member
0 Kudos

hi brandelik,

u told me to include 4 .net dlls...can u pls specify there names....

also is there any compatability diference responsible for this error...

i have librfc32.dll(version 6403.3.72.4690) and sapjcorfc.dll version(6400.72.11.27237)....i have done evrything u told me but there is no proper output still i am getting exception....

can u pls help me out...

regards,

aj.