My Oracle Support Banner

Null Pointer When Creating Business Query With Curl (Doc ID 2268348.1)

Last updated on FEBRUARY 03, 2019

Applies to:

Oracle Process Cloud Service - Version 15.2.3 to 15.2.3
Information in this document applies to any platform.


When sending a curl command to create a business query through the API a 500 Response and the following error:

  "type": "",
  "title": "Null Pointer exception.",
  "detail": "A null pointer exception is thrown while accessing resource : analytics/businessquery-metadata/businessqueries Fix: verify server log to find the problem cause.",
  "instance": "",
  "status": "500",
  "o:errorCode": "76048",
  "o:errorDetails": []

This is the curl command I use:
curl -v \
-u ':' \
-H "Content-Type:application/json" \
-H "Accept: application/json" \
-d {"applicationName":"Recruiting","dataSeries":[{"aggregateOperation":"COUNT","measureColumn":"*"}],"dataSource":"ACTIVITY","description":"A test query added by the RCS_OCS testing suite PBusinessQueriesSpec","filter":{"branches":[],"filterEntries":[],"filterType":"ALL"},"groups":["Activity End Time"],"lastNDays":30,"legend":"ACTTIVITY_LABEL","properties":[{"name":"chartType","value":"bar"}],"queryType":"GROUP","timeGroupings":{},"title":"PBusinessQueriesSpec_businessQuery"} \


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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.