[opencms-dev] problem in publishing binary file 6.0beta1

Zhao, Chunhua chunhua at purdue.edu
Mon Apr 4 17:14:44 CEST 2005


Hi,
 
I am testing OpenCms, and my settings are: OpenCms 6.0 beta 1 + MySQL 4.1 + TomCat 5.0. 
 
When I tried to publish a binary file (e.g. MS Word document) of around 2M in size, I got the following error messages:
 
Validating links ...
... finished validating links
Publishing resources ...
Publishing files ...
( 1 / 1 ) Publishing file /test/test1/Poster2.ppt ... Error publishing file /sites/default/test/test1/Poster2.ppt
Exception org.opencms.file.CmsVfsResourceNotFoundException: [org.opencms.db.mysql.CmsVfsDriver.readFile] af0682d6-a487-11d9-9305-5781d08c36fe [Code 2 - Resource not found!]
at org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:963)
at org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1035)
at org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:921)
at org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1368)
at org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4665)
at org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2539)
at org.opencms.file.CmsObject.publishProject(CmsObject.java:1889)
at org.opencms.threads.CmsPublishThread.run(CmsPublishThread.java:82)
Statistics: published files: 1, published folders: 0, deleted folders: 0, duration: 00:00:00
Exception org.opencms.file.CmsVfsResourceNotFoundException: [org.opencms.db.mysql.CmsVfsDriver.readFile] af0682d6-a487-11d9-9305-5781d08c36fe [Code 2 - Resource not found!]
at org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:963)
at org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1035)
at org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:921)
at org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1368)
at org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4665)
at org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2539)
at org.opencms.file.CmsObject.publishProject(CmsObject.java:1889)
at org.opencms.threads.CmsPublishThread.run(CmsPublishThread.java:82)

The publish works for smaller binary files, such as 200KB. I tried to change some parameters in MySQL, including max_allowed_packet to 32M, but still can't solve this problem. 
 
Any suggestions?
 
Thanks.
chunhua
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050404/63efe719/attachment.htm>


More information about the opencms-dev mailing list