SAP Knowledge Base Article - Public

3487630 - EC Alerts and Notifications job is failing due to the error "Cannot invoke "java.util.Map.get(Object)" because "numAlertsMap" is null" - Employee Central

Symptom

EC Alerts and Notifications job is failing due to the following error:

"Error occurred. java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "numAlertsMap" is null"

Environment

SAP SuccessFactors Employee Central

Reproducing the Issue

  1. Run EC Alerts and Notifications job either once or in a recurring basis;
  2. Check it failed;
  3. Upon checking job results, the following error message can be found:  "Error occurred. java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "numAlertsMap" is null".

Cause

  • Business Rule name fetched in job execution exceeds the maximum length of 100 characters (logs example: AttributeEngine: indexed value not within specified range;checkCesu8StringColumn(): max length (100) violated on pos 0);
  • The job ran during a window maintenance (OR a temporary connection malfunction) and the connection timed out causing the job to fail (logs example: Caused by: java.net.SocketTimeoutException: Read timed out).
    • Note: the logs may vary.

Resolution

  • Identify the Business Rule that is being triggered by the job and check the name - if exceeds the maximum length (100 characters), adjust it. 
    • To check which rules have been picked up by the job, navigate to Scheduled Job Manager > Job Monitor > find the respective job that is failing > click on "View Details".
  • Check the job schedule and try to change it for a different window

Connection malfunctioning that is not within the maintenance window use to be temporary, and after connection being restored the job run as usually.

If the check was done and no issue in the rule's name was found of the issues persists after connection checks, open a ticket for LOD-SF-EC-ALR component to investigate the connection issue or other possible causes.

See Also

2462997 - EC Alerts and Notification Job Failing

Keywords

Error occurred. java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)" because "numAlertsMap" is null, SQLException: SAP DBTech JDBC, inserted value too large for column: TrexUpdate failed on table, ALERT_ENTRY, with error: AttributeEngine: indexed value not within specified range; max length (100) violated on pos 0, ec alerts and notifications, fail, failing, job failing, job fail, job, provisioning, scheduled job manager, view details, job monitor, employee central, "numAlertsMap" is null , KBA , LOD-SF-EC-ALR , Alerts & Notifications (saveAlert - EC Core only) , Problem

Product

SAP SuccessFactors Employee Central all versions