Hi Antonio,
On Jan 21, 2008, at 11:56 AM, Antonio Goncalves wrote:
Hi all,
I'm trying to upgrade XWiki from 1.0 to 1.2. The problem comes when
I want to import my .xar file (6Mb) and get a Java Heap Space Out Of
Memory Exception.
I've checked your admin page
http://www.xwiki.org/xwiki/bin/view/FAQ/Howtoincreasethemaximumattachmentsi…
and it looks like for my problem (file < 10Mb), only MySQL should
be changed. So I've changed the max_allowed_packet parameter but the
problem still occurs. I don't have anything in Tomcat or MySQL logs,
which is a bit strange. The only trace I get is the one bellow. It
looks like Lucene breaks because of the file upload not working. Any
idea ? How could I get more details in the log ?
There are 2 places where to make changes when you want to import a
large XAR:
1) the mysql config as you said,
2) the XWikiPreferences object. Before 1.2 it had a max of 1MB if I
recall correctly. In 1.2 we've upgraded it to 30MB I believe. However
if you're using your old XWikiPreferences object then you'll have th
max_upload_size set to the old value.
See
http://jira.xwiki.org/jira/browse/XE-145
Now regarding lucene I don't understand why this the import has
anything to do with lucene but there's probably something I don't know
here...
Try changing the max file upload parameter in your xwikipreferences
and try the upload again.
-Vincent
Thanks,
Antonio
[
http://localhost:8080/xwiki/bin/upload/XWiki/Import] [http-8080-
Processor25] ERROR lucene.IndexUpdater - invalid
parameters given to add: XWiki.Import, null,
{grouplist={xwiki:XWiki.XWikiGuest=[],
xwiki:xwiki:XWiki.XWikiGuest=[]}, fileuploadlist=[name=null,
StoreLocation=D:\Servers\Tomcat\apache-tomcat-5.5.23\temp
\upload_662feb76_117990b87e0__8000_00000000.tmp, size=77bytes,
isFormField=true
, FieldName=xredirect, name=null, StoreLocation=D:\Servers\Tomcat
\apache-tomcat-5.5.23\temp
\upload_662feb76_117990b87e0__8000_00000001.tmp,
size=20bytes, isFormField=true, FieldName=filename,
name=Backup2008-01-20.xar , StoreLocation=D:\Servers\Tomcat\apache-
tomcat-5.5.23\temp\upl
oad_662feb76_117990b87e0__8000_00000002.tmp, size=6639095bytes,
isFormField=false, FieldName=filepath],
msg=com.xpn.xwiki.web.XWikiMessageTo
ol@1171e30, util=com.xpn.xwiki.util.Util@bf1a4a, baseskin=albatross,
tdoc=XWiki.Import, ajax=false, locale=fr, doc= XWiki.Import,
mainxwiki=x
wiki, skin=albatross, message=javaheapspace,
fileuploadplugin
=com.xpn.xwiki.plugin.fileupload.FileUploadPlugin@571cc4,
vcontext=org.apache.v
elocity.VelocityContext@1219665}