cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Create error . Partner cannot be reached

Former Member
0 Kudos

Hi All,

I was trying to create a JCO DEstination to back end ABAP. I created a RFC Destination in SAP Jco Provider (Java ) and RFC Destionation in ABAP. The connection is successful. The SLD Bridge is maintained in Rz70 tcode.

When i try to create a JCO Destination, it throws me this error.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=minisap GROUP=PUBLIC R3NAME=NSP MSSERV=sapmsNSP PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner 'minisap:100' not reached TIME Tue Oct 26 17:16:13 2010 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -10 MODULE nixxi.cpp LINE 3255 DETAIL NiPConnect2: 192.168.56.101:100 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 6

partner 'minisap:100'.

How is this 100 coming. Also is there any mistake in the technical system abap which i created? Please do help me to figure out the issue.

Thanks and Regards,

Divya

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Divya,

3600 is your TCP/ SAP System Message Server Port,

As you said that your not able to find the port, can you please telnet from the server--->

login to the server in which your facing issue-->open CMD promt, type this command

telnet hostname 3600

example telnet s300n001 3600.

what is the output >? after this command.

Please even check with T-code SMMS--how your message server looks like?

check with your localdomain suffix ( ask your network team) and check with your computer name ?

Regards

JUDE

Edited by: jude melvin on Oct 29, 2010 10:49 AM

Former Member
0 Kudos

Hi Jude,

ping minisap is working fine. But command telnet minisap and telnet minisap 3600 is not working.

error on telnet minisap 3600

Could not open connection to the host on port 3600. connect failed

error on telnet minisap

Could not open connection to the host on port 23. connect failed

Divya

tomas-krojzl
Active Contributor
0 Kudos

Hello,

please paste here content of file dev_ms from ABAP server minisap - should be in location /usr/sap/<sid>/<instance>/work

(there you will find if MS is running ok and what port is used)

Best regards.

tomas-krojzl
Active Contributor
0 Kudos

Hello,

also confirm that some firewall is not interfering.

Best regards.

Former Member
0 Kudos

Hi Tomas,

I have diabled Firewall and it is not running.

Dev_ms file

-


trc file: "dev_ms", trc level: 1, release: "701"

-


[Thr 1276] Fri Oct 29 03:10:07 2010

[Thr 1276] MsSSetTrcLog: trc logging active, max size = 20971520 bytes

systemid 560 (PC with Windows NT)

relno 7010

patchlevel 0

patchno 11

intno 20020600

make: multithreaded, Unicode, optimized

pid 2128

[Thr 1276] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 2128) [msxxserv.c 1853]

[Thr 1276] load acl file = C:\usr\sap\NSP\SYS\global\ms_acl_info.DAT

[Thr 1276] MsGetOwnIpAddr: my host addresses are :

[Thr 1276] 1 : [192.168.56.101] minisap (HOSTNAME)

[Thr 1276] 2 : [127.0.0.1] localhost (LOCALHOST)

[Thr 1276] MsHttpInit: full qualified hostname = minisap

[Thr 1276] HTTP logging is switch off

[Thr 1276] set HTTP state to LISTEN

[Thr 1276] ms/icf_info_server : deleted

[Thr 1276] *** I listen to internal port 3900 (3900) ***

[Thr 1276] *** HTTP port 8100 state LISTEN ***

[Thr 1276] CUSTOMER KEY: >T0301349444<

[Thr 1276] build version=701.2008.03.06

Regards,

Divya

Former Member
0 Kudos

Dear Divya,

What is your FQDN, can you login to the server rigth click on my computers --> properties under computer name ?

i can see that in the log-file it says minisap

and i dont see any entry which says below mentione entries

      • I listen to port sapmsSID (3600) ***)

Can you check on your host file have you maintained wright entires and as per the FQDN.

Regards

JUDE.

Former Member
0 Kudos

Hi jude,

after changing to FQDN, it get the same port no

-


trc file: "dev_ms", trc level: 1, release: "701"

-


[Thr 3832] Fri Oct 29 03:57:51 2010

[Thr 3832] MsSSetTrcLog: trc logging active, max size = 20971520 bytes

systemid 560 (PC with Windows NT)

relno 7010

patchlevel 0

patchno 11

intno 20020600

make: multithreaded, Unicode, optimized

pid 680

[Thr 3832] ***LOG Q01=> MsSInit, MSStart (Msg Server 1 680) [msxxserv.c 1853]

[Thr 3832] load acl file = C:\usr\sap\NSP\SYS\global\ms_acl_info.DAT

[Thr 3832] Fri Oct 29 03:57:52 2010

[Thr 3832] MsGetOwnIpAddr: my host addresses are :

[Thr 3832] 1 : [192.168.56.101] minisap.mycomputer.com (HOSTNAME)

[Thr 3832] 2 : [127.0.0.1] localhost (LOCALHOST)

[Thr 3832] MsHttpInit: full qualified hostname = minisap.mycomputer.com

[Thr 3832] HTTP logging is switch off

[Thr 3832] set HTTP state to LISTEN

[Thr 3832] MsHttpOwnDomain: own domain[1] = mycomputer.com

[Thr 3832] ms/icf_info_server : deleted

[Thr 3832] *** I listen to internal port 3900 (3900) ***

[Thr 3832] *** HTTP port 8100 state LISTEN ***

[Thr 3832] CUSTOMER KEY: >T0301349444<

[Thr 3832] build version=701.2008.03.06

[Thr 3832] Fri Oct 29 04:00:28 2010

[Thr 3832] MsHttpReadUrl2: H-1 url = /sap/public/icf_info/urlprefix (403 Forbidden)

[Thr 3832] MsHttpReadUrl2: H-1 url = /sap/public/icf_info/logon_groups (403 Forbidden)

Regards,

Divya

tomas-krojzl
Active Contributor
0 Kudos

Hello,

this is thr problem:

Thr 3832 *** I listen to internal port 3900 (3900) ***

Your message server is running on port 3900 - this is not standard SAP port...

You got two choices:

1.) either in services file on Java you need put port 3900 insted of 3600

2.) you will use default port for message server

I suggest second option but it might impact all other applications that are already connected using port 3900.

Can you check on BOTH servers - both ABAP and Java in /etc/services that for sapmsNSP you have same port?

Best regards.

tomas-krojzl
Active Contributor
0 Kudos

Hello,

as I wrote above - it looks that you use port 3900:

Thr 3832 *** I listen to internal port 3900 (3900) ***

This is not standard port.

Can you please go on BOTH machines into the /etc/services and write down ALL records having sapmsNSP service (from both machines same service).

Also telnet on port should be working - so try on BOTH machines:

telnet minisap 3900

Then on ABAP machine try:

telnet localhost 3900

I believe you got messed ports in services because MS is running on port 3900 while Java is attemting to connect to 3600.

As you wrote before:

But the enrtry is maintained in the service file

sapmsNSP 3600/tcp.

Best regards.

Former Member
0 Kudos

Hi Tomas,

In both machines, only 1 record is maintained n service file for sapmsNSP.

sapmsNSP 3600/tcp

Also telnet is not working in both the machines. Is there some configurations required for this to work.

What else is the solution. Please help in resolving this issue tomas.

Thanks and Regards,

Divya

tomas-krojzl
Active Contributor
0 Kudos

Hello,

oki on both machines you have:

sapmsNSP 3600/tcp

On minisap machine - was there before port 3900 for sapmsNSP?

Did you change it from 3900 to 3600?

Normally SAP message server should start on port 3600 but your's is started on 3900?

Can you go to transaction RZ11 and display parameter rdisp/msserv - does is showing value sapmsNSP?

Can you go to transaction SMMS then go to menu GoTo / Parameters / Display and check value on row:

server service = ???

server port = ???

I would say you will find there 3900 which is wrong.

In case you changed the port 3900 to 3600 manually - restart of message server is required - did you do that?

Best regards.

Former Member
0 Kudos

Hi Tomas,

No before there was no entry for port 3900 or 3600. I manually entered the entry

sapmsNSP 3600/tcp.

After that i have restarted the abap server several times.

In RZ11 and display parameter rdisp/msserv - it does not show any value sapmsNSP. i cannot see any parameter ot value like sapmsNSP....

Can you go to transaction SMMS then go to menu GoTo / Parameters / Display and check value on row:

server service = 3900

server port = 3900

As you said , 3900 is displayed.

My sso with logon ticket is working fine. What is the problem with this JCO. Cant this be rectified tomas. Please do help.

What else should i do?

Thanks and Regards,

Divya

Edited by: Divya V on Oct 30, 2010 11:39 AM

tomas-krojzl
Active Contributor
0 Kudos

Hello,

try to check if parameter rdisp/msserv is anywhere configured in profiles of ABAP (either default or instance)...

if yes - try to remove all occurences and keep it without this parameter...

if not - try to add value: rdisp/msserv = sapmsNSP

after saving restart SAP - we much get in SMMS following values:

server service = sapmsNSP

server port = 3600

Best regards.

Former Member
0 Kudos

Hi Tomas,

That worked. Now in Tcode - RZ11, rdip/msserv parameter is showing value as sapmsNSP. Also the msserv service port is also showing 3600. In dev_ms it is showing.

"I listen to port 3600."

Initially i get this error when i test the JCO.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=minisap GROUP=PUBLIC R3NAME=NSP MSSERV=sapmsNSP PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR Group PUBLIC not found TIME Mon Nov 01 03:25:56 2010 RELEASE 720 COMPONENT LG VERSION 5 RC -6 MODULE lgxx.c LINE 4575 DETAIL LgIGroupX COUNTER 3

The group PUBLIC is added. when i select "ext-rfc enabled". this error goes.

Then when trying to test the JCO, it is throwing an error.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM TYPE=B MSHOST=minisap GROUP=PUBLIC R3NAME=NSP MSSERV=sapmsNSP PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner 'minisap:100' not reached TIME Mon Nov 01 02:02:54 2010 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -10 MODULE nixxi.cpp LINE 3255 DETAIL NiPConnect2: 192.168.56.101:100 SYSTEM CALL connect ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 2

From where is this 100 coming. I have no idea.

Please do help.

Thanks and Regards,

Divya

Edited by: Divya V on Oct 31, 2010 11:20 PM

tomas-krojzl
Active Contributor
0 Kudos

Hello,

oki - we are one step forwards - now you need to add following into your /etc/services on Java server:

sapgw00 3300/tcp

Also make sure that there is no other "3300/tcp" in your /etc/services

Then he will know the port that should be used for connection.

Best regards.

Former Member
0 Kudos

Hi Tomas,

Sorry for the late reply. didnt know.

There are no other entries in the service file for port 3300. except

sapgw00 3300/tcp.

But how that 100 is coming in place?

Regards,

Divya

p330068
Active Contributor
0 Kudos

Hi Divya,

Please refer to the blog [AS ABAP Sneak Preview Lessons: Logon Groups|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/3117] [original link is broken] [original link is broken] [original link is broken];. It will helps you to resolved JCO connection issue with minisap system.

/thread/349727 [original link is broken]

Hope it will helps

Regards

Arun Jaiswal

Former Member
0 Kudos

Hi,

I executed the Program = rsrzllg0_actual with FRCE_SAV unchecked. I did not getting any message like "Program executed successfully".

But when i tested the JCO i am getting an error

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts

For RFC Destination creation in jco rfc provider, i used the user SAPJSF. That user is not locked. i checked at the abap side and also tried changing it with a new password.

For JCO Destination creation i am using the user - BCUSER. With that user i am able to easily login through SAP GUI.

There is no chance of user getting locked or password being wrong as i am using the same password for both the user.

What should be donee for this.

Regards,

Divya

p330068
Active Contributor
0 Kudos

Hi Divya,

Once you execute the Program = rsrzllg0_actual with FRCE_SAV unchecked, you will not get any message. it is Ok.

Please check the thread

Try with other userid in JCO destination for the testing purpose and check it.

Regards

Arun Jaiswal

Former Member
0 Kudos

Hello,

Try with J2ee_admin user ID, make sure this ID is not locked ..

Regards

JUDE

Former Member
0 Kudos

Hi,

I dont have an id called J2EE_Admin id inside sap r3. Have User id - SAPJSP with roles assigned.

SAP_BC_JSF_COMMUNICATION AND SAP_BC_JSF_COMMUNICATION_RO

assigned. This user id i used while creating the JCO RFC Destination inside JCO RFC Provider in sao nwa

While creating and testing the user inside content administrator, i used the user - BCUSER.

Also SAPJSF and BCUser is not locked.

Are these steps wrong. What user else i need to create for creating JCO. Also what permissions need to be assigned to that user?

Regards,

Divya

p330068
Active Contributor
0 Kudos

Hi Divya,

Try to create other dialog user with some admin roles and SAP_BC_JSF_COMMUNICATION AND SAP_BC_JSF_COMMUNICATION_RO roles and update the JCO destination with new user and try to test it.

Hope it will helps with new users if there is some or other problem with user is which you are using.

Regards

Arun Jaiswal

Former Member
0 Kudos

Hello Divya,

Please go thru this note

Note 959242 - Incorrect user type for UME communication user

Regards

JUDE

tomas-krojzl
Active Contributor
0 Kudos

Hello,

try to run lgtst -H <Hostname message server> -S <MS port>

http://help.sap.com/saphelp_nw70ehp1/Helpdata/EN/47/c2e77fb8fd3020e10000000a42189d/content.htm

for your case command should be:

lgtst -H minisap -S sapmsNSP

type here the result - you should have there what exactly is message server sending...

Best regards.

Former Member
0 Kudos

Hi,

lgtst -H minisap -S sapmsNSP

'lgtst' is not recognized as an internal or external command, operable program or batch file.

niping -H minisap -S sapmsNSP

Could not open the ICU Common Library.

The following files must be in the path described by the environment variables "PATH" :

icuuc30.dll, icudt30.dll, icuin30.dll {nlsui0.c 1609} pid =200

Regards,

Divya

Edited by: Divya V on Nov 1, 2010 2:53 PM

Former Member
0 Kudos

Hi Tomas,

Is there any other way to resolve this issue?

Please help.

Thanks,

Divya

Former Member
0 Kudos

Hello,

In the same forum i have mentioned you to go thru the Environment settings on windows server, your system configuration is incorrect, it is pointing to different errors, and your system parameteres seems to be not Okay.

Regards

JUDE.

Former Member
0 Kudos

Hi Jude,

Can you please tell me where the error is? Which parameters and window settings have to be changed?

Environment settings on windows server, your system configuration is incorrect?

The specified files i have added to the path variable inside abap system. Also as you said i created another dialog user and added the required result. But still the same error.

Divya

p330068
Active Contributor
0 Kudos

Hi Divya

Could you please re-check all the settings and steps and let us know the corrent error message.

Also have you updated the host and service file in the server system.

Regards

Arun Jaiswal

Former Member
0 Kudos

Hello,

Could you make necessary settings according to this note,

Note 556232 - Environment settings for R/3/Oracle on Windows.

And please paste log files of dev_w0, dev_icm

Regards

JUDE.

Former Member
0 Kudos

Divya,

As you have said that your ABAP & JAVA systems are in different domains & also a telnet to the message server port doesn't work, it implies that this port is somehow blocked in the 2 subnets.

When you configured SSO which connection type did you use - using msg server or direct connection the application server on ABAP side?

Can you also run a telnet to the abap host on the dispatcher port & g/w port (32<instance #> & 33<instance #> respectively) & see if it works?

- Regards, Dibya

Former Member
0 Kudos

Hi jude,

I am working on a Trial Version and dont have access to Service Market Place Notes. Hence couldnt do that step which you mentioned.

Note 556232 - Environment settings for R/3/Oracle on Windows.

Shall i paste the log files?

Divya

Edited by: Divya V on Nov 2, 2010 12:57 PM

Former Member
0 Kudos

Hi Dibya,

SSO configuration , is done using message server.

In abap system - command prompt - i gave

ping minisap - it is working.

telnet minisap - it is not working.

Saying - Connecting to minisap. Could not open connection to the host on port 23. Connect Failed.

Regards,

Divya

Former Member
0 Kudos

Hello,

Make sure that the following variables are set in the environment

COMSPEC=<path_to_cmd.exe>

dbms_type=ora

PATH=<oracle_home>\bin;... (<oracle_home>\bin in first position)

dbs_ora_tnsname=<sid>

dbs_ora_schema=SAPR3 or dbs_ora_schema=SAP<sid> (depending on which user the R/3 tables belong to)

NLS_LANG=AMERICAN_AMERICA.<characterset> (see Note 381674)

ORACLE_HOME=<oracle_home> (optional)

SAPDATA_HOME=<drive>:\oracle\<sid>

TNS_ADMIN=<pfad_zu_tns_files> (only required for R/3 below 3.1I or Oracle 10g and Instant Client)

ORACLE_SID=<sid> (normal Oracle installation) or unique instance name, for example <sid>001 (RAC installation)

USER=<sid>adm

Start

-> Settings

-> Control Panel

-> System

-> Advanced

-> Environment Settings

Regards

JUDE

Former Member
0 Kudos

Hi Jude,

In dev_icm, getting these errors and warnings

[Thr 2568] *** ERROR => CCMS: unable to connect to montoring segment of application server! [alxxappl.c 982]

[Thr 2568] *** ERROR => IcmAlInit: AlInit_R3Kernel_AS failed (rc=249) [icxxalrt.c 211]

[Thr 2568] *** ERROR => Alerting error 244: MoniSegmentSize too small: 0 bytes. [icxxalrt.c 214]

[Thr 2664] *** WARNING => IcmNetCheck: NiAddrToHost(10.0.0.1) took 5 seconds [icxxman.c 4590]

[Thr 2664] *** WARNING => IcmNetCheck: 1 possible network problems detected - please check the network/DNS settings [icxxman.c 4646]

[Thr 2624] *** WARNING => IcmCallAllSchedules: Schedule func 0 already running - avoid recursion [icxxsched.c 430]

[Thr 2548] *** WARNING => IcmJ2EEScheduleFunc: Cannot access "/sap/public/icman" (rc=500)- please check node in TA sicf [icxxman.c 2228]

[Thr 2548] *** WARNING => IcmCallAllSchedules: Schedule func 0 already running - avoid recursion [icxxsched.c 430]

[Thr 2620] *** WARNING => IcmJ2EEScheduleFunc: Cannot access "/sap/public/icman" (rc=500)- please check node in TA sicf [icxxman.c 2228]

[Thr 1796] *** WARNING => IcmCallAllSchedules: Schedule func 0 already running - avoid recursion [icxxsched.c 430]

[Thr 2620] *** WARNING => IcmJ2EEScheduleFunc: Cannot access "/sap/public/icman" (rc=500)- please check node in TA sicf [icxxman.c 2228]

In dev_w0, getting errors and warnings

      • ERROR => ztta/cua_area is 180000. [sapinit.c 975]

      • ERROR => ztta/cua_area adjusted to 500000. [sapinit.c 979]

RFC Destination> destination minisap_NSP_00 host minisap system NSP systnr 0 (minisap_NSP_00)

A RFC Options> H=minisap,S=00,d=2,

A RFC FRFC> fallback activ but this is not a central instance.

A RFC rfc/signon_error_log = -1

A RFC rfc/dump_connection_info = 0

A RFC rfc/dump_client_info = 0

A RFC rfc/cp_convert/ignore_error = 1

A RFC rfc/cp_convert/conversion_char = 23

A RFC rfc/wan_compress/threshold = 251

A RFC rfc/recorder_pcs not set, use defaule value: 2

A RFC rfc/delta_trc_level not set, use default value: 0

A RFC rfc/no_uuid_check not set, use default value: 0

A RFC rfc/bc_ignore_thcmaccp_retcode not set, use default value: 0

A RFC Method> initialize RemObjDriver for ABAP Objects

M ThrCreateShObjects allocated 16652 bytes at 066B0040

Configuring Environment Variables

COMSPEC = C:\Windows\System32\cmd.exe

dbms_type=ora

PATH=c:\sapdb\programs\bin

dbs_ora_tnsname=NSP

dbs_ora_schema=SAPNSP

NLS_LANG=EN

ORACLE_HOME=NSP

SAPDATA_HOME=c:\sapdb\NSP

TNS_ADMIN=

ORACLE_SID=NSP

USER=NSPadm

But still the same error.

com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts

Rgrds,

Divya

Edited by: Divya V on Nov 2, 2010 2:51 PM

Former Member
0 Kudos

Hi Jude,

As said, i have set the environment variables. But still the same result. Also i have pasted the error logs.

Please do check and help.

Regards,

Divya

Former Member
0 Kudos

Hi Jude,

when i ping the destination, it is working fine. Testing fails.

Any help.

Regards,

Divya

Former Member
0 Kudos

Hello,

Please set this parameter. and restart your server.

rfc/use_gwstart = 1

Regards

JUDE

Answers (7)

Answers (7)

Former Member
0 Kudos

Finally JCO Creation was sucessful.

Great Help!!!Thanks to Tomas, Jude and Arun.

Problem Got Solved. Closing thread.

Mistakes

1. RFC Destination was not created and was not successful both at ABAP and Java Side

2. Message Server was not pointing to the correct port 3600.

3. While Creating JCO Destination, as many blogs specified client as 000, i too gave the default client of Java Server. Instead had to give ABAP Client.

Thanks a Lot.

Divya

Edited by: Divya V on Nov 8, 2010 1:11 PM

Former Member
0 Kudos

Dear Divya,

Please locate to the usr\sap\sid\instance\exe....execute this command

niping -s -I t=0

niping -c -H <R/3 hostname> -L 3600 -D 1000,

Please paste the out put.

Please go thru this link http://www.soo1.net/DNL/MBSInstall.htm

Note 556232 - Environment settings for R/3/Oracle on Windows

Regards

JUDE.

Former Member
0 Kudos

Hello,

As per the previous comments.....

To check on which port your message server is running, please not go to task manager on the server click on processes and go to view-->select columns..

now click on PID processes identifier...

now your PID will be displayed here lookin for the entries msg_server_exe and check for the port number.

Regards

JUDE

Former Member
0 Kudos

Hi,

Thanks Tomas and Jude for your sincere help.

The PID is 680.

msg_server.exe 680 sapmsNSP

Also

niping -s -I t=0 - Ready for connect from client

niping -c -H <R/3 minisap -L 3600 -D 1000 -

Error :- partner '192.168.56.101:3298' not reached

Component : NI (Network Interface)

Errono - 10061

ErrNo Text - WSAECONNREFUSED : connection refused.

Counter 1

I tried with niping -c -H <R/3 minisap -L 3900 -D 1000 -

niping -c -H <R/3 minisap -L 680 -D 1000 -

For everthing the same result.

Is there no other way i can resolve this problem. Please do help in this.

Regards,

Divya

Former Member
0 Kudos

Dear Divya,

Please find the link to Monitor Opened TCP/IP network ports / connections !

http://www.nirsoft.net/utils/cports.html

Just download the software are try to run and check with the wright ports are used .

Regards

JUDE

Former Member
0 Kudos

Hi,

I checked with that software. As the message server port is 3600, i was unable to find the port inside while running the software.

But the enrtry is maintained in the service file

sapmsNSP 3600/tcp.

Also "ping minisap" is working from both source and target system. In SAP MMC, the Message Server status is green. (Running)

What else should be done. Why is that the message server port 3600 not found inside while running the software. Is the message server port no - 3600 correct. NSP instance number is 00.

Regards,

Divya

Former Member
0 Kudos

Hello,

I mean to say SM59 system number under this location.

Navigate to visual administrator--under Jco RFC provider, I assume that you have created RFC under the name LCRSAPRFC_UNICODE and SAPSLDAPI_UNICODE on the right column under BUNDLES you can find the system details

Specific application server details

There you please check with you ABAP RFC connection details

Application server host: - host name

System number: - example 00

Client: - under which client you have create the RFC connection

Language: - EN

USER: - SAPJSF (check in the client where you have created RFC connection and the role SAP_BC_JSF_COMMUNICATION_RO should be assigned to this user)

Password: - ****

Former Member
0 Kudos

Hi Jude,

SAPJSF user was not created. I created a user SAPJSF and added the role. Used SAPJSF used while i created the RFC Destionation in SAP NWA. Those RFC destinations are working fine in SAP NWA.

But still getting the same error.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=minisap GROUP=PUBLIC R3NAME=NSP MSSERV=sapmsNSP PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR The message received isn't from a message server. Are you really connected to the message server? Please check your connection parameters. (minisap / sapmsNSP) TIME Wed Oct 27 18:37:54 2010 RELEASE 720 COMPONENT MS (message handling interface, multithreaded) VERSION 4 RC -29 MODULE msxxi.c LINE 2797 COUNTER 4

Please do help in resolving this isssue.

Divya

Edited by: Divya V on Oct 27, 2010 3:18 PM

Former Member
0 Kudos

Hi Jude,

Please do help me in resolving this error.

Thanks and Regards,

Divya

tomas-krojzl
Active Contributor
0 Kudos

Hello,

I would stick to this message:

The message received isn't from a message server. Are you really connected to the message server? Please check your connection parameters. (minisap / sapmsNSP)

For some reason it looks that you are connecting somewhere but not to message server.

Validate that:

1.) hostname minisap is correct - best perform ssh minisap from source machine and login to be sure you are on correct target machine server

2.) check that port is correct - look in /etc/services (of source Java machine) for sapmsNSP entry - ensure that there is no other entry with same port and compare port used with value specified in profiles of message server on target ABAP machine

3.) validate sap message server is up and running on target machine (because maybe MS crashed and other application is running on this port)

4.) use can use tools like msmon to check directly message server

http://help.sap.com/saphelp_nw70/helpdata/en/64/3e7fb4a12e49b9856bb97970c6acc1/frameset.htm

Best regards.

Former Member
0 Kudos

Hello Divya,

Have you maintained any sap logon group in T-code SMLG, double click on the logon group and click on atributes under gruop independent check whether external RFC connection is checked, if yes pls remove that try it again.

http://wiki.sdn.sap.com/wiki/display/EP/TroubleshootingSAPJavaConnector%28JCo%29

Can you check on the ABAP side have you maintained the wrigth system number in SM59 RFC connection

Regards

JUDE

Former Member
0 Kudos

Hi Jude,

The External RFC Connection is unchecked. Also where is that in SM59, we specify the System Number.

While creating the RFC destinations, speficied only the gateway host and number. Where can i check the system number in sm59.

Divya

Former Member
0 Kudos

Hello Divya v,

Please go through this link to create JCO destination.

http://help.sap.com/saphelp_nw2004s/helpdata/en/be/6e0f41218ff023e10000000a155106/content.htm

And please make sure that you have maintained entries in hosts file and servies

you can navigate to START> RUN>DRIVERS-->etc or C:\WINDOWS\system32\drivers\etc

under hosts file maintain the entries like

192.90.225.62 S320M000 S320M000.abc.cordir.net

IP address hostname FQDN

and check for the entries of services file with the wright ports are in place.

Regards

JUDE.

Former Member
0 Kudos

Hi Divya,

Not sure whether you are trying establish a JCo between ABAP & Java stack of a single system(dual stack like PI) or trying to connect a ABAP stack(ECC) box with pure JAVA stack(like EP). Regarding your error it seems that minisap is referring to your msg server host and whats the client number you mentioned there ..is it 100 ? make sure you are using correct hostname and client information there.

A general JCo connection process is mentioned. From my experience, if you follow the basics clearly then there shouldn't any issue in JCo connection.

You need to create LCRSAPRFC & SAPSLDAPI,AI_RUNTIME_<SID> etc "T" type RFC destinations at ABAP stack. In both the RFCs under technical setting tab select "Registered Server Program" radio button and put Program ID as LCRSAPRFC_<SID> & SAPSLDAPI_<SID>,AI_RUNTIME_<SID> respectively.

In the VA, under JCo RFC provider make sure the following JCos are created :-

AI_RUNTIME_<SID>

AI_DIRECTORY_<SID>

LCRSAPRFC_<SID>

SAPSLDAPI_<SID>

Details at Jco would be as mentioned below :-

Program Id: LCRSAPRFC_<SID>

Gateway host : <server hostname>

Gateway service: sapgw00

Server Count : 3

Repository -> Specific Application Server

Application server host : <server hostname>

System number: <nr>

Client : <xyz>

User :

Password :

After putting the details,when you "set" them make sure the RFCs "run" i.e. successfull at Java end. If you mention program id with correct <SID> of your system then most of the problem occurs with the correct user id/password/Client for JCo.

At ABAP end also connection test should be sucessful.

Former Member
0 Kudos

Hi shivaji,

I am trying to connect a ABAP stack(ECC) box with pure JAVA stack(like EP). I created all the specified rfc destinations at both java and abap stack. Thus the gateway error is resolved.

Also in service file - sapmsNSP 3600/tcp

host file - ipaddress FQDN is maintained.

Both abap and java server are in different domains. I had SSO configured and is working well.

Now when i try to create a JCO, it is throwing me this error.

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=minisap GROUP=PUBLIC R3NAME=NSP MSSERV=sapmsNSP PCS=1 ERROR The message received isn't from a message server. Are you really connected to the message server? Please check your connection parameters. (minisap / sapmsNSP) TIME Wed Oct 27 12:43:47 2010 RELEASE 720 COMPONENT MS (message handling interface, multithreaded) VERSION 4 RC -29 MODULE msxxi.c LINE 2797 COUNTER 1

Please do help me in this regard.

Divya