weblogic 8.1 filedownload實現中的奇怪問題
現在做檔案下載的公共模組。遇到如下問題,請賜教:
我已經在程式碼中設定了 m_response.setContentLength((int)l);也就是下載檔案的大小。為什麼在最後一個迴圈的時候總是出錯。。。
Old JSP begins
Old JSP 001
Old JSP 002
Old JSP 003
DiskFileDownlaod downloadFile 001;
DiskFileDownlaod downloadFile 002;
DiskFileDownlaod downloadFile 003;
DiskFileDownlaod downloadFile 004;
DiskFileDownlaod downloadFile 005;
DiskFileDownlaod downloadFile 006;
DiskFileDownlaod downloadFile 007;
DiskFileDownlaod downloadFile 007-1;
DiskFileDownlaod downloadFile 007-2;
DiskFileDownlaod downloadFile 007-3;
the blockBuffer size is:65000
the blockSize is:65000
the read size is:65000
the k value is::65000
the l value is::116372
DiskFileDownlaod downloadFile 007-4;
DiskFileDownlaod downloadFile 007-1;
DiskFileDownlaod downloadFile 007-2;
DiskFileDownlaod downloadFile 007-3;
the blockBuffer size is:65000
the blockSize is:65000
the read size is:51372
the k value is::116372
the l value is::116372
<2004-2-13 上午09時52分03秒 GMT+08:00> <Error> <HTTP> <BEA-101019> <[ServletCont
ext(id=14276270,name=filedownload,context-path=/filedownload)] Servlet failed wi
th IOException
java.net.ProtocolException: Exceeded stated content-length of: '116372' bytes
at weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutp
utStreamImpl.java:219)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutput
StreamImpl.java:170)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:236)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:150)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:138)
at jsp_servlet._jsp.__oldfiledownload._jspService(__oldfiledownload.java
:147)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<2004-2-13 上午09時56分35秒 GMT+08:00> <Error> <JTA> <BEA-110032> <Error renamin
g file [.\cgServer\./logs/cgServer.0000.tmp] to [.\cgServer\./logs/cgServer.0000
.tlog].>
我已經在程式碼中設定了 m_response.setContentLength((int)l);也就是下載檔案的大小。為什麼在最後一個迴圈的時候總是出錯。。。
Old JSP begins
Old JSP 001
Old JSP 002
Old JSP 003
DiskFileDownlaod downloadFile 001;
DiskFileDownlaod downloadFile 002;
DiskFileDownlaod downloadFile 003;
DiskFileDownlaod downloadFile 004;
DiskFileDownlaod downloadFile 005;
DiskFileDownlaod downloadFile 006;
DiskFileDownlaod downloadFile 007;
DiskFileDownlaod downloadFile 007-1;
DiskFileDownlaod downloadFile 007-2;
DiskFileDownlaod downloadFile 007-3;
the blockBuffer size is:65000
the blockSize is:65000
the read size is:65000
the k value is::65000
the l value is::116372
DiskFileDownlaod downloadFile 007-4;
DiskFileDownlaod downloadFile 007-1;
DiskFileDownlaod downloadFile 007-2;
DiskFileDownlaod downloadFile 007-3;
the blockBuffer size is:65000
the blockSize is:65000
the read size is:51372
the k value is::116372
the l value is::116372
<2004-2-13 上午09時52分03秒 GMT+08:00> <Error> <HTTP> <BEA-101019> <[ServletCont
ext(id=14276270,name=filedownload,context-path=/filedownload)] Servlet failed wi
th IOException
java.net.ProtocolException: Exceeded stated content-length of: '116372' bytes
at weblogic.servlet.internal.ServletOutputStreamImpl.checkCL(ServletOutp
utStreamImpl.java:219)
at weblogic.servlet.internal.ServletOutputStreamImpl.write(ServletOutput
StreamImpl.java:170)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:236)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:150)
at com.hp.j2ee.FileDownload.DiskFileDownload.downloadFile(DiskFileDownlo
ad.java:138)
at jsp_servlet._jsp.__oldfiledownload._jspService(__oldfiledownload.java
:147)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:387)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:431)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:305)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:6310)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
dSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>
<2004-2-13 上午09時56分35秒 GMT+08:00> <Error> <JTA> <BEA-110032> <Error renamin
g file [.\cgServer\./logs/cgServer.0000.tmp] to [.\cgServer\./logs/cgServer.0000
.tlog].>
相關文章
- Ofbiz 3.0 + Weblogic 8.1 遇到的問題Web
- weblogic7下正常,weblogic8.1的utf-8編碼出現問題Web
- 從Tomcat向Weblogic8.1移植的問題TomcatWeb
- 在Weblogic+JBuilder7使用時的奇怪問題 (轉)WebUI
- jsp中的奇怪問題JS
- [疑問]weblogic8.1的自動更新JSP問題.WebJS
- weblogic8.1連線多使用者的問題Web
- JavaScript 中的一些奇怪問題JavaScript
- weblogic中 JMS 的配置問題Web
- JBuilder9結合WEBLOGIC8.1開發BMP的問題!!UIWeb
- WebLogic8.1服務無法啟動的問題,請指教!!Web
- weblogic中例外處理的問題Web
- weblogic中釋出jive的問題Web
- 配置ASM磁碟時發現的奇怪問題,求解~ASM
- 關於SESSION中出現的奇怪的問題!高手進~~Session
- itoa函式的奇怪問題函式
- 遇到mysql的奇怪問題了MySql
- 關於session的奇怪問題Session
- MySQL複製的奇怪問題MySql
- Weblogic 8.1 和 Hibernate 2.1和Oracle 9i那個出的問題?WebOracle
- 發現一個有關error的非常奇怪的問題Error
- weblogic的portal問題Web
- Weblogic中部署本地實體bean的問題!!WebBean
- 使用strace分析exp的奇怪問題
- [求助] start with connect by 奇怪的問題
- 一個奇怪的Java集合問題Java
- RHEL6安裝過程出現的奇怪的問題
- jive安裝奇怪問題!!!!!!!!
- 一個奇怪的Golden Gate的問題Go
- Weblogic 7 問題。。Web
- 部署Weblogic的jms的問題Web
- 奇怪的登入問題及解決
- 分析go中slice的奇怪現象Go
- weblogic8.1叢集配置Web
- WEBLOGIC中類庫API的問題,請進來看!WebAPI
- React 折騰記 – (2) 實現路由動效過渡,並解決過程中奇奇怪怪的問題React路由
- React 折騰記 - (2) 實現路由動效過渡,並解決過程中奇奇怪怪的問題React路由
- 關於WEBLOGIC很菜的問題!Web