Workload Automation Agents

 View Only

java.lang.NoClassDefFoundError

  • 1.  java.lang.NoClassDefFoundError

    Posted Aug 01, 2019 01:25 PM
      |   view attached

    ​Hi,

    We have recently installed the CA Workload Automation Agent for Microsoft SQL Server - 11.4 and on our first test we are receiving the below error found on Transmitter log;

    ----------------------------------------------------------------java.lang.NoClassDefFoundError: cybermation/library/afm/CybInvalidAFMException@at java.lang.Class.getDeclaredMethods0(Native Method)@at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)@at java.lang.Class.privateGetMethodRecursive(Class.java:3048)@at java.lang.Class.getMethod0(Class.java:3018)@at java.lang.Class.getMethod(Class.java:1784)@at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)@at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)Caused by: java.lang.ClassNotFoundException: cybermation.library.afm.CybInvalidAFMException@at java.net.URLClassLoader.findClass(URLClassLoader.java:381)@at java.lang.ClassLoader.loadClass(ClassLoader.java:424)@at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)@at java.lang.ClassLoader.loadClass(ClassLoader.java:357)@... 7 moreError: A JNI error has occurred, please check your installation and try againException in thread ""main"" ") FileSize(1227) Lengths(64 79 39 64 78 54 62 62 47 46 74 73 91 62 57 65 57 11 77 27 ) DataStatus(EOF)  Plugin(runner) User(NC006VQADE21) Host(NC006VQADE21)  

    We are running the below script from CA7 Agent job;

    CMDNAME "F:\Program Files\CA\WA Agent\wrappers\mssql_call.bat" 
    ARGS --operation=RunJob +                                      
    --JobName=App-SelectCount +                                    
    --TargetDB=NC006VQADE21 +                                      
    --Track=Y             

    The mssql_call.bat is calling the below parameters;

    @echo off
    setlocal
    set LIBS=F:\Program Files\CA\WA Agent\jars
    set CLASSPATH="%CLASSPATH%;%LIBS%\library.jar;%LIBS%\pluginlib.jar;%LIBS%\ext\jsafeJCEFIPS.jar;%LIBS%\ext\jtds-1.2.5.jar;%LIBS%\ext\commons-cli-1.2.jar;%LIBS%\sql.jar"
    "F:\Program Files\CA\WA Agent\jre\bin\java.exe" -cp %CLASSPATH% cybermation.plugins.sql.SqlDriver %*
    endlocal
    exit %ERRORLEVEL%          

    We already have confirmed that the JTDS file is presented on the CA Folder Path so I am not sure what else to look at. I am attaching the Receiver and Transmitter log and the Agentparm as well.

    Daniel Dourado            

    Attachment(s)

    zip
    files.zip   22 B 1 version