You are currently reviewing an older revision of this page.

DRAFT KB-XXXX Current user activity is blank even after clearing the search indices

Symptom

When the current user activity record the admin console is blank and the following error is seen in the application server log:

YYYY-MM-DD HH:MM:SS.MMM INFO [ajp-nio-8009-exec-2] org.apache.catalina.core.StandardWrapperValve.invoke YYYY-MM-DD HH:MM:SS,MMM [ajp-nio-8009-exec-2] WARN com.appiancorp.security.auth.activity.UserActivityFilter - Could not record user activity: secCtx=BPMSVC7, authDetails=AuthenticationDetails[ts=YYYY-MM-DD HH:MM:SS.MMM, entryPoint=PORTAL, clientIpAddress=XX.XX.XXX.XX, clientUserAgent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.92 Safari/537.36] -- java.lang.NullPointerException

Cause

This is due to the fact the user is using an Apache version earlier than 2.4 and the mod_jk connector earlier than 1.2.42.

 

Workaround

  1. Update the mod_jk connector to 1.2.42 and Apache to 2.4
  2. Or add the following lines to the bottom of the httpd.conf file 
      SetEnvIf Server_Addr "(.*)" AJP_LOCAL_ADDR=$1
      JkEnvVar AJP_LOCAL_ADDR

Then restart Apache.