-2

我正在用导体创建一个 Worker 任务

http://localhost:8080/api/metadata/taskdefs

但收到此错误

{
"code": "INTERNAL_ERROR",
"message": "INTERNAL_ERROR - Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: HttpInputOverHTTP@2179fb[c=323,s=STREAM]; line: 1, column: 1]",
"instance": "linkez-System-Product-Name"
}

我的任务定义 JSON 有效负载是

{
   "name": "encode_task",
   "retryCount": 3,
   "timeoutSeconds": 1200,
   "inputKeys": [
      "sourceRequestId",
      "qcElementType"
   ],
  "outputKeys": [
    "state",
    "skipped",
    "result"
  ],
 "timeoutPolicy": "TIME_OUT_WF",
 "retryLogic": "FIXED",
 "retryDelaySeconds": 600,
 "responseTimeoutSeconds": 3600 
 }
4

1 回答 1

0

是的,我能够解决这个问题。我犯了一个简单的错误。要创建任务,我们必须在发布新任务时将数组 i,e [] 作为 JSON 而不是 {} 发送

于 2017-05-11T12:11:52.507 回答