IBM Support

Sending Email Notifications fails with java.lang.NullPointerException

Troubleshooting


Problem

IBM FileNet Process Engine (PE) intermittently throws Null Pointer Exceptions when sending email notifications.

Symptom

The pesvr_system.log and pesvr_trace.log (with the email notification flag enabled) will contain error stack like:

2014/02/04 15:43:17.293+0400 1944:vwnotify Reg#1 [Error] FNRPE2131090405E vwnotify: Error processing notification; Exception: Unexpected exception -- see chained exception
   at filenet.jpe.database.DbTransaction.throwTranException(DbTransaction.java:439)
2014/02/04 15:43:17.293+0400 1944:vwnotify Reg#1 [Trace] NOTIFY, Error processing notification

   at filenet.jpe.database.DbTransaction.HandleTransactionError(DbTransaction.java:409)
   at filenet.jpe.server.log.VwNotifyDaemon.doProcessNotifications(VwNotifyDaemon.java:380)
   at filenet.jpe.server.log.VwNotifyDaemon.execute(VwNotifyDaemon.java:518)
   at filenet.jpe.server.common.ThreadManager$WorkerThread.run(ThreadManager.java:247)
   at filenet.jpe.server.common.ThreadManager$DaemonThread.run(ThreadManager.java:153)
Caused by: java.lang.NullPointerException
   at filenet.jpe.server.log.NotificationClass.getFieldValue(NotificationClass.java:977)
   at filenet.jpe.server.log.NotificationClass.setTagValues(NotificationClass.java:416)
   at filenet.jpe.server.log.NotificationClass.sendMessageToUser(NotificationClass.java:551)
   at filenet.jpe.server.log.NotificationClass.execute(NotificationClass.java:1734)
   at filenet.jpe.server.log.VwNotifyDaemon.doNotify(VwNotifyDaemon.java:67)
   at filenet.jpe.server.log.VwNotifyDaemon.doProcessNotifications(VwNotifyDaemon.java:314)
   ... 3 more

Cause

This has been identified as a product defect under APAR PJ42086

Environment

Filenet Content Engine (CE) 5.2.0

Diagnosing The Problem

Email notifications will not be sent. The pesvr_system.log will contain an error similar to:

2014/02/04 15:43:17.293+0400 1944:vwnotify Reg#1 [Error] FNRPE2131090405E vwnotify: Error processing notification; Exception: Unexpected exception -- see chained exception
    at filenet.jpe.database.DbTransaction.throwTranException(DbTransaction.java:439)
.
.
.
Caused by: java.lang.NullPointerException
    at filenet.jpe.server.log.NotificationClass.getFieldValue(NotificationClass.java:977)

Resolving The Problem

This issue is addressed by APAR PJ42086.

RECOMMENDATION:
Upgrade to 5.2.0.5-P8CPE-FP005 or 5.2.1.0-P8CPE or higher.

[{"Product":{"code":"SSNW2F","label":"FileNet P8 Platform"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Process Engine","Platform":[{"code":"PF033","label":"Windows"}],"Version":"5.2;5.2.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 June 2018

UID

swg21982188