When making a WebService call from workflow using a correct XML the below error is see in UI. The error does not happen all the times but sometimes. The webservice is called inside a loop from a workflowIGL version 702 P07
Error in Workflow UI - Error History:
<?xml version="1.0" encoding="UTF-8"?><createChangeRequest><Request type="fulfillment"/></createChangeRequest>
The XML sent is:
<Changes><Notes>Bulk Account Processing</Notes><AccountChange><Operation>Create</Operation><User>112233</User><BusinessSource>NA.ABC.COM</BusinessSource><Parameters><Parameter><Name>ACC_TYPE</Name><Value>CreateGeneric</Value></Parameter><Parameter><Name>ACCOUNT_NAME</Name><Value>sbthrgen</Value></Parameter><Parameter><Name>STR1</Name><Value>OU=Users,OU=ABC,OU=AM,DC=na,DC=abc,DC=com</Value></Parameter><Parameter><Name>STR2</Name><Value>CN=Domain Users,CN=Users,DC=na,DC=abc,DC=com</Value></Parameter><Parameter><Name>NUM1</Name><Value></Value></Parameter><Parameter><Name>NUM2</Name><Value></Value></Parameter></Parameters></AccountChange></Changes>
Below is the error seen in log:
10/05/2018 13:49:01.057 INFO (Worker_actionq#Script Queue - Normal#WPDS_40) [com.aveksa.server.workflow.scripts.nodes.RESTWebServic
eNode] Starting of REST Web Service Request.
10/05/2018 13:49:01.520 ERROR (default task-63) [com.aveksa.server.command.CreateChangeRequestCommand] Error updating the change item with account template data
10/05/2018 13:49:01.520 ERROR (default task-63) [com.aveksa.server.command.CreateChangeRequestCommand] Error creating document for '
createChangeRequest'.
java.lang.NullPointerException
at com.aveksa.server.core.account.IllegalAccountNameException.getMessage(IllegalAccountNameException.java:70)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)
at java.lang.Throwable.toString(Throwable.java:480)
at org.apache.log4j.spi.VectorWriter.println(ThrowableInformation.java:97)
at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764)
at java.lang.Throwable.printStackTrace(Throwable.java:655)
at java.lang.Throwable.printStackTrace(Throwable.java:721)
at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:59)
at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:342)
at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:304)
at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:236)
If you take the exact XML and try to send a request using a 3rd party tool, is the change request created successfully or you are getting the same error?