X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=bpmn%2FMSOCoreBPMN%2Fsrc%2Fmain%2Fjava%2Forg%2Fopenecomp%2Fmso%2Fbpmn%2Fcore%2Fjson%2FDecomposeJsonUtil.java;h=738ec4959027ac69fddb0034f1820f1e0a0f3d5a;hb=7b95ccc444c10cc9e36d476602157d004bc3eb52;hp=32c4776daf0849f32d0c599f30cbe693ac3c592f;hpb=f5b51ca134e904a5d432387365aa7b9b4c7df35e;p=so.git diff --git a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/DecomposeJsonUtil.java b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/DecomposeJsonUtil.java index 32c4776daf..738ec49590 100644 --- a/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/DecomposeJsonUtil.java +++ b/bpmn/MSOCoreBPMN/src/main/java/org/openecomp/mso/bpmn/core/json/DecomposeJsonUtil.java @@ -14,8 +14,10 @@ import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.JsonMappingException; import com.fasterxml.jackson.databind.ObjectMapper; +import org.openecomp.mso.logger.MsoLogger; + public class DecomposeJsonUtil implements Serializable { - + private static final MsoLogger LOGGER = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL); /** * */ @@ -40,14 +42,11 @@ public class DecomposeJsonUtil implements Serializable { try { serviceDecomposition = om.readValue(jsonString, ServiceDecomposition.class); } catch (JsonParseException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("JsonParseException :",e); } catch (JsonMappingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("JsonMappingException :",e); } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("IOException :",e); } return serviceDecomposition; @@ -72,14 +71,11 @@ public class DecomposeJsonUtil implements Serializable { try { vnfResource = om.readValue(jsonString, VnfResource.class); } catch (JsonParseException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("JsonParseException :",e); } catch (JsonMappingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("JsonMappingException :",e); } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("IOException :",e); } return vnfResource; } @@ -103,14 +99,11 @@ public class DecomposeJsonUtil implements Serializable { try { networkResource = om.readValue(jsonString, NetworkResource.class); } catch (JsonParseException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } catch (JsonMappingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } return networkResource; } @@ -134,14 +127,11 @@ public class DecomposeJsonUtil implements Serializable { try { allottedResource = om.readValue(jsonString, AllottedResource.class); } catch (JsonParseException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } catch (JsonMappingException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } catch (IOException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + LOGGER.debug("Exception :",e); } return allottedResource; }