Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Highlighted
mike_se Contributor.
Contributor.
123 views

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(OutInAxisOperation.java:271)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at com.mercury.itg.ws.dm.client.DemandServiceStub.createRequest(DemandServiceStub.java:1086)
at basePack.JavaAgent.createRequest(Unknown Source)
at basePack.JavaAgent.NotesMain(Unknown Source)
at lotus.domino.AgentBase.runNotes(Unknown Source)
at lotus.domino.NotesThread.run(Unknown 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)
0 Likes
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.