You are currently reviewing an older revision of this page.

DRAFT KB-XXXX NullPointerException when using Post System Event to Feed Smart Service

Symptoms

The Post System Event to Feed smart service fails generating a system alert. In the app server log, the following error is printed:

03:25:20,338 INFO [stdout] (ajp-/0.0.0.0:8009-18) 2018-07-10 03:25:20,336 [ajp-/0.0.0.0:8009-18] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=268456448, classname=com.appiancorp.process.runtime.activities.PostSystemEventToFeedSmartService4 03:25:20,338 INFO [stdout] (ajp-/0.0.0.0:8009-18) com.appiancorp.suiteapi.process.exceptions.SmartServiceException: userMsg[error.eventNotSent.userMsg=Internal error. The system event was not sent.] alertMsg[error.eventNotSent.alertMsg=Internal error (java.lang.NullPointerException). The system event was not sent.]

...

03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) Caused by: java.lang.NullPointerException
03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) at com.appiancorp.security.user.User.<init>(User.java:49)
03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) at com.appiancorp.security.audit.AuditInfo.initForCreate(AuditInfo.java:62)
03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) at com.appiancorp.tempo.rdbms.RdbmsFeedSourceImpl.bindEntryDataFromKToRdbms(RdbmsFeedSourceImpl.java:1499)
03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) at com.appiancorp.tempo.rdbms.RdbmsFeedSourceImpl.addEntry(RdbmsFeedSourceImpl.java:546)
03:25:20,342 INFO [stdout] (ajp-/0.0.0.0:8009-18) at com.appiancorp.process.runtime.activities.FeedHelper.postToFeed(FeedHelper.java:63)

Cause

The username of the user configured in the smart service is configured differently in the primary database and the Appian engines. This difference causes a NullPointerException when attempting to invoke the smart service.

Action

Compare the username defined in the primary database for the user, and the ones referenced by the Appian engines. If these are different, update the component that has the incorrect username such that both usernames are the same. If you require assistance with this step, reach out to Appian Technical Support for assistance.

Affected Versions

This article applies to all versions of Appian.

Last Reviewed: July 2018