> -----Original Message-----
> From: Sharma, Kamlesh [RA] [mailto:KAMLESH.SHARMA@saic.com]
> Sent: Wednesday, April 28, 2004 1:37 PM
> To: commons-user@jakarta.apache.org
> Subject: Re:File upload exception
>
>
> Hi, All
>
> I am receiving following exception, while uploading the file
> using struts. I
> am
> using Weblogic 8.1 server. However, I am able to process the file and the
> server is throwing this exception. Kindly help, thanks in advance.
[color=red]You cannot use the getParameter() family of calls if you're using FileUpload
to parse the request. It would appear that you are trying to use both to
process the same request, which isn't going to work. If you're using
FileUpload to parse a multipart request, you'll need to make sure you don't
call any of the getParameter() family of methods.[/color]--
Martin Cooper
>
> <Apr 27, 2004 10:05:41 AM EDT> <Warning> <HTTP> <BEA-101138>
> <ServletContext(id=
> 4404549,name=R1,context-path=/R1) One of the getParameter family
> of methods
> call
> ed after reading from the ServletInputStream. Not merging post
> parameters.>
> <2004-04-27 09:46:31,972> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <2004-04-27 09:46:31,972> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <Apr 27, 2004 9:46:31 AM EDT> <Error> <HTTP> <BEA-101017>
> <[ServletContext(id=44
> 04549,name=R1,context-path=/R1)] Root cause of ServletException.
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> >
> <2004-04-27 10:05:18,974> [INFO ] - Find SQL:SELECT orgID,
> orgContactInfoID, ah
> aID, cmsID, compFollowed, deactReason, denialCmt, enrollNum, exemptOrg,
> facility
> , facType, groupType, groupTypeOth, holdCmt, jPasswrd, medID, modifyUser,
> name,
> orgAdmUsername, status FROM Organization
> (OrganizationDAOImpl.java:311)
> <Apr 27, 2004 10:05:41 AM EDT> <Warning> <HTTP> <BEA-101138>
> <ServletContext(id=
> 4404549,name=R1,context-path=/R1) One of the getParameter family
> of methods
> call
> ed after reading from the ServletInputStream. Not merging post
> parameters.>
> <2004-04-27 10:05:42,207> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1412'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <2004-04-27 10:05:42,207> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1412'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
> Regards
> Kam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
> From: Sharma, Kamlesh [RA] [mailto:KAMLESH.SHARMA@saic.com]
> Sent: Wednesday, April 28, 2004 1:37 PM
> To: commons-user@jakarta.apache.org
> Subject: Re:File upload exception
>
>
> Hi, All
>
> I am receiving following exception, while uploading the file
> using struts. I
> am
> using Weblogic 8.1 server. However, I am able to process the file and the
> server is throwing this exception. Kindly help, thanks in advance.
[color=red]You cannot use the getParameter() family of calls if you're using FileUpload
to parse the request. It would appear that you are trying to use both to
process the same request, which isn't going to work. If you're using
FileUpload to parse a multipart request, you'll need to make sure you don't
call any of the getParameter() family of methods.[/color]--
Martin Cooper
>
> <Apr 27, 2004 10:05:41 AM EDT> <Warning> <HTTP> <BEA-101138>
> <ServletContext(id=
> 4404549,name=R1,context-path=/R1) One of the getParameter family
> of methods
> call
> ed after reading from the ServletInputStream. Not merging post
> parameters.>
> <2004-04-27 09:46:31,972> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <2004-04-27 09:46:31,972> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <Apr 27, 2004 9:46:31 AM EDT> <Error> <HTTP> <BEA-101017>
> <[ServletContext(id=44
> 04549,name=R1,context-path=/R1)] Root cause of ServletException.
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1230'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> >
> <2004-04-27 10:05:18,974> [INFO ] - Find SQL:SELECT orgID,
> orgContactInfoID, ah
> aID, cmsID, compFollowed, deactReason, denialCmt, enrollNum, exemptOrg,
> facility
> , facType, groupType, groupTypeOth, holdCmt, jPasswrd, medID, modifyUser,
> name,
> orgAdmUsername, status FROM Organization
> (OrganizationDAOImpl.java:311)
> <Apr 27, 2004 10:05:41 AM EDT> <Warning> <HTTP> <BEA-101138>
> <ServletContext(id=
> 4404549,name=R1,context-path=/R1) One of the getParameter family
> of methods
> call
> ed after reading from the ServletInputStream. Not merging post
> parameters.>
> <2004-04-27 10:05:42,207> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1412'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
> <2004-04-27 10:05:42,207> [ERROR] - Failed to parse multipart request
> (CommonsM
> ultipartRequestHandler.java:241)
> org.apache.commons.fileupload.FileUploadException: Processing of
> multipart/form-
> data request failed. EOF after reading only: '0' of: '1412'
> promised bytes,
> out
> of which at least: '0' were already buffered
> at
> org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadB
> ase.java:429)
> at
> org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest
> (CommonsMultipartRequestHandler.java:233)
> at
> org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
> at
> org.apache.struts.action.RequestProcessor.processPopulate(RequestProc
> essor.java:821)
> at
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:254)
> at
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
> 2)
> at
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 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:305)
> at
> weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
> n.run(WebAppServletContext.java:6291)
> at
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
> dSubject.java:317)
> at
> weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
> 97)
> at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
> rvletContext.java:3575)
> at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
> pl.java:2573)
> at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
> at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
>
> Regards
> Kam
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
本文探讨了在使用Struts框架进行文件上传时遇到的FileUploadException问题,并提供了详细的错误日志及解决方法。强调了当使用Commons FileUpload解析multipart请求时,避免调用getParameter系列方法的重要性。
8319

被折叠的 条评论
为什么被折叠?



