当前位置: 代码迷 >> Java Web开发 >> java.net.ProtocolException:   Exceeded   stated   content-
  详细解决方案

java.net.ProtocolException:   Exceeded   stated   content-

热度:53   发布时间:2016-04-17 13:22:15.0
文件下载的问题
在文件下载的时候出现以下错误:
<2007-8-6   下午03时11分25秒   CST>   <Error>   <HTTP>   <BEA-101019>   <[ServletContext(id=9445859,name=WEB,context-path=/WEB)]   Servlet   failed   with   IOException
java.net.ProtocolException:   Exceeded   stated   content-length   of:   '15360 '   bytes
                at   weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutputStreamImpl.java:243)
                at   weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutputStreamImpl.java:182)
                at   com.jspsmart.upload.SmartUpload.downloadFile(SmartUpload.java:579)
                at   com.jspsmart.upload.SmartUpload.downloadFile(SmartUpload.java:508)
                at   com.jspsmart.upload.SmartUpload.downloadFile(SmartUpload.java:476)
                at   jsp_servlet._deptmanage.__flow_detail_download._jspService(__flow_detail_download.java:154)
                at   weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
                at   weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:971)
                at   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:402)
                at   weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
                at   weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
                at   weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
                at   weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
                at   weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
                at   weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
                at   weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
                at   weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
请问这是什么错误啊

------解决方案--------------------
java.net.ProtocolException: Exceeded stated content-length of: '15360 ' bytes
=============================================================================
你的文件内容太大了.超出了.
  相关解决方案