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

QQ登录

只需一步,快速开始

查看: 5591|回复: 11

[结贴] 用的attachmentEditor附件上传大文件报错

[复制链接]

109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
发表于 2017-6-12 13:57:25 | 显示全部楼层 |阅读模式
上传小文件正常。大文件上传时进度条已经到头,然后一直不动,等几分钟后先报500错误,然后点击报错如下图:


后台错误信息如下:
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.Part.length(Part.java:327)
        at org.apache.commons.httpclient.methods.multipart.Part.getLengthOfParts(Part.java:426)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.getContentLength(MultipartRequestEntity.java:172)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.getRequestContentLength(EntityEnclosingMethod.java:336)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:484)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:209)
        at org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312)
        at org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:385)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:164)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.Part.length(Part.java:327)
        at org.apache.commons.httpclient.methods.multipart.Part.getLengthOfParts(Part.java:426)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.getContentLength(MultipartRequestEntity.java:172)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.getRequestContentLength(EntityEnclosingMethod.java:336)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:484)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)


109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
 楼主| 发表于 2017-6-12 13:58:32 | 显示全部楼层
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:209)
        at org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312)
        at org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:385)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:164)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.Part.length(Part.java:327)
        at org.apache.commons.httpclient.methods.multipart.Part.getLengthOfParts(Part.java:426)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.getContentLength(MultipartRequestEntity.java:172)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.getRequestContentLength(EntityEnclosingMethod.java:336)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:484)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
回复 支持 反对

使用道具 举报

109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
 楼主| 发表于 2017-6-12 13:59:52 | 显示全部楼层
java.io.IOException: 句柄无效。
        at java.io.FileInputStream.available(Native Method)
        at com.justep.biz.action.InputStreamPartSource.getLength(InputStreamPartSource.java:28)
        at org.apache.commons.httpclient.methods.multipart.FilePart.lengthOfData(FilePart.java:249)
        at org.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:209)
        at org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312)
        at org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:385)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:164)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
2017-6-12 13:29:26 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet ops-main-servlet threw exception
java.io.IOException: Read error
        at java.io.FileInputStream.readBytes(Native Method)
        at java.io.FileInputStream.read(FileInputStream.java:177)
        at org.apache.commons.httpclient.methods.multipart.FilePart.sendData(FilePart.java:222)
        at org.apache.commons.httpclient.methods.multipart.Part.send(Part.java:312)
        at org.apache.commons.httpclient.methods.multipart.Part.sendParts(Part.java:385)
        at org.apache.commons.httpclient.methods.multipart.MultipartRequestEntity.writeRequest(MultipartRequestEntity.java:164)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:499)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at UploadDoc.execute(UploadDoc.java:166)
        at UploadDoc.executeByMultiPart(UploadDoc.java:117)
        at UploadDoc.uploadDoc(UploadDoc.java:106)
        at UploadDoc.doPost(UploadDoc.java:49)
        at com.justep.ui.impl.JProcessor.execute(JProcessor.java:54)
        at com.justep.servlet.filter.JFilter.runJava(JFilter.java:123)
        at com.justep.servlet.filter.JFilter.doJ(JFilter.java:114)
        at com.justep.servlet.filter.JFilter.doFilter(JFilter.java:148)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:595)
求告知原因
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-6-12 14:32:48 | 显示全部楼层
参考http://docs.wex5.com/bex5-deploy-question-list-10034/中的把时间调整一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
 楼主| 发表于 2017-6-13 10:12:48 | 显示全部楼层
jishuang 发表于 2017-6-12 14:32
参考http://docs.wex5.com/bex5-deploy-question-list-10034/中的把时间调整一下看看

老师我是1900开发版本,这个时间的方法没有走,现在报错是httpClient.executeMethod(httpMethod)这个方法(句柄无效)
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-6-13 11:00:52 | 显示全部楼层
这个看不出什么问题

daisy-2.3\repository-server\data\conf\myconfig.xml中修改一下附件大小的限制看看
在<target path="/daisy/repository/httpconnector">
  <configuration>
  下添加
  <upload>
              <!-- threshold beyond which files are directly written to disk (in bytes) -->
              <threshold>50000</threshold>
              <!-- Maximum upload size (in bytes), -1 for no maximum -->
              <maxsize>-1</maxsize>
              <!-- Location for temporary upload files, default java.io.tmpdir -->
              <!-- tempdir></tempdir -->
            </upload>
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
 楼主| 发表于 2017-6-26 16:39:35 | 显示全部楼层
jishuang 发表于 2017-6-13 11:00
这个看不出什么问题

daisy-2.3\repository-server\data\conf\myconfig.xml中修改一下附件大小的限制看看

加了之后启动文档服务器报错:<target path="/daisy/repository/httpconnector">    <configuration>
                <upload>
              <!-- threshold beyond which files are directly written to disk (in bytes) -->
              <threshold>50000</threshold>
              <!-- Maximum upload size (in bytes), -1 for no maximum -->
              <maxsize>-1</maxsize>
              <!-- Location for temporary upload files, default java.io.tmpdir -->
              <!-- tempdir></tempdir -->
            </upload>
        <repositoryUser login="internal" password="73dfe227c4882db00e1bffbc33fb8f"/>
        <!--<connector>
          <port>9443</port>
          <sslProtocol>TLS</sslProtocol>
          <keystoreFile>E:\workspace\distribution\doctest.keystore</keystoreFile>
          <keystorePass>justep</keystorePass>
        </connector>-->
        <connector>
          <port>9263</port>
        </connector>
    </configuration>
  </target>控制台报错如图: false.png



回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-6-26 17:45:45 | 显示全部楼层
确认文件的编码正确吗?
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

109

主题

300

帖子

797

积分

高级会员

Rank: 4

积分
797
QQ
 楼主| 发表于 2017-6-26 18:08:07 | 显示全部楼层
jishuang 发表于 2017-6-26 17:45
确认文件的编码正确吗?

您是说xml文件的编码吗?加上upload就报错,去掉就好了
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36067
发表于 2017-6-27 09:20:56 | 显示全部楼层
修改doc-server\daisy-2.3\lib\daisy\jars\daisy-emailnotifier-server-impl-2.3.jar中的配置文件:daisy-inf/spring/的xml文件设置为-1
看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



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

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-24 13:28 , Processed in 0.066975 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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