diff options
author | Sudarshan Kumar <sudars19@in.ibm.com> | 2019-02-13 13:49:24 +0530 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-02-20 15:05:26 +0000 |
commit | 054810c72f2e33488118796388be809b32357104 (patch) | |
tree | cbac31127b73c0a038c2177c725f3ece2b05f9f6 /appc-inbound | |
parent | b4e87419be03d2868a3860043f490977f2027fc2 (diff) |
Vulnerabilities Fix - XResponseProcessor.java
Removed printStacktrace and specified specific exception
Issue-ID: APPC-1399
Change-Id: I44c938cdd00a88ff76dfa36dbe49942f91546bb2
Signed-off-by: Sudarshan Kumar <sudars19@in.ibm.com>
Diffstat (limited to 'appc-inbound')
-rw-r--r-- | appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/xinterface/XResponseProcessor.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/xinterface/XResponseProcessor.java b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/xinterface/XResponseProcessor.java index 5d0154cdf..7f64863b9 100644 --- a/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/xinterface/XResponseProcessor.java +++ b/appc-inbound/appc-design-services/provider/src/main/java/org/onap/appc/design/xinterface/XResponseProcessor.java @@ -5,9 +5,11 @@ * Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Copyright (C) 2017 Amdocs - * ============================================================================= + * ================================================================================ * Modifications Copyright (C) 2019 Ericsson - * ============================================================================= + * ================================================================================ + * Modifications Copyright (c) 2019 IBM + * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -36,6 +38,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; public class XResponseProcessor { private final EELFLogger log = EELFManager.getInstance().getLogger(XInterfaceService.class); + private static final String EXCEPTION_WHILE_RECEIVING_DATA = "Exception occured while receiving data"; Dme2Client dme2Client; public static XResponseProcessor getInstance() { @@ -90,7 +93,7 @@ public class XResponseProcessor { if (instarResponse == null || instarResponse.length() < 0) throw new Exception("No Data received from Instar for this action " + action); } catch (Exception e) { - e.printStackTrace(); + log.error(EXCEPTION_WHILE_RECEIVING_DATA, e); throw e; } return instarResponse; |