IBM Support

NullPointerException when importing filters via Object Manager

Troubleshooting


Problem

Using a properly created op-config.xml file to import filters causes a Null Pointer Exception (NPE). This loader file can load fine in other environments.

Symptom

The message seen in the ObjectManager.log is:
2020-12-21 12:10:59,583 INFO [util.Utils] -  (Line: 12 Column: 78): LOADER EXCEPTION : 'An unexpected exception occurred.'null
2020-12-21 12:10:59,583 INFO [util.Utils] - (23, 27) EXCEPTION : ''null
2020-12-21 12:10:59,583 INFO [util.Utils] - (23, 27) EXCEPTION : ''null

Loading Filters ...
Loader EXCEPTION (Line: 12 Column: 78): An unexpected exception occurred.
java.lang.NullPointerException
	at com.openpages.apps.common.tools.ObjectManager.metadata.querydefinition.QueryDefinitionHandler.getOptions(QueryDefinitionHandler.java:361)
	at com.openpages.apps.common.tools.ObjectManager.metadata.querydefinition.ConditionsHandler.readXML(ConditionsHandler.java:108)
	at com.openpages.apps.common.tools.ObjectManager.common.AbstractObjectManagerHandler.readElement(AbstractObjectManagerHandler.java:339)
	at com.openpages.apps.common.tools.ObjectManager.ConfigurationManager.startElement(ConfigurationManager.java:9015)
If you look at the <prefix>-op-config.xml and you review the ObjectManager.log output, review where the LOADER EXCEPTION occurred. In this example, it's (Line: 12 Column: 78) is:
 
<conditions contentType="<object type>" logicalOperator="and">
The above is the first line in the <criteriaList> for the filter.

Cause

The ObjectManager.properties file has a parameter set to false which should be set to true.

Resolving The Problem

  1. Log on to the OpenPages® with Watson server
  2. Navigate to <op_home>/bin
  3. Edit the ObjectManager.properties file
  4. Locate this parameter: configuration.manager.validation
  5. Make sure the value = true
  6. Save the file
  7. Perform the import again

Document Location

Worldwide

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSFUEU","label":"IBM OpenPages with Watson"},"ARM Category":[{"code":"a8m50000000ClBsAAK","label":"Command Line Tools->ObjectManager"}],"ARM Case Number":"TS004711706","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.2.0"}]

Product Synonym

OP

Document Information

Modified date:
22 December 2020

UID

ibm16391624