Report Manager Stops processing events with java.lang.NumberFormatException
search cancel

Report Manager Stops processing events with java.lang.NumberFormatException

book

Article ID: 190137

calendar_today

Updated On:

Products

CA Spectrum CA eHealth

Issue/Introduction

After upgrading to Spectrum 10.4.1 Report Manager event processing stopped with the following exception being reported in the catalina.out file:

Apr 13, 2020 15:36:45.817 (SRM/LandscapeManager/LandscapeThread_0) (SRM_Events) - (ERROR) - Error while processing events for landscape.

Caused by: java.lang.NumberFormatException: null
    at java.lang.Integer.parseInt(Integer.java:542)
    at java.lang.Integer.parseInt(Integer.java:615)
    at com.aprisma.spectrum.app.repmgr.common.ColumnValueTruncator.truncateStr(ColumnValueTruncator.java:16)
    at com.aprisma.spectrum.app.repmgr.dc.db.dao.jdbc.ModelManagerDAO.addModelRecord(ModelManagerDAO.java:225)
    at com.aprisma.spectrum.app.repmgr.dc.model.ModelManager.addModelRecord(ModelManager.java:926)
    at com.aprisma.spectrum.app.repmgr.dc.model.ModelManager.processNewModel(ModelManager.java:821)
    at com.aprisma.spectrum.app.repmgr.dc.model.ModelManager.obtainModelKey(ModelManager.java:538)
    at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.processEvent(EventPoller.java:1368)
    at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.processEvents(EventPoller.java:1299)
    at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.doHandleEvents(EventPoller.java:921)
    at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.handleEvents(EventPoller.java:801)
    at com.aprisma.spectrum.app.repmgr.dc.event.EventPoller.initEventHandling(EventPoller.java:747)
    at com.aprisma.spectrum.app.repmgr.dc.landscape.LandscapeManager.setupEventPoller(LandscapeManager.java:231)
    at com.aprisma.spectrum.app.repmgr.dc.landscape.LandscapeManager.access$100(LandscapeManager.java:39)
    at com.aprisma.spectrum.app.repmgr.dc.landscape.LandscapeManager$LandscapeThread.run(LandscapeManager.java:100)

Environment

Release : 10.4.1

Component : Spectrum Core / SpectroSERVER

Cause

One of the following parameters was missing from the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/web.xml file:

<context-param>
  <param-name>com.aprisma.reportmanager.MaxLength255</param-name>
  <param-value>85</param-value>
  <description>
    The maximum length of a column value with column size as 255 that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>

<context-param>
  <param-name>com.aprisma.reportmanager.MaxLength4000</param-name>
  <param-value>1330</param-value>
  <description>
    The maximum length of a column value with column size as 4000 that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>

<context-param>
  <param-name>com.aprisma.reportmanager.AlarmTitleLength</param-name>
  <param-value>4000</param-value>
  <description>
    The maximum length of alarm title that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>


 

Resolution

Ensure that all of the below entries are in the $SPECROOT/tomcat/webapps/spectrum/WEB-INF/web.xml file:

<context-param>
  <param-name>com.aprisma.reportmanager.MaxLength255</param-name>
  <param-value>85</param-value>
  <description>
    The maximum length of a column value with column size as 255 that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>

<context-param>
  <param-name>com.aprisma.reportmanager.MaxLength4000</param-name>
  <param-value>1330</param-value>
  <description>
    The maximum length of a column value with column size as 4000 that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>

<context-param>
  <param-name>com.aprisma.reportmanager.AlarmTitleLength</param-name>
  <param-value>4000</param-value>
  <description>
    The maximum length of alarm title that can processed by report manager.
    Any string more than this value will Truncated.
  </description>
</context-param>

If any of the above entries are missing from the web.xml file, add the entries to the file and restart Spectrum tomcat.