0

我正在使用 Maximo Anywhere 7.5.2(工作执行应用程序)。我使用 TAKEPHOTO 选项拍照,但无法将其保存回 Maximo,它给出了以下异常。

日志:

2016-01-22 10:50:02.153 WorkExecution[1689:755353] got managebusy call busystate=true, busy window visible=true
2016-01-22 10:50:02.640 WorkExecution[1689:756415] [DEBUG] [NONE] Piggybacking event transmission
2016-01-22 10:50:02.643 WorkExecution[1689:756198] [DEBUG] [NONE] Flush called
2016-01-22 10:50:02.922 WorkExecution[1689:756415] File Transfer Finished with response code 404
2016-01-22 10:50:02.923 WorkExecution[1689:756415] FileTransferError {
    body = "Error 404: java.lang.RuntimeException: java.io.FileNotFoundException: SRVE0190E: File not found: /anywhereAttachment\n";
    code = 3;
    "http_status" = 404;
    source = "file:///var/mobile/Containers/Data/Application/1E7497A1-72B5-410C-A1E3-A35995D725AB/Documents/anywhere/maxadmin/WorkExecution/workOrder_1013/cdv_photo_001.png";
    target = "http://IP:PORT/MaximoAnywhere/anywhereAttachment";
}
2016-01-22 10:50:02.937 WorkExecution[1689:755353] WARN: [StoreLock] lock: adding  to lock resource workOrder
    2016-01-22 10:50:03.422 WorkExecution[1689:755353] [TIMER] PersistenceManager _findRecordsOnStore: (ignore if querybase exists)workOrderSpecResource queryBase: null query: {"_errored":1}: 155ms
2016-01-22 10:50:03.422 WorkExecution[1689:755353] [TIMER] PersistenceManager - _filterExactMatchesIfNeeded: 0ms
2016-01-22 10:50:03.422 WorkExecution[1689:755353] [TRACE] [DATA] Data fetched. Returning to consumer
2016-01-22 10:50:03.485 WorkExecution[1689:755353] got managebusy call busystate=false, busy window visible=true
2016-01-22 10:50:03.485 WorkExecution[1689:755353] taking down busy window
2016-01-22 10:50:03.485 WorkExecution[1689:755353] WARN: Loading message hidden by application = true
2016-01-22 10:50:03.485 WorkExecution[1689:755353] WARN: Loading message hidden
2016-01-22 10:50:03.485 WorkExecution[1689:755353] [DEBUG] [WORKLIGHT] -[NotificationEx loadingStop:] in NotificationEx.m:150 :: Loading stop
2016-01-22 10:50:03.953 WorkExecution[1689:755353] ERROR: {"type":"business","error":{"invocationResult":{"errors":[{"oslc:extendedError":{},"oslc:message":"Upload failed - HTTP: 404. Contact your administrator.","oslc:statusCode":1,"spi:reasonCode":1}]},"invocationContext":null,"status":1,"errorCode":1,"errorMsg":"Upload failed - HTTP: 404. Contact your administrator.","isSuccessful":false},"additionalInfo":{"metadata":{"formulaFields":[{"index":true,"dataType":"string","name":"exactremoteid","local":true,"isComplex":false,"isRemote":false,"persistent":true},{"id":"aw473f3b38","index":true,"dataType":"string","persistent":true,"name":"starttimeISO","artifactId":"workOrder_starttimeISO_string","remoteName":"spi_wm:schedstart","local":true,"isComplex":false,"isRemote":false}],"queryBases":{"searchAllWorkOrders":"/oslc/os/oslcwodetail?savedQuery=getWithComplexQuery","getMyAssignedWork":"/oslc/os/oslcwodetail?savedQuery=getMyAssignedWork","WORKIOWN":"/oslc/os/oslcwodetail?savedQuery=WORKIOWN"},"queryBasesLabel":[{"name":"getMyAssignedWork","label":"getMyAssignedWork"},{"name":"WORKIOWN","label":"WORKIOWN"}],"adapter":"OSLCGenericAdapter","name":"workOrder","_classInstance":{},"_urlBase":"http://IP:PORT/maximo","inMemory":false,"isSystem":false,"pageSize":40,"refreshOnLogin":false,"serverOnlyMode":false,"orderBy":"wonum asc","additionalData":false,"isAttachment":false,"maxFetchDataLimit":500,"fields":[{"name":"__tempId","dataType":"integer","precision":0,"index":true,"local":true,"isComplex":false,"isRemote":false,"persistent":true},{"name":"remoteid","dataType":"string","precision":0,"remoteName":"rdf:about","local":false,"index":true,"isComplex":false,"isRemote":true,"persistent":true},
4

1 回答 1

0

看起来您缺少 attachmentServlet

试试这个故障排除 http://www-01.ibm.com/support/knowledgecenter/SSPJLC_7.5.2/com.ibm.si.mpl.doc_7.5.2/tshoot/ts_attachments_servlet.html?lang=en

如果缺少此附件,则需要遵循 MaximoAnywhere.war 部署过程,您可以在任何知识中心找到相同的内容。

还要确保您在 maximo 中的附件配置正确,您可以在 maximo http://www-01.ibm.com/support/docview.wss?uid=swg21312993中遵循此文档链接配置

于 2016-01-27T14:03:27.130 回答