SAP Agent exception during the startup "java.lang.RuntimeException: Severe error in SAP plug-in"
search cancel

SAP Agent exception during the startup "java.lang.RuntimeException: Severe error in SAP plug-in"

book

Article ID: 260421

calendar_today

Updated On:

Products

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

Issue/Introduction

The Workload Automation SAP Agent starts successfully. However, the following exception has been written to the file <SAP_AGENT_INSTALL_DIR>/nohup.stderr.

The jobs are not running.

Exception in thread "Thread-18" java.lang.RuntimeException: Severe error in SAP plug-in
        at cybermation.plugins.sap.communicator.CybSAPJobManager.sapConfigSevere(Unknown Source)
        at cybermation.plugins.sap.utility.CybSAPConfigAnalyzer.c(Unknown Source)
        at cybermation.plugins.sap.utility.CybSAPConfigAnalyzer.a(Unknown Source)
        at cybermation.plugins.sap.utility.CybSAPConfigAnalyzer.validate(Unknown Source)
        at cybermation.plugins.sap.CybSapPlugin$CybConfigAnalyzerProcessor.run(Unknown Source)

Environment

Release : 12.0 and higher

Cause

The reason for the exception in the nohup.stderr file has been captured in the sap_config.log under <AGENT_INSTALL_DIR>/log/

Log Started 02/19/2023 22:39:37.803-0500 with level 5, Message-Length:Unlimited
-------------------------------------------------------------------------------
02/19/2023 22:39:37.803-0500 1 main.MainThread.CybSAPConfigAnalyzer.getInstance[:224] - Initializing CybSAPConfigAnalyzer...
02/19/2023 22:39:38.057-0500 1 main.Thread-18.CybSAPConfigAnalyzer.d[:2248] - Successfully loaded Resource Bundle.
02/19/2023 22:39:38.060-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:283] - Successfully loaded config.properties.
02/19/2023 22:39:38.060-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:887] - STARTED: SAP config validation.
02/19/2023 22:39:38.061-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:929] - Successfully loaded srp.properties.
02/19/2023 22:39:38.061-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:427] - <sap.default.destination> = srp
02/19/2023 22:39:38.066-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:432] - <jco.client.ashost> = sap-server.local
02/19/2023 22:39:38.067-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:433] - <jco.client.sysnr> = 00
02/19/2023 22:39:38.067-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:444] - <jco.client.client> = 200
02/19/2023 22:39:38.068-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:445] - <jco.client.user> = AUTOSYS_USER
02/19/2023 22:39:38.069-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:446] - <jco.client.lang> = EN
02/19/2023 22:39:38.069-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:449] - <jco.client.snc_mode> = 0
02/19/2023 22:39:38.070-0500 1 main.Thread-18.CybSAPConfigAnalyzer.c[:2193] - <sap.logon.company> = Cybermation
02/19/2023 22:39:38.070-0500 1 main.Thread-18.CybSAPConfigAnalyzer.c[:2193] - <sap.logon.product> = Agent
02/19/2023 22:39:38.070-0500 1 main.Thread-18.CybSAPConfigAnalyzer.c[:2193] - <sap.logon.interface> = XBP
02/19/2023 22:39:38.071-0500 1 main.Thread-18.CybSAPConfigAnalyzer.c[:2193] - <sap.logon.version> = 7.0
02/19/2023 22:39:38.071-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:967] - Attempting to connect to SAP...
02/19/2023 22:39:38.196-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:1002] - Error: failed to connect to SAP. <com.sap.conn.jco.JCoException: (102) JCO_ERROR_COMMUNICATION: Connect to SAP gateway failed
                                                                              Connection parameters: TYPE=A DEST=SRP:200:EN:AUTOSYS_USER ASHOST=sap-server.local SYSNR=00 PCS=1
                                                                              LOCATION    CPIC (TCP/IP) on local host with Unicode
                                                                              ERROR       partner '10.0.1.1:3300' not reached
                                                                              TIME        Sun Feb 19 22:39:38 2023
                                                                              RELEASE     721
                                                                              COMPONENT   NI (network interface)
                                                                              VERSION     40
                                                                              RC          -10
                                                                              MODULE      nixxi.cpp
                                                                              LINE        3283
                                                                              DETAIL      NiPConnect2: 10.0.1.1:3300
                                                                              SYSTEM CALL connect
                                                                              ERRNO       79
                                                                              ERRNO TEXT  A remote host refused an attempted connect operation.
                                                                              COUNTER     2>
02/19/2023 22:39:38.198-0500 1 main.Thread-18.CybSAPConfigAnalyzer.a[:1005] - FAILED: SAP config validation.

Resolution

Contact SAP Admin and the network teams to resolve the communication problem between the SAP Agent server and the SAP system.

Restart the SAP agent after ensuring the SAP server's connection port is accessible from agent.

Additional Information

SAP Connection Parameters

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-agent-for-sap/12-1/configuring.html#concept.dita_5bce75e6bfe676eee6640c9d7f38b8b57c14f768_SetSAPConnectionParameters