Browse Source

!!!!20211030 mysql的json内"转义是\\",由于现有驱动bug,转义成\",导致无法保存。
改动驱动影响较大,由于此字段后续不直接使用,是通过查任务.resultjson获取,因此就先不要modelfile里的resultjson了

yucheng 3 years ago
parent
commit
88644565d2

+ 3 - 1
revit-algorithm/src/main/kotlin/cn/sagacloud/server/algorithm/services/CommonService.kt

@@ -185,6 +185,8 @@ object CommonService {
      * 获取异常的堆栈信息
      */
     fun getStackTrace(e : Throwable): String? {
-        return org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace(e)
+//        return org.apache.commons.lang3.exception.ExceptionUtils.getStackTrace(e)
+        // 20211101 由于mysql驱动,处理json有问题,因此在此先简化处理,不返详情了
+        return org.apache.commons.lang3.exception.ExceptionUtils.getMessage(e)
     }
 }