/*-
* ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
try {
s.add(Integer.parseInt(t));
} catch (NumberFormatException x) {
- // ignore
+ LOGGER.debug("Exception while parsing", x);
}
}
this.retryList = s;
try {
Thread.sleep(sleepinterval * 1000L);
} catch (InterruptedException e) {
- // ignore
+ LOGGER.debug("Exception while Thread sleep", e);
}
}
}
LOGGER.debug("Content is: "+toBpelStr);
//Client 4.3+
- CloseableHttpClient client = HttpClients.createDefault();
+ CloseableHttpClient client = null;
//POST
HttpPost post = new HttpPost(bpelUrl);
//Client 4.3+
//Execute & GetResponse
try {
+ client = HttpClients.createDefault();
CloseableHttpResponse response = client.execute(post);
if (response != null) {
lastResponseCode = response.getStatusLine().getStatusCode();
lastResponseCode = 900;
lastResponse = "";
} finally {
- try {
- client.close();
- } catch (IOException e) {
- // ignore
+ if(client != null){
+ try {
+ client.close();
+ } catch (IOException e) {
+ LOGGER.debug("Exception while closing client", e);
+ }
}
}
LOGGER.debug("Response code from BPEL server: "+lastResponseCode);
/*-
* ============LICENSE_START=======================================================
- * OPENECOMP - MSO
+ * ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
* ================================================================================
LOGGER.error (MessageEnum.RA_INIT_NOTIF_EXC, "", "", MsoLogger.ErrorCode.DataError, "Exception - init notification", e1);
}
- LOGGER.debug ("Notification Endpoint URL: " + epUrl.toExternalForm ());
-
+ if(null != epUrl) {
+ LOGGER.debug ("Notification Endpoint URL: " + epUrl.toExternalForm ());
+ }
bp.getRequestContext ().put (BindingProvider.ENDPOINT_ADDRESS_PROPERTY, epUrl.toExternalForm ());
// authentication
\r
} catch (Exception e) \r
{\r
- msoLogger.debug("Exception in getUrnDataMap " + e); \r
+ msoLogger.debug("Exception in getUrnDataMap ", e); \r
} finally {\r
if(psData != null){\r
try {\r
psData.close();\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the PreparedStatement: " + e);\r
+ msoLogger.debug("Exception while closing the PreparedStatement: ", e);\r
}\r
}\r
if(conn != null){\r
try {\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the connection: " + e);\r
+ msoLogger.debug("Exception while closing the connection: ", e);\r
}\r
}\r
}\r
\r
} catch (Exception e) \r
{\r
- msoLogger.debug("Exception in DBConnection " + e);\r
+ msoLogger.debug("Exception in DBConnection ", e);\r
}\r
\r
return conn;\r
\r
} catch (Exception e) \r
{\r
- msoLogger.debug("Exception in insertNewRow " + e);\r
+ msoLogger.debug("Exception in insertNewRow ", e);\r
}finally {\r
if(psData != null){\r
try {\r
psData.close();\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the PreparedStatement: " + e);\r
+ msoLogger.debug("Exception while closing the PreparedStatement: ", e);\r
}\r
}\r
if(conn != null){\r
try {\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the connection: " + e);\r
+ msoLogger.debug("Exception while closing the connection: ", e);\r
}\r
}\r
}\r
\r
} catch (Exception e) \r
{\r
- msoLogger.debug("Exception in PersistData " + e);\r
+ msoLogger.debug("Exception in PersistData ", e);\r
}finally {\r
if(psData != null){\r
try {\r
psData.close();\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the PreparedStatement: " + e);\r
+ msoLogger.debug("Exception while closing the PreparedStatement: ", e);\r
}\r
}\r
if(conn != null){\r
try {\r
conn.close();\r
} catch (SQLException e) {\r
- msoLogger.debug("Exception while closing the connection: " + e);\r
+ msoLogger.debug("Exception while closing the connection: ", e);\r
}\r
}\r
}\r