BUG #2166
已結束正式區, 現場反映, 走一拉一, 空母棧沒出來
概述
CallBackTag:
{"UNIQUE_ID":"8d943605-2362-4e8a-a949-257545d4092c","SYSTEM_ID":null,"DOC_ID":null,"DOC_NO":null,"DOC_TYPE":null,"STATION":null,"PICK_INFO":{"refNo":null,"seq":null,"carrierId":null,"prodCode":null,"planQty":null,"stockQty":null,"diffQty":0,"assignWorkStationId":null,"stationSerial":null,"carrierStatus":null,"opStatus":null,"createDateTime":null,"updateDateTime":null,"supplier":null,"unitWeight":0,"receiveNo":null,"receiveSource":0},"OP_TYPE":null,"STORAGE":null,"carrierLocate":null,"isSkip":true,"operatorId":null,"BatchId":null}
11:24 潘家慶 val response: Response = client.newCall(request).execute()
val responseStr = response.body().string()
println("response:${responseStr}")
val responseObj = JSONObject(responseStr)
11:25 潘家慶 Line:360 掛在這一行
11:25 潘家慶 要找出這一行印什麼
println("response:${responseStr}")
11:26 潘家慶 response 空字串
11:29 潘家慶 wcs
post("/carrier/empOutCmd") {
val requestObj = JSONObject(call.request.call.receiveText())
println( "empOutCmd:$requestObj")
try {
val execCmd = EmpOutCmd.create(requestObj)
val responseString = aCSEngine.execEmpOutJob(execCmd).toJson().toString()
println( "empOutCmd execCmdResult:${responseString}")
call.respondText(responseString)
} catch (ex: Exception) {
println( "execCmdResult ex:${ex.printStack()}")
}
}
死在
println( "execCmdResult ex:${ex.printStack()}")
11:38 潘家慶 log.info("ACSEngine execEmpOutJob start")
log.error("Repository getUnfinshedAexCmd ex:${ex.localizedMessage}")
這2個關鍵辭去推
11:39 潘家慶 2025/03/17 10:24:56
11:41 潘家慶 log.info("execEmpOutJob nowMillsLong:${nowMillsLong} timeTick:${timeTick}")
getRepos().addAexCmd(
DateTime.now().unixMillisLong,
cmdId,
"EmpOutCmd",
cmd.toJson().toString(),
"",
timeTick,
result,
cmd.priority,
cmd.getTag()
)
11:42 潘家慶 execEmpOutJob nowMillsLong:
這個應該會成功
EmpOut cmd AexCmd
addAexCmd 應該沒寫入db
13:21 潘家慶 查過了..找不出哪邊會回空字串
我補一些Log機制
檔案
是由 冠榮 林 於 約 2 個月 前更新
· 已被編輯
- 檔案 clipboard-202503181554-lke7a.png clipboard-202503181554-lke7a.png 已新增
- 檔案 log.log4j.2025-03-17 log.log4j.2025-03-17 已新增
2025-03-17 10:24:56 [ERROR] Repository getShuttleAexCmd ex:com.orientechnologies.orient.core.exception.OStorageException: Error on executing command: select * from AexCmd where cmdType in ['GoCmd','PullCmd','EmpOutCmd','MoveCmd','NeedChargeCmd'] and aStatus=0 order by Priority desc , id
DB name="GW_WCS2"
WCS錯誤訊息, 看來起一樣是偶發 DB連線被關閉, 所以 select 失敗
Database 'remote:localhost:2424/GW_WCS2' is closed
慶哥:
main thread 掛掉, 導致 api 邏輯失敗
冠榮:
只是剛好都在呼叫空母的時候?