diff options
author | 2018-03-26 12:21:43 +0530 | |
---|---|---|
committer | 2018-03-26 12:21:43 +0530 | |
commit | 16520cde5a149f6b164b433fa06f1a5aa3b8b7e1 (patch) | |
tree | 1a7f29641a6dd39f2b07ebef3fac3a8176e8e35f /wfenginemgrservice/src/main/java/org/onap/workflow/externalservice | |
parent | 9e8d8800f6e6ea566b60589a3b6ef1f7af9bf8f6 (diff) |
Critical Bug fixes wfenginemgrservice
common/RestClient.java
file name:RestClient.java
Change-Id: Ia6f990c5ce3fd0b4c49bb09ed4a126d88e9b0dfb
Issue-ID: VFC-845
Signed-off-by: ajay priyadarshi <ajay.priyadarshi@ril.com>
Diffstat (limited to 'wfenginemgrservice/src/main/java/org/onap/workflow/externalservice')
-rw-r--r-- | wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java index 3af7f66..30835b9 100644 --- a/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java +++ b/wfenginemgrservice/src/main/java/org/onap/workflow/externalservice/service/activitiservice/ActivitiServiceConsumer.java @@ -20,7 +20,6 @@ import java.io.InputStream; import javax.ws.rs.core.Response;
-import org.apache.http.client.ClientProtocolException;
import org.onap.workflow.common.Config;
import org.onap.workflow.common.EnumModuleUrl;
import org.onap.workflow.common.RestClient;
@@ -58,6 +57,7 @@ public class ActivitiServiceConsumer { try {
res = RestClient.post(null, null, Constants.DEPLOY_BPMNFILE_URL + "/" + deploymentId);
} catch (Exception e) {
+ logger.error("Exception: ",e);
return null;
}
@@ -69,13 +69,14 @@ public class ActivitiServiceConsumer { try {
res = RestClient.post(null, null, Constants.ACITIVI_START_INSTANCE_URL, request);
} catch (Exception e) {
+ logger.error("Exception: ",e);
return null;
}
return res;
}
public static ActivitiDeployResponse deploybpmnfile(InputStream ins, String filename)
- throws ClientProtocolException, IOException {
+ throws IOException {
try {
return deployPackage2Activiti(ins, filename);
} finally {
@@ -84,7 +85,7 @@ public class ActivitiServiceConsumer { }
private static ActivitiDeployResponse deployPackage2Activiti(InputStream ins, String filename)
- throws ClientProtocolException, IOException {
+ throws IOException {
String ip = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrIp();
int port = Config.getWorkflowAppConfig().getMsbClientConfig().getMsbSvrPort();
RestResponse res = RestClient.post(ip, port, DEPLOY_BPMNFILE_URL,
|