Skip to Content

RFC works - JCo doesn't

Hello,

we have a SAP/R3 system (QW8) which we bound to an WebAS successfully ( that means that RFC call via rz70 was successful and system was added to technical landscape also).

When we try to create JCo connection, we get the following

Failed to ping JCo destination 'test2'.

or

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=pwdf0672 GROUP=PUBLIC R3NAME=QW8 MSSERV=sapmsQW8 PCS=1 ERROR partner not reached (host 10.17.73.95, service sapmsQW8) TIME Wed Nov 02 10:41:00 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8634 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1

The system is there, we can ping it via cmd line and we added sapmsQW8 3225 to the services file also. The PUBLIC group does also exist.

When we used rz70 we took "localhost" and "sapgw25" as params.

So maybe anybody can help us out with that,

Clemens

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

14 Answers

  • Best Answer
    Posted on Nov 08, 2005 at 01:56 PM

    Hi Dharmi,

    so after a little bit of work - I tried to bind an other system (QB8)... it also only worked in single server connection, not with metadata nor with load-balancing. It gives me the same error - partner not reached.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 02, 2005 at 09:48 AM

    Hello Clemens,

    Both the Jco Connections are not working???

    Best regards,

    Dharmi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 02, 2005 at 09:57 AM

    Hi Dharmi,

    As I said - the RFC works ( when using it via rz70) but when I create JCo Connections I can't ping the system -

    Failed to ping JCo destination 'test2'.

    When testing the JCo Connections I get the error as above.

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Clemens,

      I perfectly understand that from RFC it works and doesn't work with Jco!

      Can we try to look into the details and find the cause?

      1. The Status is green so you get the option to ping or test the connection, the name test2 does not tell me whether it is a ModelData or MetaData type of connection so Can you please answer to that first?

      If the above is clear to me we can look into further details. There mite be one minute detail that you mite be overlooking so if we work together step by step we can solve it.

      Best regards,

      Dharmi

  • Posted on Nov 02, 2005 at 10:28 AM

    Hi Dharmi,

    I appreciate your help very much!

    So I created a JCo "test3" with Client 100 and I checked "Use local Engine" and it is an "Appl.Data" Connection

    I provided my username and password in capitals of the R/3 system and Group is PUBLIC.

    The ping fails and when testing it gives:

    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=pwdf0672 GROUP=PUBLIC R3NAME=QW8 MSSERV=sapmsQW8 PCS=1 ERROR partner not reached (host 10.17.73.95, service sapmsQW8) TIME Wed Nov 02 11:25:20 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8625 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1

    When I set up the same thing wit "Dictionary Meta Data" it says:

    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=pwdf0672 GROUP=PUBLIC R3NAME=QW8 MSSERV=sapmsQW8 PCS=1 ERROR partner not reached (host 10.17.73.95, service sapmsQW8) TIME Wed Nov 02 11:27:37 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8625 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Clemens,

      "So I created a JCo "test3" with Client 100 and I checked "Use local Engine" and it is an "Appl.Data" Connection" Also assuming that single server connection was selected.

      Can you try to test the SLD connection if that works?

      Best regards,

      Dharmi

  • Posted on Nov 02, 2005 at 10:55 AM

    Hi Dharmi,

    If I test the SLD Connection ( Check SLD Connection - Test Connection ) then it gives me it was successfully tested. So that seems to work.

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 02, 2005 at 12:53 PM

    Hello Dharmi,

    I thank you for your help again - here is what I expirienced just now (by try-and-error):

    When I create an Application Data Connection and choose "Single Server Connection" instead of the load-balanced one, then it works perfectly! I can test it and ping it sucessfully...does that recall any idea in you?

    When I create a Meta-Data-Connection then still the error

    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server host failed Connect_PM TYPE=B MSHOST=pwdf0672 GROUP=PUBLIC R3NAME=QW8 MSSERV=sapmsQW8 PCS=1 ERROR partner not reached (host 10.17.73.95, service sapmsQW8) TIME Wed Nov 02 13:59:11 2005 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8625 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1

    comes up.

    kind regards,

    Clemens

    Message was edited by: Clemens Leider

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Clemens Leider

      Hello Clemens,

      Is your SAP R/3 and WAS installed on seperate servers? The reason to ask this is because you are getting the partner not reached Error!

      Best regards,

      Dharmi

      p.s. I have created Jco creation only for Java stack so we can try to see if i can really help with the ABAP stack

  • Posted on Nov 02, 2005 at 02:20 PM

    Hello Dharmi,

    yes - the WAS and the R/3 system do run on different servers within the same network. I can ping both of them sucessfully from command line - so they are there and reachable ( and I do not get the point why it says "partner not reached" as in Single Server Connection it works, doesn't it?)

    Regards

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Clemens,

      Yes, you are right in the single server connection it does work. With Dictionary metadata by default it is load balancing, I would however ask you to try one more thing:

      In the 4th step where you select the message server just try to give the SAP router and that you can pick up from rz70 (hostname).

      Let me know what happens!

      Best regards ,

      Dharmi

  • Posted on Nov 02, 2005 at 02:42 PM

    Thank you , Bala!

    Could you tell me how and where I add the group?

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Sure.

      I guess you might have set up an ABAP stack already as you are using different server for accessing R/3. Anyways, here are the steps to set-up an ABAP stack in SLD.

      1)open the URL http://<hostname>:<httpportnumber>/sld/index.jsp

      2)Click <b>Administration</b> tab and select <b>Import</b> under the Content flag.

      3)Specify the path to the suitable CR-Content file (zip file:CRCONTENT13_0_10002694.zip for web AS 6.20)and click Import.The file upload will take some time.Wait until the file gets uploaded successfully.

      4)Click <b>Home</b> tab and choose <b>Technical Landscape</b>

      5)Choose "<b>Web AS ABAP</b>" from the Technical System Type drop down.

      6)Click "<b>New Technical System</b>".You'll get a pop-up

      7)Choose "<b>Web AS ABAP</b>" in the "<b>Technical System Wizard</b>" (pop-up)

      8)Choose <b>Next</b> and specify all the relevant details of the R/3 system to which u r connecting.

      9)Choose <b>Next</b> and specify all the required details for your Application Server and Message Server.(Add a group called <b>PUBLIC</b> to the Log On Groups)

      10)Click <b>Next</b> and specify the <b>Hostname</b> of the App Server and click "Add".

      11)Click <b>Next</b> and specify the "<b>Client Number</b>" and its "<b>Logical Name</b>".

      12)Choose <b>Nex</b>t and select "<b>SAP WEB AS 6.</b><the version number of the AS>".Click "Add" . By default all the components will get selected. Just Scroll down the wizard and click "<b>Finish</b>".

      Your Jco destinations should work now.

      Bala

  • Posted on Nov 03, 2005 at 08:59 AM

    Hi Bala,

    so I did what you suggested - even if I assumed that all the settings should be perfectly done when running rz70 on the R/3 system - no change, error appears nevertheless.

    What I am wondering about is that this only appears with meta_data connections and when I try to use load-balanced connections... if I use single server connection with application data JCo it just runs fine.

    Is there possibly an issue when using a VPN within the network?

    Regards,

    Clemens

    PS: Is there a way to add the logon group afterwards?

    Message was edited by: Clemens Leider

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 03, 2005 at 09:58 AM

    Hi Dharmi,

    I took "localhost" (I got that from rz70) and tried again,

    the app-data works , meta-data doesn't.

    I have pwdf0672 as central app server and

    pwdf0721 as secondary - does that influence it?

    Regards,

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Clemens,

      I just spoke about your problem to the technical person here, he suggested that "Partner not reach error" that you get could be because of the firewall, he also suggested if you could telnet the message server and see if that works?

      The reson for not getting that error in the Apllication data according to him is bcos the Application data goes via GUI.

      Can you try telnet?

      Best regards,

      Dharmi

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.