NullPointerException when trying to save User Preferences in IDMProv

  • 7017986
  • 25-Aug-2016
  • 25-Aug-2016

Environment


NetIQ Identity Manager 4.5
NetIQ Identity Manager Roles Based Provisioning Module

Situation

When customizing the column options in IDMProv to select what options will be displayed in the Task Notification Display, the following error is displayed:
“Can not save the updated user preferences. Please contact your System Administrator”.

This is expected behaviour if the user doesn’t have enough rights on the srvprvUserPref and srvprvUserPrefsPlus attributes. In this case, there is a different problem. In the catalina.out, the following error occurs when there is an attempt to save the preferences:

2016-06-09 10:15:22,041 [http-bio-8180-exec-61] ERROR com.novell.srvprv.impl.vdata.model.VirtualDataModel- [RBPM] Cannot save user preferences. Please contact your System Administrator.
java.lang.NullPointerException
                at com.novell.srvprv.impl.vdata.model.VirtualDataModel.saveUserPrefs(VirtualDataModel.java:1498)
                at com.novell.srvprv.impl.vdata.model.VirtualDataModel.saveMyEntityUserPrefsPlus(VirtualDataModel.java:1484)
                at com.novell.idm.dashboard.ajaxservice.DashboardBridge.setUserConfigProps(DashboardBridge.java:374)
...

Resolution


This problem will occur if the attribute srvprvUserPrefsPlus is not defined in the default entity on the DAL definition.

RBPM tries to read the default entity from the DAL with all of its attributes. Then it tries to get particular attribute which needs to be updated, in this case srvprvUserPrefsPlus. It will fail with this error if the attribute is not present.

To resolve the issue either mark User as the default entity or add the attributes srvprvUserPrefsPlus and srvprvUserPrefs to the default entity defined in the DAL.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.