ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

exemptOutagesForDay.sh is erroring out

book

Article ID: 238779

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

 ./exemptOutagesForDay.sh root root yes 2022-02-16 Spectrum Network Socket Issues

 

================================== 

 

Exception in thread "main" java.lang.NoClassDefFoundError: com/aprisma/util/resource/ResourceManager
        at com.aprisma.spectrum.app.repmgr.util.ExemptOutagesForDay.main(ExemptOutagesForDay.java:176)
Caused by: java.lang.ClassNotFoundException: com.aprisma.util.resource.ResourceManager
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 1 more

Environment

Release : 21.2

Component : Spectrum Reporting

Resolution

Please edit the script, and make the classpath line look like this:

CLASSPATH="${LIBDIR}/rpmgr.jar:${LIBDIR}/mysql-connector-java.jar:${LIBDIR}/jdom.jar;${LIBDIR}/util.jar:${LIBDIR}/global.jar:${LIBDIR}/utilsrv.jar"