Create operation in ADF REST Web Service Returns NullPointerException for Null Date Values
(Doc ID 2261376.1)
Last updated on OCTOBER 25, 2022
Applies to:
Oracle JDeveloper - Version 12.2.1.0.0 to 12.2.1.0.0 [Release 12c]Information in this document applies to any platform.
Symptoms
In ADF 12.2.1.0.0 when a Create operation (POST REST request) in ADF REST Web Service is called with null values for Date columns, a NullPointerException is thrown.
For example, Create operation with the following payload:
{
"CommissionPct" : null,
"DepartmentId" : <ID>,
"Email" : "EMAIL",
"EmployeeId" : <ID>,
"FirstName" : "<NAME>",
"HireDate" : null,
"JobId" : "<ID>",
"LastName" : "<LASTNAME>",
"ManagerId" : <ID>,
"PhoneNumber" : "<NUMBER>",
"Salary" : <NUMBER>
}
The HireDate value is passed as null, as the attribute is not required.
Response is:
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |