Hi all,

I have made some modifications to allow that the user can upload some files.
If the file is not very big (more or less 30 MB) all works fine, but if the
file is big (for example, 400 MB) the user receives this error:

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

javax.servlet.ServletException: Servlet execution threw an exception
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:266)

root cause

java.lang.OutOfMemoryError: Java heap space
        
org.apache.commons.fileupload.disk.DiskFileItem.get(DiskFileItem.java:313)

org.ofbiz.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:217)
        
org.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:628)
        
org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:374)
        org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:217)
        org.ofbiz.webapp.control.ControlServlet.doPost(ControlServlet.java:83)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:266)

note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.16 logs.

Apache Tomcat/6.0.16

-------------------------------

Anyone know how can I fix this? Is there some limit in the Tomcat server to
upload files?

Thanks in advance,
Mario.
-- 
View this message in context: 
http://n4.nabble.com/Error-uploading-a-big-file-tp1018415p1018415.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to