SAP Plugin instantiation failed
search cancel

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

System Agent with SAP plugin fails to start with the following messages:

XX/XX/20XX 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 is missing the SAP Java Connector (SAP JCo).

Resolution

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

On Linux/UNIX:

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)

Make sure 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

Make sure 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

Related documentation:

Agent 12.0 - WA Agent for SAP Platform Support Matrix

Agent 12.1 - WA Agent for SAP Platform Support Agent Matrix

Run these commands to check Workload Automation Agent / plugin version:
cybagent -v
cybagent -vv