When upgrading Spectrum Data Publisher, the service fails to start if the previous configuration files are copied over
ERROR MESSAGE:
"Exception in thread "main" java․lang․NullPointerException: Cannot invoke "com․ca․spectrum․spub․config․DoiConfiguration$AlarmReconcileInfoV2․getAlarmGetv2Path()" because "alarmReconcileInfoV2" is null"
Occurs immediately after upgrading Spectrum Data Publisher and restoring the old configuration folder
STEPS:
Step 1․ VERIFY CONFIGURATION FILE
Path: SpectrumDataPublisher/config/DOIConfig․xml
EXPECTED: The DOIConfig․xml file is missing the AlarmReconcileInfoV2 block ․
Step 2․ RESTORE CONFIGURATION FILE
Restore the DOIConfig.xml file updated during the upgrade (before the old configuration was copied in). Verify the following configuration block is present in the file.
<AlarmReconcileInfoV2> <AlarmGetV2Path>oipublic/aoanalytics/alarms/alarms_all/lite</AlarmGetV2Path> <QueryParam>status: NEW OR status: UPDATED</QueryParam> <QueryParam>product: Spectrum</QueryParam> <MaxBatchSize>100</MaxBatchSize> </AlarmReconcileInfoV2>
EXPECTED: The DOIConfig․xml file now contains the required parameters ․
NOTE: Alternatively, install the connector new and then update the config files with the necessary settings manually instead of overwriting them ․
Step 3․ START THE SERVICE
Command: ․/run․sh start
EXPECTED: Service starts successfully without null pointer exceptions ․