Exception in thread "main" java.lang.NoClassDefFoundError: com/ca/autosys/services/JSecurityProfilesRsp
search cancel

Exception in thread "main" java.lang.NoClassDefFoundError: com/ca/autosys/services/JSecurityProfilesRsp

book

Article ID: 269810

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Receiving the following error when executing utility custom ASAPI SDK program after upgrading autosys server to 12.1 

Mon Jun 26 14:19:58 PDT 2023
Exception in thread "main" java.lang.NoClassDefFoundError: com/ca/autosys/services/JSecurityProfilesRsp
        at com.ca.autosys.services.JResponse.create(Native Method)
        at com.ca.autosys.services.JResponse.<init>(Unknown Source)
        at com.ca.autosys.services.response.GetGlobalsRspSet.dequeueResponse(Unknown Source)
        at com.ca.autosys.services.response.ApiResponseSet.hasNext(Unknown Source)
        at com.capgroup.autodeploy.asinstaller.core.DataLoader.loadGlobalVariables(DataLoader.java:114)
        at com.capgroup.autodeploy.asinstaller.core.DataLoader.getGlobalVars(DataLoader.java:60)
        at com.capgroup.autodeploy.asinstaller.core.Application.validate(Application.java:41)
        at com.capgroup.autodeploy.asinstaller.util.ComLineInt.runCommand(ComLineInt.java:112)
        at com.capgroup.autodeploy.asinstaller.util.ComLineInt.main(ComLineInt.java:68)
Caused by: java.lang.ClassNotFoundException: com.ca.autosys.services.JSecurityProfilesRsp
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 9 more
Mon Jun 26 14:19:58 PDT 2023

 

Environment

Release : 12.1, 12.1.01

Cause

12.1 Autosys libraries were not referenced correctly during compile and run time.

Resolution

1) The machine where the custom program compile is being done, ensure that that environment hs correct 12.1 based $AUTOSYS/lib/*.jar  files on it  and make sure that they are referenced correctly in the custom program's external jars/classpath

2) On the machine where the program is being run after compilation, that machine should have its runtime/classpath to correct 12.1  *.jar files