java.lang.NullPointerException seen when running the DX NetOps Spectrum ConfigSpectrumITPAM.sh script

book

Article ID: 195894

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

A security breach required a customer to change the password of ITPAM and that required a password change on the DX NetOps Spectrum AlarmNotifier/ITPAM Remedy integration. The following error was seen running the ConfigSpectrumITPAM.sh script to change the password:

Exception in thread "main" java.lang.NullPointerException

        at com.ca.itpam.configspectrum.ConfigSpectrumITPAM.createConfigEntryFields(ConfigSpectrumITPAM.java:237)

        at com.ca.itpam.configspectrum.ConfigSpectrumITPAM.makePane(ConfigSpectrumITPAM.java:166)

        at com.ca.itpam.configspectrum.ConfigSpectrumITPAM.createAndShowGUI(ConfigSpectrumITPAM.java:129)

        at com.ca.itpam.configspectrum.ConfigSpectrumITPAM.main(ConfigSpectrumITPAM.java:102)

[[email protected] ITPAM]$ export SPECROOT=/opt/CA/Spectrum

Cause

I believe the issue is that ConfigSpectrumITPAM.sh script does not set the $SPECROOT variable so the ConfigSpectrumITPAM utility fails to launch. 

Environment

Release : 10.4

Component : Spectrum Core / SpectroSERVER

Component: ITPAM

Resolution

Running the following commands from the command line resolved the issue:

export SPECROOT=/opt/CA/Spectrum

/opt/CA/Spectrum/Java/bin/java -cp ConfigITPAM.jar com.ca.itpam.configspectrum.ConfigSpectrumITPAM