office在线协作报错
本帖最后由 victor007 于 2022-8-17 15:07 编辑o2oa版本7.1.4,onlyoffice已经配置好了,onlyOffice集成应用已经可以正常使用。
在线协作配置文件onlyofficeSettings.json:
{
"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"
}
新建文档时报错:
ERROR2022-08-17 14:31:43.985
2022-08-17 14:31:43.985 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 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:http://127.0.0.1:20020/x_onlyoff ... s/onlyoffice/create, remoteHost:127.0.0.1, emoteAddr:127.0.0.1, head:Cache-Control:no-cache, no-transform
https://www.o2oa.net/forum/data/attachment/forum/202208/15/182806bwtol6ftwtmvwdtw.gif
我找了一下在服务接口cloudDocumentSrv里面的CloudDocument.OnlyOffice的createDocument报的错
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));
用接口直接创建文档也会报错
https://www.o2oa.net/forum/data/attachment/forum/202208/16/62fb6ebc59f7e.png
{
"storageFolder":"",
"storageFolderTemplate":"",
"storageFolderIndex":"",
"storageFolderMark":"",
"docbuilderEXEPath":"C:/ONLYOFFICE/DocumentBuilder/docbuilder.exe",
"filesizeMax":"5242880",
"timeout":"120000",
"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",
"scheme":"http",
"secret":"",
"header":"Authorization",
"ipWhiteList":"",
"callbackUrl":"",
"gobackUrl":"http://127.0.0.1/x_desktop/index.html",
"rmi":"false",
"rmiPort":"2099",
"searchIndexCreate":"true",
"searchRangeCount":"12",
"searchReturnCount":"100"
}
xadmin 发表于 2022-8-18 09:41
{
"storageFolder":"",
"storageFolderTemplate":"",
用这个配置接口可以正常创建文档了,谢谢!(可以问一下是那条配置导致的问题吗?)
页:
[1]