This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JSF and the fly likes t:inputFileUpload, java.lang.OutOfMemoryError!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "t:inputFileUpload, java.lang.OutOfMemoryError!!" Watch "t:inputFileUpload, java.lang.OutOfMemoryError!!" New topic
Author

t:inputFileUpload, java.lang.OutOfMemoryError!!

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I have set the uploadMaxFileSize of extensionsFilter to 100m in web.xml as follow:


but when I upload a 2M file, java.lang.OutOfMemoryError occur!! why will this happen?
the full stacktrace is as follow:
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39547
    
  27
How much memory does the JVM have available? What you have set is just the acceptable limit for files; it doesn't mean the JVM can deal with files of that size.


Ping & DNS - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: t:inputFileUpload, java.lang.OutOfMemoryError!!
 
Similar Threads
Simple table with foreign index
s:excelExport Exception in PhaseListener
javax.faces.application.ViewExpiredException
Getting "view could not be restored" error, has anyone seen this before?
Problem with rich:listShuttle