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

book

Article ID: 50593

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On

Issue/Introduction

Description:

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.

Solution:

The JBoss server.log shows the following messages:

2011-01-14 05:25:41,559 DEBUG [com.ca.siteminder.uiagent.UIAgent] 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 com.ca.siteminder.xps.XPSException: 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.

Environment

Release:
Component: SMAUI