* ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
outFile.write(payloadBytes, 0, payloadBytes.length);\r
outFile.close();\r
} catch (Exception e) { \r
- e.printStackTrace();\r
+ LOGGER.debug("Exception :",e);\r
LOGGER.error(MessageEnum.ASDC_ARTIFACT_DOWNLOAD_FAIL,\r
artifact.getArtifactName (),\r
artifact.getArtifactURL (),\r
* ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import org.openecomp.mso.db.catalog.beans.ServiceToNetworks;
import org.openecomp.mso.db.catalog.beans.VnfResource;
+import org.openecomp.mso.logger.MsoLogger;
/**
* This structure exists to avoid having issues if the order of the vfResource/vfmodule artifact is not good (tree structure).
*
*/
public final class VfResourceStructure {
+
+ protected static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.ASDC);
private boolean isDeployedSuccessfully=false;
/**
return listVFModuleMetaData;
} catch (JsonParseException e) {
- e.printStackTrace();
+ LOGGER.debug("JsonParseException : ",e);
} catch (JsonMappingException e) {
- e.printStackTrace();
+ LOGGER.debug("JsonMappingException : ",e);
} catch (IOException e) {
- e.printStackTrace();
+ LOGGER.debug("IOException : ",e);
}
return null;
}
* ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
vfResourceStructure.setSuccessfulDeployment();\r
\r
}catch(Exception e){\r
- System.out.println("Exception" + e.getMessage());\r
- e.printStackTrace();\r
+ logger.debug("Exception :",e);\r
\r
Throwable dbExceptionToCapture = e;\r
while (!(dbExceptionToCapture instanceof ConstraintViolationException || dbExceptionToCapture instanceof LockAcquisitionException)\r
* ONAP - SO
* ================================================================================
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
import java.util.List;
import java.util.Map;
+import org.openecomp.mso.logger.MsoLogger;
import org.openecomp.sdc.api.notification.INotificationData;
private static Map<Object, List<Method>> objectMethodsToLog = new HashMap<>();
+ protected static final MsoLogger LOGGER = MsoLogger.getMsoLogger (MsoLogger.Catalog.ASDC);
+
private static InvocationHandler handler = new InvocationHandler() {
@Override
public Object invoke(Object arg0, Method arg1, Object[] arg2)
buffer.append(testNull(m.invoke(iNotif, (Object[])null)));
} catch (IllegalAccessException | IllegalArgumentException
| InvocationTargetException e) {
+ LOGGER.debug("Exception :"+e);
buffer.append("UNREADABLE");
}
buffer.append(System.lineSeparator());
<classifier>tests</classifier>\r
<scope>test</scope>\r
</dependency>\r
+ <dependency>\r
+ <groupId>org.openecomp.so</groupId>\r
+ <artifactId>common</artifactId>\r
+ <version>${project.version}</version>\r
+ </dependency>\r
<dependency>\r
<groupId>javax.ws.rs</groupId>\r
<artifactId>javax.ws.rs-api</artifactId>\r
* ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
package org.openecomp.mso.bpmn.common.util;\r
\r
import java.security.GeneralSecurityException;\r
+import org.openecomp.mso.logger.MsoLogger;\r
\r
public class CryptoHandler implements ICryptoHandler {\r
+ private static final MsoLogger LOGGER = MsoLogger.getMsoLogger(MsoLogger.Catalog.BPEL);\r
\r
private static String msoKey = "aa3871669d893c7fb8abbcda31b88b4f";\r
//private static String msoAaiPwd = "mso0206";\r
try {\r
return CryptoUtils.decrypt(msoAaiEncryptedPwd, msoKey);\r
} catch (GeneralSecurityException e) {\r
+ LOGGER.debug("GeneralSecurityException :",e);\r
return null;\r
}\r
}\r
try {\r
return CryptoUtils.encrypt(plainMsoPwd, msoKey);\r
} catch (GeneralSecurityException e) {\r
+ LOGGER.debug("GeneralSecurityException :",e);\r
return null;\r
}\r
}\r
try {\r
return CryptoUtils.decrypt(encryptedPwd, msoKey);\r
} catch (GeneralSecurityException e) {\r
+ LOGGER.debug("GeneralSecurityException :",e);\r
return null;\r
}\r
}\r
logCallbackSuccess(method, startTime);\r
return new CallbackSuccess();\r
} catch (Exception e) {\r
+ LOGGER.debug("Exception :",e);\r
String msg = "Caught " + e.getClass().getSimpleName()\r
+ " processing " + messageEventName + " with " + correlationVariable\r
+ " = '" + correlationValue + "'";\r
* ONAP - SO\r
* ================================================================================\r
* Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.\r
+ * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.\r
* ================================================================================\r
* Licensed under the Apache License, Version 2.0 (the "License");\r
* you may not use this file except in compliance with the License.\r
workflowResponse.setMessageCode(500);\r
return Response.status(500).entity(workflowResponse).build();\r
} catch (Exception ex) {\r
- msoLogger.debug(LOGMARKER + "Exception in startProcessInstance by key");\r
- ex.printStackTrace();\r
+ msoLogger.debug(LOGMARKER + "Exception in startProcessInstance by key",ex);\r
workflowResponse.setMessage("Fail" );\r
workflowResponse.setResponse("Error occurred while executing the process: " + ex.getMessage());\r
if (processInstance != null) workflowResponse.setProcessInstanceID(processInstance.getId());\r
try {\r
return pes.getRuntimeService().createProcessInstanceQuery().processInstanceId(processInstanceId).singleResult() == null ? true : false ;\r
} catch (Exception e) {\r
+ msoLogger.debug("Exception :",e);\r
return true;\r
} \r
}\r
+ processKey \r
+ " with response: " \r
+ response.getResponse());\r
- \r
+ msoLogger.debug("Exception :",ex);\r
}\r
\r
msoLogger.recordMetricEvent ( startTime, MsoLogger.StatusCode.COMPLETE, MsoLogger.ResponseCode.Suc, \r