[Using Sakai] sakai 2.8 binary verison File upload problems

Steve Swinsburg steve.swinsburg at gmail.com
Thu Aug 4 00:01:28 PDT 2011


Hi,

The JVM has run out of memory: caused by: java.lang.OutOfMemoryError: Java heap space

What are your JAVA_OPTS and how much physical memory do you have on the machine?

cheers,
Steve




On 04/08/2011, at 4:39 PM, Latif SAĞLAM wrote:

> Hi, 
> In sakai 2.8.0 binary version, when I try to upload a new video in resources, an anexpected error has occured. I use to default.sakai.properties and change the max.upload 20 to 100 mb.. The error is below.
> 
> ----
> Error
> An unexpected error has occurred.
> 
> 
> Send a bug report
> To send a bug report, describe what you were doing when the problem occurred, in the space below, and press the submit button.
> 
> 
> 
> 
> 
> Recovery
> To recover from this error without sending in a bug report, please do the following:
> 
> Press the Logout button above to logout.
> Close your browser to assure a clean start.
> Re-open your browser and start again.
> 
> 
> 
> Technical Details
> This information will automatically be included in your bug report.
> 
> 
> org.sakaiproject.portal.api.PortalHandlerException: org.sakaiproject.tool.api.ToolException
>     at org.sakaiproject.portal.charon.SkinnableCharonPortal.doGet(SkinnableCharonPortal.java:862)
> caused by: org.sakaiproject.tool.api.ToolException
>     at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:236)
> caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
> caused by: java.lang.OutOfMemoryError: Java heap space
>     at org.hsqldb.lib.HsqlByteArrayOutputStream.ensureRoom(null:-1)
>     at org.hsqldb.lib.HsqlByteArrayOutputStream.write(null:-1)
>     at org.hsqldb.jdbc.jdbcPreparedStatement.setBinaryStream(null:-1)
>     at org.apache.commons.dbcp.DelegatingPreparedStatement.setBinaryStream(DelegatingPreparedStatement.java:154)
>     at org.sakaiproject.db.impl.BasicSqlService.dbWriteBinary(BasicSqlService.java:971)
>     at org.sakaiproject.content.impl.DbContentService$DbStorage.putResourceBodyDb(DbContentService.java:2162)
>     at org.sakaiproject.content.impl.DbContentService$DbStorage.putResourceBodyDb(DbContentService.java:2233)
>     at org.sakaiproject.content.impl.DbContentService$DbStorage.commitResource(DbContentService.java:1745)
>     at org.sakaiproject.content.impl.BaseContentService.commitResourceEdit(BaseContentService.java:5723)
>     at org.sakaiproject.content.impl.BaseContentService.commitResource(BaseContentService.java:5542)
>     at org.sakaiproject.content.cover.ContentHostingService.commitResource(ContentHostingService.java:530)
>     at org.sakaiproject.content.tool.ResourcesAction.createResources(ResourcesAction.java:1185)
>     at org.sakaiproject.content.tool.ResourcesAction.finishAction(ResourcesAction.java:7308)
>     at org.sakaiproject.content.tool.ResourcesAction.buildMainPanelContext(ResourcesAction.java:4542)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at sun.reflect.NativeMethodAccessorImpl.invoke(null:-1)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(null:-1)
>     at java.lang.reflect.Method.invoke(null:-1)
>     at org.sakaiproject.cheftool.VelocityPortletPaneledAction.toolModeDispatch(VelocityPortletPaneledAction.java:397)
>     at org.sakaiproject.cheftool.ToolServlet.doGet(ToolServlet.java:236)
>     at org.sakaiproject.cheftool.VelocityPortletPaneledAction.doGet(VelocityPortletPaneledAction.java:1032)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
>     at org.sakaiproject.vm.ComponentServlet.service(ComponentServlet.java:56)
>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
>     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:598)
>     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:659)
>     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:457)
>     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
> ---------------------------------------
> in the error, it said java heap size but my setenv.bat file i think it is enough..problem may be hsql. No idea , should i back to mysql or not. 
> set JAVA_OPTS=-server -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=512m -XX:NewSize=192m -XX:MaxNewSize=384m
>  -Dsakai.demo=false -Duser.language=tr -Duser.region=TR -Djava.awt.headless=true
>  -Dhttp.agent=Sakai
>  -Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING=false
>  -Dsun.lang.ClassLoader.allowArraySyntax=true
> 
> ---------
> I will wait all suggestions.. Thanks.
> _______________________________________________
> sakai-user mailing list
> sakai-user at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
> 
> TO UNSUBSCRIBE: send email to sakai-user-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-user/attachments/20110804/ee4aa34f/attachment-0001.html 


More information about the sakai-user mailing list