cancel
Showing results for 
Search instead for 
Did you mean: 

JCo set up problem using Sneak Preview version

Former Member
0 Kudos

Hi,

I'm using both Java (Netweaver '04) and ABAP (Netweaver '04s) sneak preview version. I've trying to install both in the same PC and separate PC. In both cases, I have the same problem.

Initially, when trying to test the JCo for Metadata (The application using the direct connection to the apps server is fine), I got an error stating that PUBLIC logon group can't be found. After looking at the posting in the forum, I've been able to set up PUBLIC log on group and unfortunately I got different error message:

[code]

com.sap.mw.jco.JCO$Exception: (102)

RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM

TYPE=B

MSHOST=nathalia2

GROUP=PUBLIC

R3NAME=NSP

MSSERV=sapmsNSP

PCS=1

LOCATION CPIC (TCP/IP) on local host with Unicode

ERROR partner not reached (host nathalia2, service 3700)

TIME Mon Feb 06 00:03:08 2006

RELEASE 640 COMPONENT

NI (network interface) VERSION 37

RC -10

MODULE nixxi_r.cpp LINE 8684

DETAIL NiPConnect2

SYSTEM CALL SiPeekPendConn

ERRNO 10061

ERRNO TEXT WSAECONNREFUSED: Connection refused

COUNTER 1 [/code]

The thing tht I couldnot understand is why it is looking for service 3700 (partner not reached (host nathalia2, service 3700))?

Also the other wierd thing is.. if I click add & logon from SAPGui to add the item, I was able to login to SAP system. However if I logon for the second time, I got 'connection to partner broken'

Any clue on how to make this things work?

Thanks,

Iwan

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Iwan,

The JCo is trying to connect to the SAP system using the

Gateway service. Just check the port number which is assigned to the service sapgw<xx> in the services file

in \WINDOWS\system32\drivers\etc folder, where xx is your

SAP Instance number.

Regards

Srikishan

Former Member
0 Kudos

Hi Srikishan,

Thanks for the pointer. In my services file, it has the following entry for the SAP gateway:

sapgw00 3300/tcp # SAP System Gateway Port

Which makes me wonder, is it possible to set up the JAVA stack to look at 3300 instead of 3700 or to make the SAP gateway to listed 3700 or both 3300 & 3700.

Do you have any suggestion on how to make the ports in synch.?

Thanks,

Iwan

Former Member
0 Kudos

Hi Iwan,

If you need to change the SAP gateway to port 3700, then

the following link can help you. But I am not sure if you

could have the SAP gateway on both 3700 and 3300 ports.

You can also change the port in the profiles, but that

would need a system restart.

http://help.sap.com/saphelp_erp2005/helpdata/en/7c/e75c679

8dc40269fd7213ff01c9aa8/frameset.htm -> changing gateway parameters

Regards

Srikishan

Former Member
0 Kudos

Just want to update. The problem is solve by assigning the 'Favourite Server' within SMLG with service 3200. Works fine after that.