[opencms-dev] Error while publishing a big folder

Rodrigo Baptista rbaptista at criticalsoftware.com
Thu Sep 2 17:42:53 CEST 2004


Hi Chis, and all,
I’ve tried to publish a folder with +/- 25 MB but I got exception (see
below):
 
When I changed the java vm to –Xms128m –Xmx256m and I was able to
publish the folder.
 
But I think it’s a memory leak so I updated the CmsResourceBroker but I
still got the following exception:
 
Anyone can tell me why this is happening and how to resolve this?
 
Thanks all,
Rodrigo Baptista
 
16:24:33,936 ERROR [STDERR] java.lang.OutOfMemoryError
16:24:34,637 WARN  [jbossweb] WARNING: Exception for
/opencms/opencms/system/workplace/action/publish_resource.html?action=sh
owPublishResult
java.lang.NullPointerException
        at
com.opencms.file.CmsRequestContext.getSiteRoot(CmsRequestContext.java:53
2)
        at com.opencms.file.CmsObject.getSiteRoot(CmsObject.java:4051)
        at com.opencms.file.CmsObject.readFile(CmsObject.java:2895)
        at com.opencms.core.OpenCms.initResource(OpenCms.java:793)
        at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:306)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:366)
        at
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationH
andler.java:293)
        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:581)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1687)
        at
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationCon
text.java:544)
        at org.mortbay.http.HttpContext.handle(HttpContext.java:1637)
        at org.mortbay.http.HttpServer.service(HttpServer.java:875)
        at org.jboss.jetty.Jetty.service(Jetty.java:543)
        at
org.mortbay.http.HttpConnection.service(HttpConnection.java:806)
        at
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:956)
        at
org.mortbay.http.HttpConnection.handle(HttpConnection.java:823)
        at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:203
)
        at
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:290)
        at
org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:743)
        at java.lang.Thread.run(Thread.java:536)
 
-----Original Message-----
From: Rodrigo Baptista [mailto:rbaptista at criticalsoftware.com] 
Sent: terça-feira, 31 de Agosto de 2004 16:53
To: 'opencms-dev at opencms.org'
Subject: Error while publishing a big folder
 
Dear all,
I’m using OpenCms 5.0.1 with MySql. This version of MySql has a variable
called max_allowed_packet that limits the size of the file we upload
(mine max_allowed_packet = 16M ), so I only can upload files to 16MB of
size. When I upload files which have a max of 16MB one by one everything
is ok, but when a do “publish directly” under of folder where these
files are (i.e folder size > 16 MB), the OpenCms simply crashes. I
thought that publishing a folder was simply a insert/update of the
tables where the online resources and files 
were.
 
I searched the mailing lists and bug tracking and I didn’t found
anything relating with this. Anyone can tell me why this is happening
and how to resolve this?
 
Thanks all,
 
Rodrigo Baptista 
 



DISCLAIMER: This message may contain confidential information or privileged material and is intended only for the individual(s) named. If you are not a named addressee and mistakenly received this message you should not copy or otherwise disseminate it: please delete this e-mail from your system and notify the sender immediately. E-mail transmissions are not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. Therefore, the sender does not accept liability for any errors or omissions in the contents of this message that arise as a result of e-mail transmissions. Please request a hard copy version if verification is required. Critical Software.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040902/c0d44083/attachment.htm>


More information about the opencms-dev mailing list