Description:
The SAP agent will crash on UNIX platforms after running for about 30 minutes to an hour. This can happen because the JCO is not correctly installed/applied.
Agent and SAP logs will show errors like these:
[CRITICAL] [Thread-23, 5, main] CybSAPJobManager.requestProcessedNotify[:1132] - SAP ERROR: Connecting -Unexpected Problem: JCO.classInitialize: Could not load middleware layer com.sap.mw.jco.rfc.MiddlewareRFCJCO.nativeInit:
Could not initialize dynamic link library sapjcorfc [/appl/cyb_agent/r7SAP/libsapjcorfc.sl: specified file is not a shared library, or a format
error was detected.]. java.library.path [.:/appl/cyb_agent/r7SAP:/appl/cyb_agent/r7SAP/jre/lib/PA_RISC2.0/:
/appl/cyb_agent/r7SAP/jre/lib/PA_RISC2.0/hotspot:/usr/lib
Solution:
To install the SAP Java Connector:
Log in to SAP Service Marketplace.
Navigate to SAP Java Connector, Tools & Services.
Download the latest version of SAP JCO for your operating system.
Note: For HP-UX systems, download 32bit JCO, even if the OS is 64bit.
The SAP Java Connector is installed.