Solved

FileUploadException

Posted on 2006-06-26
10
900 Views
Last Modified: 2008-01-09
Hi,

I am using Struts to upload the file. Well, in the FormBean, I received it as FormFile which is correct. Everything works fine in my local machine. But when I tested it using SSL and Apache, it gives me the FileUploadException. This exception is intermittent and happened only if you do not specify anything in your <input type="file">.

This is the error stack trace.

org.apache.commons.fileupload.FileUploadException: Processing of multipart/form-data request failed. Read timed out
        at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:429)
        at com.bea.wlw.netui.pageflow.upload.PageFlowMultipartRequestHandler.handleRequest(PageFlowMultipartRequestHandler.java:263)

And this is how I validate the form bean.

if (uploadFile != null && uploadFile.getFileSize() > 0) {
    // my business lgoic
}

David
0
Comment
Question by:suprapto45
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
10 Comments
 
LVL 16

Author Comment

by:suprapto45
ID: 16989977
For more info,

The validation is successfully executed and I do not know how this thing happened. Is this SSL or Apache problem?

Thanks
David
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16989988
>> Processing of multipart/form-data request failed. Read timed out

Looks like just a problem which can be intermittent and where all you need to do is refresh. Like sometimes you open a web-site and it just doesn't open - what do you do? Refresh, and it opens ;-)
0
 
LVL 30

Accepted Solution

by:
Mayank S earned 300 total points
ID: 16990003
http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200309.mbox/%3CD5EF97BA1799084E857AA9E26CCE319701F03B5D@dasmthefl800.amedd.army.mil%3E looks like the same problem as yours - it says that it happened with usage of SSL on IE 5 but not with IE 6 ;-)
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 
LVL 16

Author Comment

by:suprapto45
ID: 16990152
thanks mayankeagle,

I will have a look at it.

David
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 200 total points
ID: 16990350
In this link: http://www.tek-tips.com/viewthread.cfm?qid=627123 it is suggested that you set the property disableUploadTimeout  to false.
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 16990426
I thought that was the default?
0
 
LVL 16

Author Comment

by:suprapto45
ID: 16990650
I myself am confused now. Let me check my Apache first. It may not serve the right files.

David
0
 
LVL 16

Author Comment

by:suprapto45
ID: 17023951
Nope,

Now it is more interesting....after modifying the JavaScript to modify the way it submits the form, it works better. Now, the problem is intermittent (sometimes only).

Any idea?

David
0
 
LVL 16

Author Comment

by:suprapto45
ID: 17056003
Though it does not solve the problem directly, it gives me an idea on what should I do.

Thanks mayankeagle and girionis.

David
0
 
LVL 35

Expert Comment

by:girionis
ID: 17056431
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unhandled exception type Exception 18 65
Convert from a json string array to a Java object 3 80
ejb entity bean example issue 2 43
Java class and jar 3 60
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question