sap_basis fails to connect to resource: Wrong PATH and/or Native library sapjco3 is too old
search cancel

sap_basis fails to connect to resource: Wrong PATH and/or Native library sapjco3 is too old

book

Article ID: 111031

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

After following all of the prerequisites the probe still fails to connect to the configured resource with the following errors in the log:

Unexpected fatal error occurred during data collection against DataCollector for <configured resource>
java.lang.NoClassDefFoundError: com/sap/conn/jco/ext/DestinationDataProvider at com.nimsoft.probe.common.ctd.SapSession.login(SapSession.java:503)



This Error might also be showing:

Mar 11 14:32:51:928 [attach_socket, sap_basis] (120) Callback error, Exception in callback for public void com.nimsoft.vm.BaseCallbackHandler.cbVerifyResource(com.nimsoft.nimbus.NimSession,com.nimsoft.nimbus.PDS) throws com.nimsoft.nimbus.NimException: Native library sapjco3 is too old. Found library D:\Sources\sapjco3-path\sapjco3-ntamd64-3.1.11\sapjco3.dll has version "721.619", but required is at least version "753.1425".: Native library sapjco3 is too old. Found library D:\Sources\sapjco3-path\sapjco3-ntamd64-3.1.11\sapjco3.dll has version "721.619", but required is at least version "753.1425".
    at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.performCallback(NimServerSession.java:224)
    at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.handleMessage(NimServerSession.java:169)
    at com.nimsoft.nimbus.NimServerSession$NimServerSessionThread.run(NimServerSession.java:123)
Caused by: java.lang.ExceptionInInitializerError: Native library sapjco3 is too old. Found library D:\Sources\sapjco3-path\sapjco3-ntamd64-3.1.11\sapjco3.dll has version "721.619", but required is at least version "753.1425".

 

Environment

  • DX UIM 20.4.* / 23.4.*
  • sap_basis: 2.*.* 

Cause

  • Incorrect Windows system environment variable and sap_basis.cfg settings related to the installed Sap Java Connector files required by the sap_basis probe.
    and/or
  • missing sap library

Resolution

  • After installing the SAP Java Connector (JCO) to enable SAP ABAP monitoring the PATH and CLASSPATH variables have to be set to the absolute path where the JCO was installed. For example, if the JCO was installed in the C:\SAPJCO3 directory, these system environment variables need to be set to the following:

       PATH=%PATH%;C:\SAPJCO3
       CLASSPATH=%CLASSPATH%;C:\SAPJCO3

    After making these changes to the Windows system environment variables, stop then start the Nimsoft Robot Watcher service so that the robot picks up the system environment variable changes.

    When you configure the sap_basis probe and specify the JCO location, the probe should set the "-cp" switch in the startup->options key value to the following:

    -cp "./*;C:/SAPJCO3/*"

    If this does not occur, modify this key value using the sap_basis probe's Raw Configure GUI.

    Select the startup folder from the left-hand pane, then modify the options value in the right-hand pane to correct the argument to the "-cp" switch.

  • The library may be missing if so, download it from this KB and add it into the path. 

Additional Information

Attachments

sap_jco_1671737610787.zip get_app