关于SmartUploadException和SocketTimeoutException异常不解

我在用JSPSmart上传的时候(由于项目一直用的是jspsamrt所以不能用fileupload)总是时不时报如下异常
[code="java"]
com.jspsmart.upload.SmartUploadException: Unable to upload.
at com.jspsmart.upload.SmartUpload.upload(SmartUpload.java:118)
at org.apache.jsp.send.uptext1_jsp._jspService(uptext1_jsp.java:104)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:595)
[/code]
我在用ajax做提交的时候也总是时不时报如下异常
[code="java"]
java.net.SocketTimeoutException: Read timed out
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:129)
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:777)
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:807)
org.apache.coyote.http11.filters.IdentityInputFilter.doRead(IdentityInputFilter.java:116)
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:742)
org.apache.coyote.Request.doRead(Request.java:419)
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:270)
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:293)
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:193)
com.oreilly.servlet.multipart.BufferedServletInputStream.fill(BufferedServletInputStream.java:64)
com.oreilly.servlet.multipart.BufferedServletInputStream.readLine(BufferedServletInputStream.java:92)
com.oreilly.servlet.multipart.LimitedServletInputStream.readLine(LimitedServletInputStream.java:60)
com.oreilly.servlet.multipart.MultipartParser.readLine(MultipartParser.java:464)
com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:203)
com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:222)
com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:173)
org.apache.jsp.upload.uptext1_jsp._jspService(uptext1_jsp.java:76)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
[/code]

不知道这两个异常是否有关联,是不是同一个原因导致。这两个异常一般在什么情况下容易发生。不知道有没有遇到过的指点一二、

查看全部
xindongyinfu
xindongyinfu
2010/10/23 09:57
  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

0个回复