From e25f2025171ba6f9f2f3fddc76cee021bf86c9d1 Mon Sep 17 00:00:00 2001 From: Surendra Reddy Katam Date: Wed, 18 Apr 2018 20:43:19 +0530 Subject: Sonar critical issues Either log or rethrow this exception Sonar Link: https://sonar.onap.org/project/issues?assignees=surendraReddy&id=org.onap.dmaap.messagerouter.msgrtr%3Amsgrtr&open=AV4-Vahb32hFUzlqc5uC&resolved=false&severities=CRITICAL Location: src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java Line No-74 Change-Id: I624da3f9a741d243595a0f7da9593ddbb64b4e43 Issue-ID: DMAAP-430 Signed-off-by: Surendra Reddy Katam --- .../att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java index 54a9bc6..c8172a9 100644 --- a/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java +++ b/src/main/java/com/att/nsa/cambria/resources/streamReaders/CambriaJsonStreamReader.java @@ -72,6 +72,7 @@ public class CambriaJsonStreamReader implements reader { throw new CambriaApiException(HttpServletResponse.SC_BAD_REQUEST, "Expecting an array or an object."); } } catch (JSONException e) { + Log.error(e); throw new CambriaApiException(HttpServletResponse.SC_BAD_REQUEST, e.getMessage()); } } -- cgit 1.2.3-korg