This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Unable to upload big file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Unable to upload big file" Watch "Unable to upload big file" New topic
Author

Unable to upload big file

Nilesh Sah
Greenhorn

Joined: Jun 17, 2005
Posts: 28
Hi ,
I am facing a problem in my application where application is not uploading file more than 1 kb.However it is successfully uploading all those files less than 1 kb. We are using multipart request.The error I am getting is following.
---------------------------------------------------
java.io.IOException: Posted content type isn't multipart/form-data
at com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:119)
at com.oreilly.servlet.multipart.MultipartParser.(MultipartParser.java:83)
at com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:117)
at com.mindspeed.product.admintool.docs.UploadDocAction.perform(UploadDocAction.java:44)
at com.mindspeed.product.admintool.PDATUploadServlet.processAction(PDATUploadServlet.java:55)
at com.mindspeed.product.admintool.PDATUploadServlet.doGet(PDATUploadServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
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)
----------------------------------------------------

Please help me out.

Thanks in advance.
Nilesh
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Try multipart parser from Apache group. It had limitation 2GB. If you need more than 2GB, then PM me for another parser.


Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Lucas Lee
Ranch Hand

Joined: Oct 02, 2006
Posts: 53
You need post your whole code here.
It seems that you use wrong enctype value to post data in your HTML form.
Nilesh Sah
Greenhorn

Joined: Jun 17, 2005
Posts: 28
Hi D Rog and Lucas Lee,
Thanks for responding. Earlier this was running fine. All of a sudden it stopped uploading files which are bigger than 1 kb in size.My OS is solaris and application server is weblogic 8.1 sp2.The same code is working fine in my development environment.Infact it uploads file in a temporary directory and finally copies it to main directory from there but it is unable to upload on temporary directory.

Thanks in advance.
Nilesh Sah
Nilesh Sah
Greenhorn

Joined: Jun 17, 2005
Posts: 28
Hi,
Has any body got any idea about this. Please help me out.

Regards
Nilesh Sah

 
 
subject: Unable to upload big file
 
Similar Threads
Problem deplying struts application in weblogic
Error 500--Internal Server Error-Null Pointer Exception
java.lang.NoSuchMethodError
ClassNotFoundException
JSP error