博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
java移动文件导致tomcat死掉_利用平台自带的tomcat作为服务 当上传文件失败后服务总死掉...
阅读量:5300 次
发布时间:2019-06-14

本文共 3521 字,大约阅读时间需要 11 分钟。

我将服务器tomcat配置运行的内存加大了,至少现在没有出现服务停止的问题,但是上次文件有时还是会出现失败,导致浏览器关闭

2014-11-04 09:52:18 上传文件失败

javax.servlet.ServletException: javax.servlet.ServletException: 上传文件失败

at com.justep.ui.servlet.MainServlet.service(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

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: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:662)

Caused by: javax.servlet.ServletException: 上传文件失败

at com.justep.ui.system.service.doc.DocUtils.uploadDoc(Unknown Source)

at com.justep.ui.system.service.doc.DocUtils.service(Unknown Source)

at UploadDoc.doPost(UploadDoc.java:15)

at com.justep.ui.impl.JProcessorImpl.execute(Unknown Source)

at com.justep.ui.JavaServer.runJava(Unknown Source)

at com.justep.ui.JavaServer.doJ(Unknown Source)

at com.justep.ui.JavaServer.service(Native Method)

... 14 more

Caused by: org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Read timed out

at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:367)

at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)

at com.justep.ui.util.NetUtils.generateParts(Unknown Source)

... 21 more

Caused by: java.net.SocketTimeoutException: Read timed out

at java.net.SocketInputStream.socketRead0(Native Method)

at java.net.SocketInputStream.read(SocketInputStream.java:129)

at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:751)

at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:781)

at org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)

at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)

at org.apache.coyote.Request.doRead(Request.java:428)

at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)

at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)

at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327)

at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)

at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:977)

at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)

at java.io.InputStream.read(InputStream.java:85)

at org.apache.commons.fileupload.util.Streams.copy(Streams.java:94)

at org.apache.commons.fileupload.util.Streams.copy(Streams.java:64)

at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)

... 23 more

转载地址:http://tadqv.baihongyu.com/

你可能感兴趣的文章
Mybatis生成resulteMap时的注意事项
查看>>
jquery-jqzoom 插件 用例
查看>>
1007. Maximum Subsequence Sum (25)
查看>>
iframe的父子层跨域 用了百度的postMessage()方法
查看>>
图片生成缩略图
查看>>
动态规划 例子与复杂度
查看>>
查看oracle数据库的连接数以及用户
查看>>
【数据结构】栈结构操作示例
查看>>
中建项目环境迁移说明
查看>>
三.野指针和free
查看>>
activemq5.14+zookeeper3.4.9实现高可用
查看>>
TCP/IP详解学习笔记(3)IP协议ARP协议和RARP协议
查看>>
简单【用户输入验证】
查看>>
python tkinter GUI绘制,以及点击更新显示图片
查看>>
HDU4405--Aeroplane chess(概率dp)
查看>>
CS0103: The name ‘Scripts’ does not exist in the current context解决方法
查看>>
20130330java基础学习笔记-语句_for循环嵌套练习2
查看>>
Spring面试题
查看>>
窥视SP2010--第一章节--SP2010开发者路线图
查看>>
MVC,MVP 和 MVVM 的图示,区别
查看>>