CONNECTIVITY ISSUE USING SAP PLUG IN: Exception com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION
search cancel

CONNECTIVITY ISSUE USING SAP PLUG IN: Exception com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION

book

Article ID: 228895

calendar_today

Updated On:

Products

Autosys Workload Automation CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation DE - Business Agents (dSeries)

Issue/Introduction

We are getting connection error while install the latest Agent 12.0 and its sap plugin using sap.cfg 

  1. Error: Not Connected - Exception com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION: Connect to message server host failed Connection parameters: TYPE=B DEST=CYB:001:EN:CAYBAT MSHOST=sap1234.exmample.host R3NAME=CYB GROUP=CYB PCS=1
  2. ERROR service sapmsCYB unknown
  3. TIME Sat Nov 20 11:56:30 2021
  4. RELEASE 720
  5. COMPONENT NI network interface
  6. VERSION 40
  7. RC -3
  8. MODULE niuxi.c
  9. LINE 1814
  10. DETAIL NiPGetServByName: sapmsCYB not found
  11. SYSTEM CALL getaddrinfo
  12. COUNTER 1

 

Environment

Release : 12.x

Component : Workload Automation Agent for SAP

Cause

There are a couple of causes for this problem: 

  1. The server is unable to translate request for symbolic port name into actual port number.
  2. The connection to the remote sap server (jco.client.mshost), via port 3600, is not available.

 

Resolution

Cause: unable to translate request for symbolic port name into actual port number

Add the line like below in /etc/services file:

sapmsCYB 3600/tcp # SAP connection service

where, CYB is the SAP system ID (SID)

The entry causes the server to translate requests for the symbolic port name "sapmsCYB" into the actual port number 3600. This is required to use SAP load balancing.

For Windows make an entry in:

<drive>:\Windows\System32\drivers\etc\servcies

 

Cause: connection to the remote sap server (jco.client.mshost), via port 3600, is not available

Test to make sure that the agent machine, where the sap plugin is installed/running, can connect with the remote sap server via port 3600. These commands can help:

  • telnet <remote sap server> 3600
  • curl -v telnet://<remote sap server>:3600

 

Telnet should show: 

Trying <ip address>...
Connected to <remote sap servername>.
Escape character is..

 

Additional Information

Configure the Server for Symbolic Port Name Translation

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-agent-for-sap/12-0/configuring/configure-load-balancing.html#concept.dita_bcf01b359911c3aab9edcfd7076b3d553906f4c2_ConfiguretheServerforSymbolicPortNameTranslation