本帖最后由 victor007 于 2022-8-17 15:07 编辑
o2oa版本7.1.4,onlyoffice已经配置好了,onlyOffice集成应用已经可以正常使用。
在线协作配置文件onlyofficeSettings.json:
[AppleScript] 纯文本查看 复制代码 {
"rmi":"false",
"filesizeMax": "5242880",
"timeout": "120000",
"rmiPort": "2099",
"searchRangeCount": "12",
"searchReturnCount": "200",
"storageFolder": "file://F:\\storage\\onlyofficeFile1",
"storageFolderTemplate": "file://F:\\storage\\onlyofficeFile1\\template",
"storageFolderIndex": "file://F:\\storage\\onlyofficeFile1\\index",
"storageFolderMark": "file://F:\\storage\\onlyofficeFile1\\mark",
"docserviceViewedDocs": ".pdf|.djvu|.xps",
"docserviceEditedDocs": ".docx|.xlsx|.csv|.pptx|.txt",
"docserviceConvertDocs": ".docm|.dotx|.dotm|.dot|.doc|.odt|.fodt|.ott|.xlsm|.xltx|.xltm|.xlt|.xls|.ods|.fods|.ots|.pptm|.ppt|.ppsx|.ppsm|.pps|.potx|.potm|.pot|.odp|.fodp|.otp|.rtf|.mht|.html|.htm|.epub",
"docserviceConverter": "http://192.168.1.77:8080/ConvertService.ashx",
"docserviceTempstorage": "http://192.168.1.77:8080/ResourceService.ashx",
"docserviceApi": "http://192.168.1.77:8080/web-apps/apps/api/documents/api.js",
"docservicePreloader": "http://192.168.1.77:8080/web-apps/apps/api/documents/cache-scripts.html",
"secret": "",
"ipWhiteList": "",
"gobackUrl": "http://192.168.1.24/x_desktop/index.html",
"callbackUrl": "http://192.168.1.24:20030/x_program_center/jaxrs/invoke/onlyofficecallback/execute"
}
新建文档时报错:
[HTML] 纯文本查看 复制代码 ERROR2022-08-17 14:31:43.985
2022-08-17 14:31:43.985 [ApplicationServerQueuedThreadPool-111] ERROR com.x.onlyoffice.assemble.control.jaxrs.onlyoffice.helpers.DocumentManager - null
ERROR2022-08-17 14:31:43.987
2022-08-17 14:31:43.987 [ApplicationServerQueuedThreadPool-111] ERROR com.x.onlyoffice.assemble.control.jaxrs.onlyoffice.OnlyofficeAction - id:35a6b256-1f46-48dc-b8ad-0be145c9d1e6, name:com.x.onlyoffice.assemble.control.jaxrs.onlyoffice.OnlyofficeAction, message:null, exception:java.lang.NullPointerException, id:35a6b256-1f46-48dc-b8ad-0be145c9d1e6, name:com.x.onlyoffice.assemble.control.jaxrs.onlyoffice.OnlyofficeAction, message:null, exception:java.lang.NullPointerException, person:cipher, method:POST, request:[url=http://127.0.0.1:20020/x_onlyoffice_assemble_control/jaxrs/onlyoffice/create]http://127.0.0.1:20020/x_onlyoff ... s/onlyoffice/create[/url], remoteHost:127.0.0.1, emoteAddr:127.0.0.1, head:Cache-Control:no-cache, no-transform

我找了一下在服务接口cloudDocumentSrv里面的CloudDocument.OnlyOffice的createDocument报的错
[JavaScript] 纯文本查看 复制代码 createDocument : function(data){
var json = {
"fileName" : data.fileName + "." + data.fileType,
"fileType" : data.fileType
}
this.resp = applications.postQuery( this.onlyofficeSrv, "onlyoffice/create" , JSON.stringify(json));
var officeDocument = JSON.parse(this.resp.toString()).data;
return officeDocument;
}
执行这句时报错:
this.resp = applications.postQuery( this.onlyofficeSrv, "onlyoffice/create" , JSON.stringify(json));
用接口直接创建文档也会报错

|