REST query on a layer with data stored in an Oracle database produces unexpected results when the query string is invalid and the output format is JSON. The beginning of a valid response is generated instead of an error message.
This issue is not reproducible in the current release of the software. Contact ESRI Technical Support (for users in the United States) or ESRI distributor (for users outside the United States) to resolve this issue, if the issue persists.