try {\r
jsonStr = mapper.writeValueAsString(valueMap);\r
} catch(JsonProcessingException e) {\r
-\r
- e.printStackTrace();\r
+ LOGGER.error("JsonProcessingException", e);\r
}\r
return jsonStr;\r
}\r
}
} catch(MsoPropertiesException e) {
LOGGER.error("Get msb properties failed",e);
- e.printStackTrace();
}
return "http://" + msbIp + ":" + msbPort;
}
try {
jsonStr = mapper.writeValueAsString(this);
} catch(JsonProcessingException e) {
- msoLogger.debug("JsonProcessingException", e);
- e.printStackTrace();
+ msoLogger.error("JsonProcessingException", e);
}
return jsonStr;
}
try {
jsonStr = mapper.writeValueAsString(this);
} catch(JsonProcessingException e) {
- msoLogger.debug("JsonProcessingException", e);
- e.printStackTrace();
+ msoLogger.error("JsonProcessingException", e);
}
return jsonStr;
}
Map<String, Object> resourceInputsFromServiceDeclaredLevel = buildResouceRequest(serviceUuid, resourceCustomizationUuid, serviceInput);
resourceInputsFromUuiMap.putAll(resourceInputsFromServiceDeclaredLevel);
} catch(SdcToscaParserException e) {
- LOGGER.debug("SdcToscaParserException", e);
- e.printStackTrace();
+ LOGGER.error("SdcToscaParserException", e);
}
String resourceInputsStr = getJsonString(resourceInputsFromUuiMap);
String result = "{\n"
try {
jsonStr = mapper.writeValueAsString(srcObj);
} catch(JsonProcessingException e) {
- LOGGER.debug("SdcToscaParserException", e);
- e.printStackTrace();
+ LOGGER.error("SdcToscaParserException", e);
}
return jsonStr;
}
\r
} catch (Exception e) \r
{\r
- \r
- e.printStackTrace();\r
+ msoLogger.error("Exception while executing query", e);\r
} finally {\r
try { r.close(); } catch (Exception e) { /* ignored */ }\r
try { psData.close(); } catch (Exception e) { /* ignored */ }\r
} \r
\r
} catch (Exception e) \r
- {\r
- \r
- e.printStackTrace();\r
+ {\r
+ msoLogger.error("Exception while performing JNDI lookup", e);\r
}\r
\r
return conn;\r
\r
} catch (Exception e) \r
{\r
- \r
- e.printStackTrace();\r
+ msoLogger.error("Exception while executing query", e);\r
} finally {\r
try { psData.close(); } catch (Exception e) { /* ignored */ }\r
try { conn.close(); } catch (Exception e) { /* ignored */ }\r
\r
} catch (Exception e) \r
{\r
- \r
- e.printStackTrace();\r
+ msoLogger.error("Exception while executing query", e);\r
} finally {\r
try { psData.close(); } catch (Exception e) { /* ignored */ }\r
try { conn.close(); } catch (Exception e) { /* ignored */ }\r
}
catch (Exception e) {
// Catchall for anything else, must throw as a RuntimeException
- e.printStackTrace();
+ LOGGER.error("Client exception", e);
throw new RuntimeException("Unexpected client exception", e);
}
finally {
AAIResultWrapper aaiResult = aaiHelper.getAaiOperationalEnvironment(operationalEnvironmentId);\r
operationalEnv = aaiResult.asBean(AAIOperationalEnvironment.class).get();\r
} catch (JsonParseException e) {\r
- msoLogger.debug(" **** JsonParseException: " + e.getMessage());\r
- e.printStackTrace();\r
+ msoLogger.error(" **** JsonParseException: ", e);\r
} catch (JsonMappingException e) {\r
- msoLogger.debug(" **** JsonMappingException: " + e.getMessage());\r
- e.printStackTrace();\r
+ msoLogger.error(" **** JsonMappingException: ", e);\r
} catch (IOException e) {\r
- msoLogger.debug(" **** IOException: " + e.getMessage());\r
- e.printStackTrace();\r
+ msoLogger.error(" **** IOException: ", e);\r
} catch (Exception e) {\r
- msoLogger.debug(" **** Exception: " + e.getMessage());\r
- e.printStackTrace();\r
+ msoLogger.error(" **** Exception: ", e);\r
}\r
\r
return operationalEnv;\r
getRequestDb().updateInfraSuccessCompletion("SUCCESSFULLY Created ECOMP OperationalEnvironment.", getRequestId(), getRequest().getOperationalEnvironmentId());
}
catch (Exception e) {
- e.printStackTrace();
+ msoLogger.error("exception while publishing operational environment", e);
msoLogger.error(MessageEnum.APIH_GENERAL_EXCEPTION, "", "", "", MsoLogger.ErrorCode.UnknownError, e.getMessage());
getRequestDb().updateInfraFailureCompletion(e.getMessage(), getRequestId(), getRequest().getOperationalEnvironmentId());
}