Source:
<code>protected AsyncQueryResult processQuery() throws URISyntaxException, NoHttpResponseException { ElideResponse response = null; Integer recCount = null; log.debug("AsyncQuery Object from request: {}", queryObj); if (queryObj.getQueryType().equals(QueryType.JSONAPI_V1_0)) { MultivaluedMap<String, String> queryParams = getQueryParams(queryObj.getQuery()); log.debug("Extracted QueryParams from AsyncQuery Object: {}", queryParams); response = elide.get(getPath(queryObj.getQuery()), queryParams, user, apiVersion); log.debug("JSONAPI_V1_0 getResponseCode: {}, JSONAPI_V1_0 getBody: {}", response.getResponseCode(), response.getBody()); if (response.getResponseCode() == 200) { recCount = calculateRecordsJSON(response.getBody()); } } else if (queryObj.getQueryType().equals(QueryType.GRAPHQL_V1_0)) { response = runner.run(queryObj.getQuery(), user); log.debug("GRAPHQL_V1_0 getResponseCode: {}, GRAPHQL_V1_0 getBody: {}", response.getResponseCode(), response.getBody()); if (response.getResponseCode() == 200) { String tableName = getTableNameFromQuery(queryObj.getQuery()); recCount = calculateRecordsGRAPHQL(response.getBody(), tableName); } } if (response == null) { throw new NoHttpResponseException("Response for request returned as null"); } queryResultObj = new AsyncQueryResult(); queryResultObj.setHttpStatus(response.getResponseCode()); queryResultObj.setResponseBody(response.getBody()); queryResultObj.setContentLength(response.getBody().length()); queryResultObj.setRecordCount(recCount); queryResultObj.setResultType(ResultType.EMBEDDED); queryResultObj.setCompletedOn(new Date()); <START> resultStorageEngine = new DefaultResultStorageEngine(); <END> resultStorageEngine.storeResults(UUID.fromString(queryObj.getId()), response.getBody()); return queryResultObj; }</code><technical_language>initialize resultStorageEngine. Please refer, initialize AsyncQueryDAO in Standalone Spring. do same. <LINK_1> <LINK_0></technical_language>

Target:
protected AsyncQueryResult processQuery() throws URISyntaxException, NoHttpResponseException { ElideResponse response = null; Integer recCount = null; log.debug("AsyncQuery Object from request: {}", queryObj); if (queryObj.getQueryType().equals(QueryType.JSONAPI_V1_0)) { MultivaluedMap<String, String> queryParams = getQueryParams(queryObj.getQuery()); log.debug("Extracted QueryParams from AsyncQuery Object: {}", queryParams); response = elide.get(getPath(queryObj.getQuery()), queryParams, user, apiVersion); log.debug("JSONAPI_V1_0 getResponseCode: {}, JSONAPI_V1_0 getBody: {}", response.getResponseCode(), response.getBody()); if (response.getResponseCode() == 200) { recCount = calculateRecordsJSON(response.getBody()); } } else if (queryObj.getQueryType().equals(QueryType.GRAPHQL_V1_0)) { response = runner.run(queryObj.getQuery(), user); log.debug("GRAPHQL_V1_0 getResponseCode: {}, GRAPHQL_V1_0 getBody: {}", response.getResponseCode(), response.getBody()); if (response.getResponseCode() == 200) { String tableName = getTableNameFromQuery(queryObj.getQuery()); recCount = calculateRecordsGRAPHQL(response.getBody(), tableName); } } if (response == null) { throw new NoHttpResponseException("Response for request returned as null"); } queryResultObj = new AsyncQueryResult(); queryResultObj.setHttpStatus(response.getResponseCode()); queryResultObj.setResponseBody(response.getBody()); queryResultObj.setContentLength(response.getBody().length()); queryResultObj.setRecordCount(recCount); queryResultObj.setResultType(ResultType.EMBEDDED); queryResultObj.setCompletedOn(new Date()); String jsonToCSV = convertJsonToCSV(response.getBody()); resultStorageEngine = new DefaultResultStorageEngine(); if (queryObj.getResultFormatType() == ResultFormatType.CSV) { resultStorageEngine.storeResults(UUID.fromString(queryObj.getId()), jsonToCSV); } else { resultStorageEngine.storeResults(UUID.fromString(queryObj.getId()), response.getBody()); } return queryResultObj; }