SAP job failing in HA configuration: com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed
search cancel

SAP job failing in HA configuration: com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed

book

Article ID: 252471

calendar_today

Updated On:

Products

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

Issue/Introduction

We're trying to set up new SAP R/3 servers on our environment, but we're coming against an error and need help deciphering it. The previous setup we have does not use a gateway, but this new setup uses one. Please let me know what you think about what is shown below. The directory shown is not in our system (/xxxxxx/krn/si/gw/gwr3cpic.c).  Thanks!

 

20221006 12274969+0400 AGT_saphost JavaAgent#tcpip@AES_SCH 1.1234_1/WAAE_WF0.1/MAIN RUN RFC Data(JOBDEFINE(Jobname="SAP_TEST",ChildMonitor=N,PutInOutbox=N,StartMode=A,RfcDest=h02,User=AUTOSYS,Password=<masked>) ABSTEP(ABAPname=ABAPXX,PPBannerPage=N,PPRelease=N,PPPrintImm=N,PPNewSpool=Y,PPFooter=N)) MFUser(AUTOSYS) WOBRequestID(XXXXXXXXXXXXXX)

STATE SUBERROR Failed Cmpc(1202) Status(Error) LStatus(Not Connected - Exception com.sap.conn.jco.JCoException: 102 JCO_ERROR_COMMUNICATION: Connect from SAP gateway to RFC server failed  connection parameters: TYPE=A DESTINATION=H02:100:EN:AUTOSYS ASHOST=saphost SYSNR=12 PCS=1  LOCATION    SAP-Gateway on host <HOSTNAME_MASKED> / sapxx ERROR       Gateway not connected to local R/3 TIME        Thu Oct  6 16:27:52 2022 RELEASE     781 COMPONENT   SAP-Gateway VERSION     2 RC          726 MODULE      /xxxxxx/krn/si/gw/gwr3cpic.c LINE        6361 COUNTER     2  remote system is [<unknown>]) SetEnd 

Environment

Release : 12.x

Component: Workload Automation Agent for SAP

Cause

SAP load balancing configuration issue.

Resolution

Configure the Agent SAP plugin to connect with load balancing.

Add the following parameters to the connection properties file.

jco.client.mshost=<SAP message server>
jco.client.group=<SAP group name>
jco.client.r3name=<SAP system ID>

Note: The value for jco.client.group must be a group that has been previously created using the SAPGUI.

Obtain the value of these parameters from your SAP support team and provide them as value. These changes require restart of agent to take effect.

Additional Information

Configure Load Balancing