K.K. There has been a bug reported in WebSphere that causes this error. You may review the IBM website to see whether they have issued a patch for this or migrate to a different application server. I use Tomcat with this and have not experienced this problem at all.
Kind Regards � Schalk Neethling � Volume4.Development.Multimedia.Branding .emotionalize.conceptualize.visualize.realize Tel: +27125468436 Fax: +27125468436 email: [EMAIL PROTECTED] url: www.volume4.co.za ----- Original Message ----- From: "K K Fung (ASL)" <[EMAIL PROTECTED]> To: "Jakarta Commons Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 9:38 AM Subject: RE: [FileUpload] Problem when upload gif file > Hi, > > This time I wrote a servlet to do the upload file job but when it run to this line > > List items = upload.parseRequest(req); > > An exception throw: > org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly > at org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:519) > at org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:355) > at uploadFile.processRequest(uploadFile.java:49) > at uploadFile.doPost(uploadFile.java:110) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManager .java:827) > at com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecycl eServlet.java:159) > at com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServle t.java:286) > at com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecycle Servlet.java:106) > at com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java:47 2) > at com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletMan ager.java:1012) > at com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletManag er.java:913) > at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(W ebAppRequestDispatcher.java:499) > at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppRequest Dispatcher.java:278) > at com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppRequestD ispatcher.java:105) > at com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67) > at com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker. java:123) > at com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(CachedIn vocation.java:67) > at com.ibm.servlet.engine.invocation.CacheableInvocationContext.invoke(Cacheabl eInvocationContext.java:106) > at com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRequ estProcessor.java:125) > at com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListener .java:315) > at com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection.ja va:60) > at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:313) > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242) > at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) > > It doesn't matter you upload any file or not, still throw the above exception. I run this servlet under Websphere Enterprise 4.0 and JRUN Server 3.0 SP 2. JRUN run this program without problem. > > Regards, > K.K. > > > > -----Original Message----- > From: Martin Cooper [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 12 February, 2003 1:40 PM > To: [EMAIL PROTECTED] > Subject: Re: [FileUpload] Problem when upload gif file > > It seems that you are trying to parse the multipart request from within a > JSP page. This is definitely not recommended, and is untested. You should > do > that from within a servlet. > > Nevertheless, if you are having a problem with *one specific GIF file*, > and > can successfully upload other GIF files, and binary files in general, > please > create a bug report, as described here: > > http://jakarta.apache.org/site/bugs.html > > and attach the GIF file that is failing. > > -- > Martin Cooper > > > "K K Fung (ASL)" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I am trying to upload a gif file but got the following error. Beside that, > upload text file is okay. > > org.apache.commons.fileupload.FileUploadException: Processing of > multipart/form-data request failed. Stream ended unexpectedly > at > org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:519) > at > org.apache.commons.fileupload.FileUpload.parseRequest(FileUpload.java:355) > at uploadfile_jsp_14._jspService(uploadfile_jsp_14.java:95) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:139) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet. > ja > va:286) > at > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:415) > at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:544) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > at > com.ibm.servlet.engine.webapp.StrictServletInstance.doService(ServletManag > er > .java:827) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(StrictLifecy > cl > eServlet.java:159) > at > com.ibm.servlet.engine.webapp.IdleServletState.service(StrictLifecycleServ > le > t.java:286) > at > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(StrictLifecyc > le > Servlet.java:106) > at > com.ibm.servlet.engine.webapp.ServletInstance.service(ServletManager.java: > 47 > 2) > at > com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(ServletM > an > ager.java:1012) > at > com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(ServletMan > ag > er.java:913) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch > (W > ebAppRequestDispatcher.java:499) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.dispatch(WebAppReque > st > Dispatcher.java:278) > at > com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.forward(WebAppReques > tD > ispatcher.java:105) > at > com.ibm.servlet.engine.srt.WebAppInvoker.doForward(WebAppInvoker.java:67) > at > com.ibm.servlet.engine.srt.WebAppInvoker.handleInvocationHook(WebAppInvoke > r. > java:123) > at > com.ibm.servlet.engine.invocation.CachedInvocation.handleInvocation(Cached > In > vocation.java:67) > at > com.ibm.servlet.engine.srp.ServletRequestProcessor.dispatchByURI(ServletRe > qu > estProcessor.java:122) > at > com.ibm.servlet.engine.oselistener.OSEListenerDispatcher.service(OSEListen > er > .java:315) > at > com.ibm.servlet.engine.http11.HttpConnection.handleRequest(HttpConnection. > ja > va:60) > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:31 > 3) > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:242) > at com.ibm.ws.util.CachedThread.run(ThreadPool.java:122) > > > Regards, > K.K. > > > Confidentiality: > This e-mail and any attachments are confidential and may also be > privileged. If you are not the intended recipient, you must not > distribute this message or disclose its contents to any one, use it for > any purpose, store, copy or reproduce in whole or in part in any manner > or form or in any medium, or take any action based on the contents > hereof. In such case, please inform the sender by return e-mail and > delete this message immediately. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > Confidentiality: > This e-mail and any attachments are confidential and may also be > privileged. If you are not the intended recipient, you must not > distribute this message or disclose its contents to any one, use it for > any purpose, store, copy or reproduce in whole or in part in any manner > or form or in any medium, or take any action based on the contents > hereof. In such case, please inform the sender by return e-mail and > delete this message immediately. > > > > Confidentiality: > This e-mail and any attachments are confidential and may also be > privileged. If you are not the intended recipient, you must not > distribute this message or disclose its contents to any one, use it for > any purpose, store, copy or reproduce in whole or in part in any manner > or form or in any medium, or take any action based on the contents > hereof. In such case, please inform the sender by return e-mail and > delete this message immediately. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
