Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2008

Tip: Looking for answers? Try searching our database.

File Upload

Thread view: 
jerry - 10 Jan 2008 01:56 GMT
Hi,

I have struts application that handle file upload, and i have two
server for testing and for production. I used FileUpload
(org.apache.commons.fileupload.FileUploadBase) to handle the
uploading. I tested to test server and it works well, but when i tried
to run to my prod server, I got throw error

org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. No space left on device
    at
org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:
429)
    at
org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipartRequestHandler.java:
233)
    at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:
1209)

etc......

this error "No space left on device" what particular device it is
mean?

thanks.

Jerry Balingasa
Arne Vajhøj - 10 Jan 2008 02:24 GMT
> I have struts application that handle file upload, and i have two
> server for testing and for production. I used FileUpload
[quoted text clipped - 12 lines]
>     at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:
> 1209)

> this error "No space left on device" what particular device it is
> mean?

The one returned by System.getProperty("java.io.tmpdir") !

Arne
jerry - 10 Jan 2008 02:51 GMT
> The one returned by System.getProperty("java.io.tmpdir") !
>
> Arne

That's mean, my temp dir is not enough space? because if I tried to
upload like 100kb file size it works, but when it comes to more than
400kb, that errors thrown(Processing of multipart/form-data request
failed. No space left on device).

Thanks...

Jerry Balingasa
Tim Slattery - 10 Jan 2008 14:20 GMT
>> The one returned by System.getProperty("java.io.tmpdir") !
>>
[quoted text clipped - 4 lines]
>400kb, that errors thrown(Processing of multipart/form-data request
>failed. No space left on device).

I'd guess that there's not much space available on the disk where the
temp directory resides.

Signature

Tim Slattery
Slattery_T@bls.gov
http://members.cox.net/slatteryt

Jerry Balingasa - 11 Jan 2008 12:39 GMT
> I'd guess that there's not much space available on the disk where the
> temp directory resides.
>
> --
> Tim Slattery
> Slatter...@bls.govhttp://members.cox.net/slatteryt

I don't think it was the disk space, because i have enough space
available even in my temp dir.

any helps? :)

Jerry Balingasa
Nigel Wade - 11 Jan 2008 16:35 GMT
>> I'd guess that there's not much space available on the disk where the
>> temp directory resides.
[quoted text clipped - 3 lines]
>
> any helps? :)

Did you check on the server, where it is being written?

Signature

Nigel Wade, System Administrator, Space Plasma Physics Group,
           University of Leicester, Leicester, LE1 7RH, UK
E-mail :    nmw@ion.le.ac.uk
Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Jerry Balingasa - 14 Jan 2008 09:28 GMT
> JerryBalingasa wrote:
>
[quoted text clipped - 13 lines]
> E-mail :    n...@ion.le.ac.uk
> Phone :     +44 (0)116 2523548, Fax : +44 (0)116 2523555

Yes I did and there is a lot of space in my disk to handle a big
file..

If I upload about 120kb it works fine, but if I upload around 140kb
and up, the error comes up.
I upload a several times with file size 110kb and less to see if my
temp space is low but, it's all ok.. Or i just got a low resource like
vm? that's why i got that error.

Thanks..

--
Jerry Balingasa
Andreas Leitgeb - 14 Jan 2008 10:04 GMT
>> Did you check on the server, where it is being written?
>
[quoted text clipped - 3 lines]
> If I upload about 120kb it works fine, but if I upload around 140kb
> and up, the error comes up.

Sorry, if it has been mentioned already, but is the server using some
"normal" protocol (http(PUT), ftp, scp), or is it just the server-part
of your application with some ad-hoc defined and implemented protocol?
Is the server completely under your control, or do you have
only that particular upload-protocol available to work on that
server?

> I upload a several times with file size 110kb and less to see if my
> temp space is low but, it's all ok.. Or i just got a low resource like
> vm? that's why i got that error.

That's not the same, since the temp-space might be freed when
the upload of each of the small files is complete. This Temp-space
might even be in memory and thus be constrained by imposed memory-
usage limitations on the server.

Have you tried uploading these small files in parallel, if at all
possible?
Arne Vajhøj - 14 Jan 2008 13:26 GMT
> Sorry, if it has been mentioned already, but is the server using some
> "normal" protocol (http(PUT), ftp, scp), or is it just the server-part
> of your application with some ad-hoc defined and implemented protocol?
> Is the server completely under your control, or do you have
> only that particular upload-protocol available to work on that
> server?

The original posts said Jakarta Commons FileUpload.

That implies HTTP POST.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.