Community in read only mode June 18 & 19
This community will be set in READ ONLY mode for a while on Tuesday June 18 into Wednesday June 19 while we import content and users from our Micro Focus Forums community site. MORE INFORMATION
mike_se Contributor.

PPM Support Tip: Define all Fields in WS code when using UI Rules

A new KCS article was created: KM00521102.



When a Request Type has User Interface (UI) Rules, define all Fields used in the UI Rule when using Web Services or will encounter java.lang.NullPointerException

Web Services issue - Fields used in UI Rule need to be defined



Error seen when trying to create a Request with a specific Request Type:

org.apache.axis2.AxisFault: An error occurred when creating a request-java.lang.NullPointerException
at org.apache.axis2.description.OutInAxisOperationClient.send(
at org.apache.axis2.description.OutInAxisOperationClient.execute(
at basePack.JavaAgent.createRequest(Unknown Source)
at basePack.JavaAgent.NotesMain(Unknown Source)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at Source)



In the Request Type, there was a User Interface (UI) Rule which referred to a Field's Token.
In the XML content for the Web Service call, this Field Value had not been defined.
When the UI Rule was called after the Request was created, the NullPointerException (NPE) was encountered.

Defect QCCR1L52572.  
The NPE should be caught and the User told the specific field causing the error.

Workaround: Add the value of the Field in the code calling the Web Service.

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”
Labels (1)
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.