Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

BPM REST API Error: "The XML data is invalid" when starting a process using JSON params

M3May 24 2025

Hello,

I'm working with Oracle BPM 12c (12.2.1.0.0) and trying to start a BPM process instance using the REST API:

POST URL: http://127.0.0.1:7101/bpm/api/2.0/processes
Request body (JSON):

{
"processDefId": "default/EmployeesRegBpm!1.0*soa_ff424228-b729-406b-a732-dace9f027488/Process",
"serviceName": "Process.service",
"operation": "start",
"action": "Submit",
"params": {
"empDetails": {
"name": "Abc",
"dept": "IT",
"position": "Developer",
"salary": 2000.0
}
}
}

But I get the following error response:

500 Internal Server Error
The XML data is invalid.
There is an error while parsing the XML data.

And in the Jdeveloper log:

java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:50)
at com.collaxa.cube.xml.dom.DOMUtil.createInMemoryDocument(DOMUtil.java:154)
at oracle.bpm.rest.processdef.ProcessInstancesResource.postMessage(ProcessInstancesResource.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Please advise.

Comments
Post Details
Added on May 24 2025
0 comments
98 views