2 Replies Latest reply: Nov 20, 2007 3:48 PM by 666705 RSS

    java.net.ProtocolException: EOF after reading only : '1081736' of: '2359895

    666705
      Hi All,
                
                I am getting java.net.ProtocolException: EOF after reading only: '1081736' of: '2359895' promised bytes, out of which at least: '2760' were already buffered
                
                In my production server, but unable to replicate on QA.
                
                here is the part of log.
                
                15 Nov 2007 11:13:26,409 FATAL ExecuteThread: '1' for queue:
                'weblogic.kernel.Default' com.acuvue.exsimulator.servlet.UploadServlet
                com.acuvue.exsimulator.servlet.UploadServlet.serverProcessing(Unknown Source) Fatal Error while file uploading >>>>>
                org.apache.commons.fileupload.FileUploadBase$IOFileUploadException:
                Processing of multipart/form-data request failed. EOF after reading only:
                '1081736' of: '2359895' promised bytes, out of which at least: '2760'
                were already buffered
                     at
                org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:359)
                     at
                org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)
                     at
                com.acuvue.exsimulator.servlet.UploadServlet.serverProcessing(Unknown Source)
                     at com.acuvue.exsimulator.servlet.BaseServlet.service(Unknown Source)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                     at
                weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
                     at
                weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
                     at
                weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
                     at
                weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
                     at
                weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
                     at
                weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
                     at
                weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
                     at
                weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
                     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
                     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
                
                Caused by: java.net.ProtocolException: EOF after reading only:
                '1081736' of: '2359895' promised bytes, out of which at least: '2760' were
                already buffered
                     at
                weblogic.servlet.internal.PostInputStream.complain(PostInputStream.java:91)
                     at
                weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:172)
                     at
                weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:180)
                     at
                org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:959)
                     at
                org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887)
                     at java.io.InputStream.read(InputStream.java:89)
                     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:354)
                     ... 14 more
                
                your valuable information or suggestions will be of great help.
                
                Thanks.
        • 1. Re: java.net.ProtocolException: EOF after reading only : '1081736' of: '235
          666705
          Is this issue occurs frequently? Or just occasionally? If the latter, a nature guess is that the client cancels the uploading.
                    
                    BTW, could you please provide the version of your WLS and the use case? These information would be helpful for people to comments.
                    
                    Thanks,
                    -Fred.
          • 2. Re: java.net.ProtocolException: EOF after reading only : '1081736' of: '235
            666705
            Hi Fred,
                      
                      Thanks Fred for replying, Yes, this issues occurs occasionally, we using flash as client ( adobe flash 9.1)
                      and weblogic 8.1 SP5.
                      
                      I am unable to replicate the issue on production server by myself, but when others are uploading the file, i can see the exception in the log.
                      
                      Thanks,
                      Sharath.