cancel
Showing results for 
Search instead for 
Did you mean: 

JCO$Exception

Former Member
0 Kudos

Hai,

When iam trying to do jco implementation i got the following error even i provide credetials as correct.

-


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

Connect_PM GWHOST=gbdci550.in.ibm.com:50300, GWSERV=sapgw11, ASHOST=gbdci550.in.ibm.com:50300, SYSNR=11

LOCATION CPIC (TCP/IP) on local host

ERROR hostname 'gbdci550.in.ibm.com:50300' unknown

TIME Thu Oct 05 13:24:53 2006

RELEASE 620

COMPONENT NI (network interface)

VERSION 36

RC -2

MODULE ninti.c

LINE 385

DETAIL NiPHostToAddr

SYSTEM CALL gethostbyname

COUNTER 1

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

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

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

at com.sap.nani.TutorialConnect1.<init>(TutorialConnect1.java:30)

at com.sap.nani.TutorialConnect1.main(TutorialConnect1.java:77)

-


please any one guide me what settings do i need to make for running my application correct.

Accepted Solutions (0)

Answers (1)

Answers (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

>>>>ERROR hostname 'gbdci550.in.ibm.com:50300' unknown

it seems that not credentials are your problem ?

Regards,

michal

Former Member
0 Kudos

CAN any one reply what to do for this type of error?

achim_hauck2
Active Contributor
0 Kudos

yes

as the previous post already said: your server-name (ASHOST) value is wrong.

first: don't use the port here (:50300). You don't connect to the java-stack with jco but to the abap stack, here, either the dispatcher- (32xx) or the messageserver port (36xx) is used.

second: check, if you can ping the full qulified domain (gbdci550.in.ibm.com).

then, the connection should work.

kr, achim

Shabarish_Nair
Active Contributor
0 Kudos

<i>first: don't use the port here (:50300)

second: check, if you can ping the full qulified domain (gbdci550.in.ibm.com).</i>

>>>

if possible try the IP instead of the host name.