Unexpected error

HP BSM Connector fails to load policies list into UI with “Error parsing XML” exception

 The issue

On a bright sunny day, without any prior warning (as it usually happens in DEV environment) our HP BSM Connector decided that it doesn’t want to show any policies in the UI and instead to present me with “An unexpected error occurred” kind of message:

Unexpected error
BSM Connector Unexpected error.

After asking for more details this message box was kind enough to reveal some more information:

BSM Connector Unexpected error.- with details
BSM Connector Unexpected error.- with details

Here is the exception in a more readable form:



Cause

When HP BSM Connector policies and XML are mentioned in one sentence the 2 locations that come in mind are

  • %OVDataDir%\datafiles\policies – that’s where all the policies that appear in the HP BSM Connector UI exist
  • %OVDataDir%\datafiles\policymanagement\store – that’s the “main’ store location of the policies.

After having a quick look at the XML files in the first location and not seeing anything interesting I switched  my focus on the second location and here I’ve noticed one “anomaly”. One of the _header.xml files’ size was 0 bytes.

Apparently someone (not excluding myself from the list of suspects) was working on a policy when the machine, BSM Connector is installed on, ran out of space. It is very possible that some warning message was displayed back then or the UI just hang, but since it’s DEV environment no one really cared and just restarted the HP BSM Connector service. The space issue was solved but the _header.xml file, of the policy that has been edited at the time of the crash, became “corrupted”.

Solution

After deleting the .lock and .active files and replacing the _data and _header.xml files of the problematic policy in the %OVDataDir%\datafiles\policymanagement\store with the ones from  %OVDataDir%\datafiles\policies , saying a short prayer to the Lords of policies and hitting the refresh button in the HP BSM Connector UI I was pleased to see the UI showing all of my lovely policies and not the annoying error message.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.