[Building Sakai] Issues once i upload big files to lessons tools

Matthew Jones jonespm at umich.edu
Sat Apr 23 22:25:34 PDT 2011


While for sure that would fix the immediate problem, it's probably more
likely that melete isn't implementing uploading the file as a stream as
provided by KNL-325, and is loading the entire file into memory first, like
what was done back in early 2.6 and before that. So your java heap has to
be significantly larger (2 times?) than the maximum size file you plan on
allowing for upload just incase you hit one of these tools.

This is the kind of thing you may run into with contrib tools. Many of them
are written against old versions of Sakai and either aren't updated because
they want to try to maintain compatibility across a wide range of versions
or they just aren't updated as often. Some contrib tools handle may
compatibility with branches, wrappers, reflection or patches, but we really
don't have a standard way of doing it.

On Sun, Apr 24, 2011 at 12:56 AM, Steve Swinsburg <steve.swinsburg at gmail.com
> wrote:

> Hi
> You are out of memory. Increase your java opts to allocate more heap to the
> JVM.
>
> Cheers.
>
> Sent from my iPhone
>
> On 24/04/2011, at 1:09, Abd alqader Omar <abed2000abed at yahoo.com> wrote:
>
> Dear,
> When i'm tryting to uplaod big file into lesson tools give me error , for
> your information im increasing the limit upload to 900 MB, and my file 450
> MB then no problem for size why give me this error below:
> org.sakaiproject.portal.api.PortalHandlerException:
> org.sakaiproject.tool.api.ToolException: #{addSectionPage.setServerFile}:
> javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap
> space
>     at
> org.sakaiproject.portal.charon.handlers.ToolHandler.doPost(ToolHandler.java:63)
> caused by: org.sakaiproject.tool.api.ToolException:
> #{addSectionPage.setServerFile}: javax.faces.el.EvaluationException:
> java.lang.OutOfMemoryError: Java heap space
>     at
> org.sakaiproject.portal.charon.SkinnableCharonPortal.forwardTool(SkinnableCharonPortal.java:1346)
> caused by: javax.servlet.ServletException: #{addSectionPage.setServerFile}:
> javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap
> space
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
> caused by: javax.faces.FacesException: #{addSectionPage.setServerFile}:
> javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap
> space
>     at javax.faces.component.UICommand.broadcast(UICommand.java:312)
> caused by: javax.faces.el.EvaluationException: java.lang.OutOfMemoryError:
> Java heap space
>     at
> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
> caused by: java.lang.OutOfMemoryError: Java heap space
>     at
> org.sakaiproject.tool.melete.SectionPage.uploadSectionContent(SectionPage.java:943)
>     at
> org.sakaiproject.tool.melete.SectionPage.addResourceToMeleteCollection(SectionPage.java:668)
>     at
> org.sakaiproject.tool.melete.AddSectionPage.setServerFile(AddSectionPage.java:316)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:592)
>     at
> com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
>     at
> com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
>     at javax.faces.component.UICommand.broadcast(UICommand.java:312)
>     at
> javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
>     at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
>     at
> com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
>     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
>     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
>     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at org.sakaiproject.util.RequestFilter.doFilter(RequestFilter.java:555)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
>     at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
>     at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)
>     at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
>     at
> org.sakaiproject.jsf.util.HelperAwareJsfTool.dispatch(HelperAwareJsfTool.java:170)
>     at org.sakaiproject.jsf.util.JsfTool.doPost(JsfTool.java:256)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>     at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>     at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>     at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110424/8408494a/attachment.html 


More information about the sakai-dev mailing list