• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.OutOfMemoryError with usign struts and HTML-el tags

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I've a problem with struts, I developing a new JSP with a lot of elements (In this case hidden)with the html-el tags, and this form is an multipart/form-data and when i insert a lot of form's elements, when i upload this form it throw an java.lang.OutOfMemoryError.

If i using and normal form without multipart it's work fine.

If i eleminate some element in this form, work fine too. But i need all this elements in this form.

Somebody know what happens?

Is a struts restriction (number of elements in a multipart form)?

Thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Without more information, it's hard to say what might be happening. Here are a few thoughts, though:

1-Does the size of the file being uploaded make any difference? Are you uploading a very large file?

2-Are you using DynaActionForm? If so, I'd try changing it to a subclass of ActionForm.

3-Look in the documentation for your Application Server for information on how to increase the memory size of the JVM.
 
Daniel Prado
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

>1-Does the size of the file being uploaded make any difference? Are you uploading a very large file?
No, I tried upload without file or very small but it doesn't work.

>2-Are you using DynaActionForm? If so, I'd try changing it to a subclass of ActionForm.
No, only html-el tags.

>3-Look in the documentation for your Application Server for information on how to increase the memory size of the JVM.

Ok, I'm going to increase the memory size.


Thanks.

Cheers.
 
Daniel Prado
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Other information:

The problem happen when i insert more than (more or less) 140 elements in the form.

Cheers
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic