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 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.
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.
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”