cancel
Showing results for 
Search instead for 
Did you mean: 

SAP JCo (hostname unknown)

Former Member
0 Kudos

Hello,

Currently we are working on a project. we want to connect to the SAP server with JCO. We have all the information required. but still we get this error when we try to connect:

(102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM  GWHOST=a27z, GWSERV=sapgw27, SYSNR=27

LOCATION    CPIC (TCP/IP) on local host

ERROR       hostname 'a27z' unknown

TIME        Fri Dec 21 17:11:33 2012

RELEASE     720

COMPONENT   NI (network interface)

VERSION     40

RC          -2

MODULE      ninti.c

LINE        895

DETAIL      NiPGetHostByName: 'a27z' not found

SYSTEM CALL getaddrinfo

COUNTER     1

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

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

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

          at TutorialConnect1.<init>(TutorialConnect1.java:15)

          at TutorialConnect1.main(TutorialConnect1.java:25)

I would appreciate if some one can help in this situation.

Thnx in advance.

Kind Regards!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks every one for the awnsers... but it is strange i used the IP address instead. and worked....:O

gururaj_srinivasa
Participant
0 Kudos

Hi Muhammad,

From the error it looks like it is a gateway issue,

Can you check if gateway port is open, ask your infrastructor / OS team to help you to find out.

You can access the SAP Gateway on every application server under the TCP port sapgw<nr> , where

<nr> is the instance number of the application instance. 

Default values for instance number 00:

SAP Gateway port:

sapgw00 3300/TCP

if the port is open it should work.

Guru

RichBlumberg
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thanks Guru!

Muhammad,

Hi! In addition you may want to check the following (where you can perform a search and cross reference with other experts as well as post your any updated questions):

Best regards...Richard