cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent....Error while creating JCO connection

Former Member
0 Kudos

Hi experts,

We freshly installed EP 7.0 NW2004s SP09.

We have configured SLD.

Also we have added entry in portal services file for SAP message server. We have restarted portal server too.

I creatd a JCO connection for application data (with SAP logon ticket authentication) from Web Dynporo Content administrator for using it in ESS business package.

When I tested the connection, it is throwing the below given exception.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=A ASHOST=sapsbox SYSNR=10 GWHOST=sapsbox GWSERV=sapgw10 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR hostname 'sapsbox' unknown TIME Mon Apr 23 10:38:38 2007 RELEASE 700 COMPONENT NI (network interface) VERSION 38 RC -2 MODULE ninti.c LINE 361 DETAIL NiPGetHostByName2: hostname 'sapsbox' not found SYSTEM CALL gethostbyname_r ERRNO 11004 ERRNO TEXT WSANO_DATA: Valid name, no data record of requested type COUNTER 1

can any one help me out of this??

Thanks alot in advance

Shobin

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

U need to do the following thigns in your poral.

1) make entries in the <b>services file </b> in your server Dir. path -> c:\WINDOWS\system32\drivers\etc\services

sapmsDE1 3600/tcp # R/3 System message service port

Check your message port number with your R/3 Basis Admin.Default is

36[instance number]

2)And also in host file

R/3 IP Addr R/3 Server Host Name # SAP R/3 System

for ex:

192.168.40.71 PRODNET # PRODNET System Network IP

3) add the portal IP and host name in

\WINDOWS\system32\drivers\etc\hosts

192.29.10.0 Poratal host.

it might helps you.

thanks,

Lohi

Former Member
0 Kudos

Hi all,

Thanks alot for all your reply.

The problem got solved.

There was an entry in the host file. But it was FQDN of the sap server. And the JCO connection was trying with only host name (sapsbox). I guess that was the issue.

Thank you so much for your wonderful help. I have assigned points to all of you

Shobin

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

Congrats!!!!

hey mark this thread as solved by rewarding points "solved question", seems it is not reflecting the points rewarded

regards

Answers (2)

Answers (2)

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

you have to add the entry "sapsbox 36xx/tcp" (replacing xx with the system no of the system ) to your services file at /etc/services (windows: %WINDIR%/system32/drivers/etc).

after that restart the server (otherwise you'll receive another error, regarding caching problems)

regards

Former Member
0 Kudos

Hi Abhijeet,

Thanks alot for your reply.

I have a small doubt on this.

sapsbox is my R/3 server. It is not a service. Also, there is already another entry in the services file for the port 3610. So should i again add this entry??

Sorry if i am being so stupid..

Thanks alot

Shobin

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

yeah sapsbox is your r3 server, you need to make its entry in services file.

what is that other entry?

the other entry you are talking about might of your j2ee server, now what you need is r3 systems entry,

so what you add now is , for r3,

sapsbox 36xx/tcp (replace XX with r3 system no of r3 server)

and hey never be worried about being stupid, even we have gone through that and now also sometimes we act stupid...(i hope i am not preaching to u)

let me kno if you are still confused , also you can refer this thread,

regards

Message was edited by:

Abhijeet

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Sobin,

See this thread same problem solved:

Regards, Suresh KB