Issue ID:GSO-83
authorj00302280 <j00101220@huawei.com>
Mon, 31 Oct 2016 07:17:09 +0000 (15:17 +0800)
committerj00302280 <j00101220@huawei.com>
Mon, 31 Oct 2016 07:17:09 +0000 (15:17 +0800)
Change-Id: I1d607d0e95cfa9ff55726a8054b6c096d3c3adea
Signed-off-by: j00302280 <j00101220@huawei.com>
servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/util/http/ResponseUtils.java

index 05d4f0f..eb753aa 100644 (file)
@@ -16,6 +16,7 @@
 
 package org.openo.gso.gui.servicegateway.util.http;
 
+import java.util.Arrays;
 import java.util.HashMap;
 import java.util.LinkedList;
 import java.util.List;
@@ -148,11 +149,10 @@ public class ResponseUtils {
             result.put(Constant.RESPONSE_STATUS_DESCRIPTION, status);
         } else {
             if((null != exception.getExceptionArgs()) && (null != exception.getExceptionArgs().getDescArgs())) {
-                result.put(Constant.RESPONSE_STATUS_DESCRIPTION, exception.getExceptionArgs().getDescArgs().toString());
+                result.put(Constant.RESPONSE_STATUS_DESCRIPTION, Arrays.asList(exception.getExceptionArgs().getDescArgs()).toString());
             }
         }
         result.put(Constant.RESPONSE_ERRORCODE, errorCode);
-
         return result;
     }