IBM Support

Nullpointer error is thrown when using manageProperty API

Question & Answer


Question

How to resolve the nullpointer error when trying to create a property using manageProperty API?

Cause

Category value in the manageProperty  is not passed

Answer

Passing the category Category="yfs" in the mangeProperty API will resolve the issue.

Sample Input XML below:

<Property Action="Manage" BasePropertyName="schedule.order.X" PropertyOverride="BASE" Category="yfs" PropertyValue="test" UserComment="Schedule Order Queue1">
<PropertyMetadata DataType="String" Modifiable="Y" ModifiableAtRuntime="Y" PermissibleValues="" PropertyType="CUSTOM" Scope="GLOBAL" ServerOverride="Y" UserOverride="Y" Category="yfs" JvmType="AGENTSERVER" />
</Property>

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Component":"","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
31 December 2018

UID

ibm10791961