cancel
Showing results for 
Search instead for 
Did you mean: 

RFC_ERROR_COMMUNICATION: Connect to message server failed

Former Member
0 Kudos

Hi, when I run my application using JCO I have this error, can someone help me???THANKS

Exception in thread "main" com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server failed

Connect_PM MSHOST=10.150.2.122, R3NAME=10, GROUP=DEV

LOCATION CPIC (TCP/IP) on local host

ERROR service 'sapms10' unknown

TIME Mon Nov 03 16:12:18 2008

RELEASE 640

COMPONENT NI (network interface)

VERSION 37

RC -3

MODULE ninti.c

LINE 505

DETAIL NiPGetServByName2: service 'sapms10' not found

SYSTEM CALL getservbyname_r

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:3138)

at principale.Mymain.main(Mymain.java:36)

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I got a similar error, but I have the service defined in services file in my Windows server.

And there is connectivity, no firewall at all. What could be then?

Former Member
0 Kudos

Hello,

could you please post your complete connection settings

it looks like you are using the service 'sapms10' to connect, but your system does´t know how to resolve the service sapms10 to a tcp port number (on windows this is usally in the file WINDIR/system32/drivers/)

AFAIK sapms10 has tcp port number 3610, so try to replace sapms10 with 3610

regards franz

close thread if message is answerded

Former Member
0 Kudos

Hi Andrea,

This is a common exception when the jrfc.jar library is not present in your application path, it means, you must set phisycally the jrfc.jar library inside your enterprise container.

Other point is the anscence of some dll or so in your CLASSPATH.

sapjcorfc.dll

librfc32.dll

other than the jrfc.jar must be on path.

You can re-check your parameters, there's something wrong to with the SAP Service you're trying to reach in your function call.