IBM Support

Why do I get "Error 500: java.lang.NoClassDefFoundError: com.micromuse.response.memento.Memento"

Question & Answer


Question

I am getting "Error 500: java.lang.NoClassDefFoundError: com.micromuse.response.memento.Memento"  in my operator view.
The opview executes a java script policy that calls some functions to validate and compare tickets. What causes this error?

Cause

Usually the Memento error can occur if the java script policy has some unusual objects etc. If you don't clean those up, Java will try to convert those objects and fail with that error. This is documented here Known issue with JavaScript and the UI data provider

 

 

Answer

To diagnose this add logging to your policy;

 

Log(CurrentContext());

 

That will print out all the policy variables / objects in memory

 

Usually it is sufficient to log the context at the end of the policy, but you may need to put it in key areas of the script as well.

 

And you can use that to target objects/variables that might need to be deleted, it prints out a list like this;

  i=55.0 (Double),

  Num=55 (Long),

  ReportsPolicyName=LG_JSON_HLO_testingjs (String),

  EventContainer=(EventReaderName=DefaultEventReader) (EventContainer),

,

  MyDetailRecords=org.mozilla.javascript.NativeArray@2726e65e (NativeArray),

  PolicyName=LG_JSON_HLO_testingjs (String),

  ActionNodeName=LG_JSON_HLO_testingjs (String),

  DataItem= KeyField = NT_Physical_Disk_Busy_Critical:Primary:BBBBAAA:nt:0 C::ITM_NT_Physical_Disk####1 (DataItem)) (String)

 

You can tell what the object type is after every variable, things like String/Double/Long are safe but if you start seeing more unusual objects those are worth deleting.

 

 You can see example of cleaning in the NOI policies, such as at the end of <server>_NOI_ConfigureAnalytics.js;

 

delete configure;

delete noiHistory;

delete deleteConfiguration;

delete addQueueItem;

delete resultSet;

delete rollupConfig;

 

[{"Type":"MASTER","Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSSHYH","label":"Tivoli Netcool\/Impact"},"ARM Category":[{"code":"a8m500000008ZvKAAU","label":"Impact-\u003EOperatorView"}],"ARM Case Number":"TS013590234","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Product Synonym

Impact;NOI;Netcool

Document Information

Modified date:
13 July 2023

UID

ibm17011809