search cancel

CA WA SAP Plugin instantiation failed

book

Article ID: 5692

calendar_today

Updated On:

Products

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

Issue/Introduction

The CA WA System agent with the SAP plugin fails to start with the following messages:

02/07/2017 00:00:12.345 EST-0500 5 main.MainThread.CybSapPluginDriver.runApplication[:85] - CybSapPluginDriver Build 16, Service Pack 4, Maintenance Level 0 starting
02/07/2017 00:00:12.345 EST-0500 1 main.MainThread.CybAgentDriver.runApplication[:389] - cybermation.library.plugins.CybPluginException: Plugin instantiation failed
at cybermation.agent.plugins.manager.CybPluginManager.invokePluginMethod(CybPluginManager.java:359)
at cybermation.agent.plugins.manager.CybPluginManager.loadPlugins(CybPluginManager.java:517)
at cybermation.agent.CybAgentDriver.runApplication(CybAgentDriver.java:319)
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:454)
Caused by: java.lang.reflect.InvocationTargetException: null
at sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
........
at cybermation.agent.CybAgentDriver.main(CybAgentDriver.java:454)
Caused by: java.lang.NoClassDefFoundError: com/sap/conn/jco/ext/SessionReferenceProvider
at cybermation.plugins.sap.CybSapPluginDriver.runApplication(CybSapPluginDriver.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
........

Environment

Component: Workload Automation Agent for SAP

Cause

Agent SAP plugin cannot find the SAP Java Connector (SAP JCo) on the System Agent.

Resolution

Install SAP Java Connector (SAP JCo) on the System Agent.

On Linux, the SAP JCo files are sapjco3.jar and libsapjco3.so
- Copy the sapjco3.jar to the system agents jars/ext sub-directory
- Copy the libsapjco3.so to the agent installation directory (or libsapjco3.sl depending on the UNIX platform)

Confirm the SAP JCo files sapjco3.jar is in <system_agent_directory>/jars/ext sub-directory and libsapjco3.so is in agent installation directory.

On Windows, the SAP JCo files are sapjco3.jar and sapjco3.dll
- Copy the sapjco3.jar to the system agents jars/ext sub-directory
- Copy the sapjco3.dll to the agent installation directory

Please confirm the SAP JCo files sapjco3.jar is in <system_agent_directory>\jars\ext sub-directory and sapjco3.dll is in agent installation directory.

NOTES:
The required minimum version is SAP JCo 3.0.x

As of WA agent 11.4 only 64 bit agents are supported in Linux, Windows and UNIX.  The SAP JCo must also be 64 bit.

For Windows systems, you require the msvcr71.dll and msvcp71.dll files. You must add these files to the agent installation directory.

The SAP JCo also requires Microsoft 2013 C++ libraries  (or newer) on Windows OS.  Consult SAP JCo Documentation for additional requirement

Additional Information

We document by agent version what SAP JCO versions are supported and if any fixes are required.  See link;

https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/workload-automation-agent-for-sap/12-0/release-notes/ca-wa-agent-for-sap-platform-support-matrix.html

Also, you can identify the Workload Automation Agent / plugin version by running these commands:
cybagent -v
cybagent -vv