From af80687d62dee96132f69aac572ed5f400ff103e Mon Sep 17 00:00:00 2001 From: esobmar Date: Tue, 25 Sep 2018 10:38:31 +0100 Subject: Fix IngressRoute Vulnerabilities Change-Id: I58ebfec4e3e72659ba36b5196e3479f4116e7ee8 Signed-off-by: Mariusz Sobucki Issue-ID: DMAAP-775 --- .../datarouter/provisioning/beans/IngressRoute.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'datarouter-prov/src/main/java/org/onap') diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/IngressRoute.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/IngressRoute.java index a4ed60a2..6b390c43 100644 --- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/IngressRoute.java +++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/beans/IngressRoute.java @@ -99,7 +99,7 @@ public class IngressRoute extends NodeClass implements Comparable } db.release(conn); } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } return set; } @@ -137,7 +137,7 @@ public class IngressRoute extends NodeClass implements Comparable } db.release(conn); } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } return rv; } @@ -172,14 +172,14 @@ public class IngressRoute extends NodeClass implements Comparable ps.close(); db.release(conn); } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } finally { try { if(ps!=null) { ps.close(); } } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } } return v; @@ -212,7 +212,7 @@ public class IngressRoute extends NodeClass implements Comparable } db.release(conn); } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } return rv; } @@ -397,7 +397,7 @@ public class IngressRoute extends NodeClass implements Comparable } db.release(conn); } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } return set; } @@ -425,14 +425,14 @@ public class IngressRoute extends NodeClass implements Comparable } catch (SQLException e) { rv = false; intlogger.warn("PROV0007 doDelete: " + e.getMessage()); - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } finally { try { if(ps!=null) { ps.close(); } } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } } return rv; @@ -468,14 +468,14 @@ public class IngressRoute extends NodeClass implements Comparable rv = true; } catch (SQLException e) { intlogger.warn("PROV0005 doInsert: " + e.getMessage()); - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } finally { try { if(ps!=null) { ps.close(); } } catch (SQLException e) { - e.printStackTrace(); + intlogger.error("SQLException " + e.getMessage()); } } return rv; -- cgit 1.2.3-korg