*/\r
package org.onap.holmes.rulemgt.bolt.enginebolt;\r
\r
+import com.alibaba.fastjson.JSON;\r
+import com.alibaba.fastjson.JSONObject;\r
import javax.inject.Inject;\r
import lombok.extern.slf4j.Slf4j;\r
-import net.sf.json.JSONObject;\r
import org.apache.http.HttpResponse;\r
import org.jvnet.hk2.annotations.Service;\r
import org.onap.holmes.common.utils.HttpsUtils;\r
if (response.getStatusLine().getStatusCode() == RuleMgtConstant.RESPONSE_STATUS_OK) {\r
log.info("Succeeded in calling the rule deployment RESTful API from the engine management service.");\r
try {\r
- JSONObject json = JSONObject.fromObject(HttpsUtils.extractResponseEntity(response));\r
+ // JSONObject json = JSONObject.fromObject(HttpsUtils.extractResponseEntity(response));\r
+ JSONObject json= JSON.parseObject(HttpsUtils.extractResponseEntity(response));\r
return json.get(RuleMgtConstant.PACKAGE).toString();\r
} catch (Exception e) {\r
throw new CorrelationException("Failed to parse the value returned by the engine management service.", e);\r