<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV>
<DIV dir=ltr align=left><SPAN class=040011419-04042005><FONT face=Arial
color=#0000ff size=2>Can you access that file when you browse your OFFline
project ? What I'm getting at is, are you sure the file was uploaded correctly
at all? Any exceptions/errors in your tomcat log concerning the upload of that
file ??</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=040011419-04042005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=040011419-04042005><FONT face=Arial
color=#0000ff size=2>Frans</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Zhao,
Chunhua<BR><B>Sent:</B> maandag 4 april 2005 17:15<BR><B>To:</B>
opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] problem in publishing
binary file 6.0beta1<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial color=#000000 size=2>
<DIV><FONT face=Arial size=2><SPAN
class=015412422-03042005>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=015412422-03042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=015412422-03042005>I am testing
OpenCms, and my settings are: OpenCms 6.0 beta 1 + MySQL 4.1 + TomCat 5.0.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=015412422-03042005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=015412422-03042005>When I tried to
publish a binary file (e.g. MS Word document) of around 2M in size, I got
the following error messages:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=015412422-03042005></SPAN></FONT> </DIV>
<DIV><FONT size=+0><SPAN class=015412422-03042005>
<DIV class=main><SPAN class=head><STRONG><FONT face=Arial color=#000099
size=2>Validating links ...<BR></FONT></STRONG></SPAN><SPAN
class=head><STRONG><FONT face=Arial color=#000099 size=2>... finished
validating links<BR></FONT></STRONG></SPAN><SPAN class=head><STRONG><FONT
face=Arial color=#000099 size=2>Publishing resources
...<BR></FONT></STRONG></SPAN><FONT face=Arial><FONT size=2><SPAN
class=head><STRONG><FONT color=#000099>Publishing files
...<BR></FONT></STRONG></SPAN><SPAN class=note><FONT color=#666666>( 1 / 1 )
Publishing file </FONT></SPAN><SPAN>/<SPAN
class=015412422-03042005>test/test1</SPAN>/Poster2.ppt </SPAN><SPAN>...
</SPAN></FONT></FONT><SPAN class=err><STRONG><FONT face=Arial color=#990000
size=2>Error publishing file /sites/default/<SPAN
class=015412422-03042005>test</SPAN>/<SPAN
class=015412422-03042005>test1</SPAN>/Poster2.ppt<BR></FONT></STRONG></SPAN><SPAN
class=throw><STRONG><FONT face=Arial color=#990000 size=2>Exception
org.opencms.file.CmsVfsResourceNotFoundException:
[org.opencms.db.mysql.CmsVfsDriver.readFile]
af0682d6-a487-11d9-9305-5781d08c36fe [Code 2 - Resource not found!]<BR>at
org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:963)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1035)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:921)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1368)<BR>at
org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4665)<BR>at
org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2539)<BR>at
org.opencms.file.CmsObject.publishProject(CmsObject.java:1889)<BR>at
org.opencms.threads.CmsPublishThread.run(CmsPublishThread.java:82)<BR></FONT></STRONG></SPAN><SPAN><FONT
face=Arial size=2>Statistics: published files: 1, published folders: 0,
deleted folders: 0, duration: 00:00:00<BR></FONT></SPAN><SPAN
class=throw><FONT face=Arial><FONT size=2><STRONG><FONT
color=#990000>Exception org.opencms.file.CmsVfsResourceNotFoundException:
[org.opencms.db.mysql.CmsVfsDriver.readFile]
af0682d6-a487-11d9-9305-5781d08c36fe [Code 2 - Resource not found!]<BR>at
org.opencms.db.generic.CmsVfsDriver.readFile(CmsVfsDriver.java:963)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishFileContent(CmsProjectDriver.java:1035)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishFile(CmsProjectDriver.java:921)<BR>at
org.opencms.db.generic.CmsProjectDriver.publishProject(CmsProjectDriver.java:1368)<BR>at
org.opencms.db.CmsDriverManager.publishProject(CmsDriverManager.java:4665)<BR>at
org.opencms.db.CmsSecurityManager.publishProject(CmsSecurityManager.java:2539)<BR>at
org.opencms.file.CmsObject.publishProject(CmsObject.java:1889)<BR>at
org.opencms.threads.CmsPublishThread.run(CmsPublishThread.java:82)</FONT></STRONG></FONT></FONT></SPAN></DIV><SPAN
class=throw><FONT face=Arial><FONT size=2><STRONG><FONT
color=#990000></FONT></STRONG></FONT></FONT></SPAN></SPAN></FONT></DIV>
<DIV><FONT size=+0><SPAN class=015412422-03042005><SPAN class=throw><FONT
face=Arial><FONT size=2>
<DIV class=main><BR></DIV></FONT></FONT></SPAN>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial size=2>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.
</FONT></SPAN></FONT></SPAN></DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial size=2>Any
suggestions?</FONT></SPAN></FONT></SPAN></DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial
size=2></FONT></SPAN></FONT></SPAN> </DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial
size=2>Thanks.</FONT></SPAN></FONT></SPAN></DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial
size=2>chunhua</FONT></SPAN></FONT></SPAN></DIV>
<DIV class=main><SPAN class=throw><FONT size=+0><SPAN
class=015412422-03042005><FONT face=Arial
size=2></FONT></SPAN> </DIV></FONT></SPAN></SPAN></FONT></DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>