Getting a NullPointerException when editing Policy Store data in the Administrative UI?

Document ID : KB000050593
Last Modified Date : 14/02/2018
Show Technical Document Details


When trying to modify a policy (for example add a rule), the task fails with the following message:

Fatal: Failed to execute ModifyPolicyEvent. ERROR MESSAGE: NullPointerException:null

The policy store was recently imported.


The JBoss server.log shows the following messages:

2011-01-14 05:25:41,559 DEBUG [] Could not handle API exception [facility=0 severity=3 reason=0 status=9 message=Corrupt buffer]
"Corrupt buffer" generally indicates a corruption in the policy store.

This message is followed by an "Error parsing file":
2011-01-14 05:25:41,559 ERROR [ims.llsdk6.BaseRelationship] com.netegrity.llsdk6.imsapi.exception.SmApiWrappedException Error parsing file
Caused by: org.xml.sax.SAXParseException: Invalid byte 1 of 1-byte UTF-8 sequence.

The charset of the Policy Store may not match the one used by the OS. Here above, SiteMinder is expecting UTF-8.
You should check what charset in Policy Store was saved with on the source OS.
If it differs from the target OS, you should convert the charset, using for example iconv tool.