[opencms-dev] Out of memory error upload pdfs
Chris Gamble
Chris.Gamble at cpbinc.com
Fri Jul 1 17:03:37 CEST 2005
I think it may be something more insidous with my PDF files. Looking through the workplace error log, I found the following error. Also, the system will load some pdfs that are over 2MB. Only certain files are rejected. And finally, I dont think the maz_allowed_packet will work because Im not using MySQL.
java.net.URISyntaxException: Illegal character in path at index 28: /us/consulting/pdf/VentAHood Release.pdf
30 Jun 2005 19:11:49,003 WARN [ms.staticexport.CmsLinkManager: 235] Could not resolve the site path of malformed Uri "/us/consulting/pdf/VentAHood Release.pdf"
at java.lang.Thread.run(Thread.java:534)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
-----Mensaje original-----
Message: 24
Date: Fri, 1 Jul 2005 09:23:04 +0200
From: David Garc?a Gonz?lez <david.garciag at fundacionctic.org>
Subject: RE: [opencms-dev] Out of memory error upload pdfs
To: "The OpenCms mailing list" <opencms-dev at opencms.org>
Message-ID:
<09700B613C4DD84FA9F2FEA5218828196AA67B at ayalga.fundacionctic.org>
Content-Type: text/plain; charset="iso-8859-1"
Helo Chris,
I think the solution is to change the max_allowed_packet property in mysql. By default it is 2M. You have to change it to allow OpenCMS store larger arvhives.
You only have to put the line:
max_allowed_packet=8M
inside the [mysqld] section in the my.ini configuration file.
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] En nombre de Chris Gamble
Enviado el: jueves, 30 de junio de 2005 18:27
Para: opencms-dev at opencms.org
Asunto: [opencms-dev] Out of memory error upload pdfs
I am once again trying to load our pdf series into opencms. I am using version 6.0 release, postgres 7.4 under tomcat 5.5.9 with jdk1.4.2.7. During the publish phase, I get the attached area. Are there any known problems or perhaps a work around I can use for this?
( 1 / 1 ) Publishing file /system/galleries/download/pdf/BAJB.pdf ... Error publishing file "/system/galleries/download/pdf/BAJB.pdf".
Exception java.lang.OutOfMemoryError
Statistics: published files: 1, published folders: 0, deleted folders: 0, duration: 00:00:07
Exception org.opencms.file.CmsVfsException: Error publishing file "/system/galleries/download/pdf/BAJB.pdf".
at org.opencms.db.CmsDbContext.throwException(CmsDbContext.java:217)
at org.opencms.db.CmsDbContext.report(CmsDbContext.java:197)
at org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1632)
at org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4365)
at org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2790)
at org.opencms.file.CmsObject.publishProject(CmsObject.java:1873)
at org.opencms.workplace.threads.CmsPublishThread.run(CmsPublishThread.java:122)
Caused by: java.lang.OutOfMemoryError
More information about the opencms-dev
mailing list