起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1015|回复: 6

[结贴] 文档上传错误。

[复制链接]

20

主题

60

帖子

149

积分

初级会员

Rank: 2

积分
149
QQ
发表于 2019-1-17 12:45:05 | 显示全部楼层 |阅读模式
版本: X5.2.7 小版本号:
数据库: Sybase 服务器操作系统: Windows 应用服务器: Tomcat
客户端操作系统: Windows 7 浏览器: Chrome
由于新程序员的误操作,目前已知把sa_docnode给清空了,导致文档中心不能上传;后来发现了这个问题,在文档中心增加了一行sid为defaultDocNameSpace的数据;文档中心能够启动;但是进行上传文件操作的保存时会报错:
2019-01-17 12:32:20 [http-8080-5] [org.outerj.daisy.repository.serverimpl.LocalRepositoryManager] ERROR: Namespace 'defaultDocNameSpace' is not managed by the repository. Could not generate an id. To solve this try making the namespace managed
java.lang.Exception: Namespace 'defaultDocNameSpace' is not managed by the repository. Could not generate an id. To solve this try making the namespace managed
        at org.outerj.daisy.jdbcutil.SqlDocumentIdCounter.getNextId(SqlDocumentIdCounter.java:63)
        at org.outerj.daisy.repository.serverimpl.LocalRepositoryManager$Context.getNextDocumentId(Unknown Source)
        at org.outerj.daisy.repository.serverimpl.LocalDocumentStrategy.store(Unknown Source)
        at org.outerj.daisy.repository.commonimpl.DocumentImpl.save(DocumentImpl.java:483)
        at org.outerj.daisy.repository.commonimpl.DocumentImpl.save(DocumentImpl.java:468)
        at com.justep.doc.httpconnector.handlers.FileCacheCommitHandler.newDoc(Unknown Source)
        at com.justep.doc.httpconnector.handlers.FileCacheCommitHandler.handleRequest(Unknown Source)
        at com.justep.doc.httpconnector.HttpConnector$PathHandler.handle(Unknown Source)
        at com.justep.doc.httpconnector.HttpConnector.service(Unknown Source)
        at com.justep.doc.httpconnector.FileServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
2019-01-17 12:32:20 [http-8080-5] [com.justep.doc.httpconnector.HttpConnector] ERROR: commit error
org.outerj.daisy.repository.RepositoryException: Problem storing document.
        at org.outerj.daisy.repository.serverimpl.LocalDocumentStrategy.store(Unknown Source)
        at org.outerj.daisy.repository.commonimpl.DocumentImpl.save(DocumentImpl.java:483)
        at org.outerj.daisy.repository.commonimpl.DocumentImpl.save(DocumentImpl.java:468)
        at com.justep.doc.httpconnector.handlers.FileCacheCommitHandler.newDoc(Unknown Source)
        at com.justep.doc.httpconnector.handlers.FileCacheCommitHandler.handleRequest(Unknown Source)
        at com.justep.doc.httpconnector.HttpConnector$PathHandler.handle(Unknown Source)
        at com.justep.doc.httpconnector.HttpConnector.service(Unknown Source)
        at com.justep.doc.httpconnector.FileServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Namespace 'defaultDocNameSpace' is not managed by the repository. Could not generate an id. To solve this try making the namespace managed
        at org.outerj.daisy.jdbcutil.SqlDocumentIdCounter.getNextId(SqlDocumentIdCounter.java:63)
        at org.outerj.daisy.repository.serverimpl.LocalRepositoryManager$Context.getNextDocumentId(Unknown Source)
        ... 21 more
2019-01-17 12:32:20 action:<?xml version="1.0" encoding="UTF-8"?>
<action direct-execute="true" process="/SA/doc/system/systemProcess" activity="mainActivity" action-flag="__action_0__" executor="" execute-context="" name="commitDocAction"><parameters xmlns:xbiz="http://www.justep.com/xbiz#"><parameter name="changeLog"><xbiz:simple type="http://www.w3.org/2001/XMLSchema#String"><![CDATA[{"items":[{"operation_type":"new","process":"/SA/doc/docCenter/docCenterProcess","activity":"mainActivity","person":"/ORG01.ogn/PSN01@ORG01.psm","person_name":"system","dept_name":"","bill_id":"","doc_id":"C84C2C7B17C0000192F55BD030277200","version":"0","file_id":"","doc_version_id":"","doc_name":"更新说明.txt","kind":"text/plain","size":"44951","parent_id":"defaultDocNameSpace","doc_path":"/defaultDocNameSpace","doc_display_path":"/文档中心","description":"","classification":"","keywords":"","finish_time":"","serial_number":"","doc_type":"document","cache_name":"30-DOC","revision_cache_name":"","comment_file_content":"","link_id":"C84C2C7B17D00001378B12001D00CE10","access_record_id":"C84C2C7B17D00001CCE2EC3A10501760"}],"autoCreateVersion":true,"operate":"commitDoc","url":"","isHttps":false}]]></xbiz:simple></parameter></parameters></action>
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at com.justep.system.action.Engine.invokeActions(Native Method)
        at com.justep.system.action.Engine.invokeActions(Unknown Source)
        at com.justep.business.server.BusinessServer.doAction(Unknown Source)
        at com.justep.business.server.BusinessServer.doExcute(Unknown Source)
        at com.justep.business.server.BusinessServer.excute(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.execService(Unknown Source)
        at com.justep.business.server.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at com.justep.x.bs.BusinessServerServlet.service(Unknown Source)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:745)
Caused by: com.justep.doc.exception.DocRTException: 编码: JUSTEP300012; 提示: 提交文档中心文档失败
        at com.justep.doc.DocAdapter.commitDocAdapter(DocAdapter.java:203)
        ... 26 more

请问还有哪里有问题;

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36127
发表于 2019-1-17 13:48:43 | 显示全部楼层
看doc数据源的daisy_namespaces这张表中有name_是defaultDocNameSpace这个值吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

20

主题

60

帖子

149

积分

初级会员

Rank: 2

积分
149
QQ
 楼主| 发表于 2019-1-18 09:27:17 | 显示全部楼层
有数据:
ID,NAME_,FINGERPRINT,REGISTERED_BY,REGISTERED_ON
2.0,'defaultDocNameSpace','667d155d007b4f29571933155975061a4e8c3975126324568d420c287470',1.0,2013-09-10 15:28:17.613
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36127
发表于 2019-1-18 11:25:13 | 显示全部楼层
确认你在SA_DocNode中加的数据sNameSpace字段的值是SA_DocNameSpace标准sID的值吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

20

主题

60

帖子

149

积分

初级会员

Rank: 2

积分
149
QQ
 楼主| 发表于 2019-1-18 11:41:27 | 显示全部楼层
本帖最后由 凯歌 于 2019-1-18 11:44 编辑

是的,两个表关联查询通过defaultDocNameSpace可以查到
SID,SPARENTID,SDOCNAME,SSEQUENCE,SSIZE,SKIND,SDOCPATH,SDOCDISPLAYPATH,SCREATORFID,SCREATORNAME,SCREATORDEPTNAME,SCREATETIME,SEDITORFID,SEDITORNAME,SEDITORDEPTNAME,SLASTWRITERFID,SLASTWRITERNAME,SLASTWRITERDEPTNAME,SLASTWRITETIME,SFILEID,SDESCRIPTION,SDOCLIVEVERSIONID,VERSION,SFINISHTIME,SCLASSIFICATION,SKEYWORDS,SDOCSERIALNUMBER,SNAMESPACE,SCACHENAME,SREVISIONCACHENAME,SFLAG,FWDFLID
'defaultDocNameSpace',,'文档中心',,,'dir','/','/','/ORG01.ogn/PSN01@ORG01.psm','system',,2019-01-16 11:58:30.0,,,,'system',,,2019-01-16 11:58:30.0,,,,0,,,,,'defaultDocNameSpace',,,1,4



SID,SDISPLAYNAME,SHOST,SPORT,SURL,VERSION,SFLAG,SACCESSMODE
'defaultDocNameSpace','文档中心','localhost',8080,'http://localhost:8080/DocServer',0,1,'1'



回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36127
发表于 2019-1-18 13:30:45 | 显示全部楼层
那就重新用平台的数据库初始化脚本初始化一个数据库,看看还有什么数据别删除了,默认为的应该就是这两个
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

20

主题

60

帖子

149

积分

初级会员

Rank: 2

积分
149
QQ
 楼主| 发表于 2019-1-18 13:45:18 | 显示全部楼层
好的,结贴吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-4-3 16:51 , Processed in 0.073825 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表