Skip to Content
author's profile photo Former Member
Former Member

RFC_ERROR_COMMUNICATION: Connect to message server failed

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)

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 03, 2008 at 04:32 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 04, 2008 at 06:38 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 12, 2008 at 06:20 PM

    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?

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.