On Mon, Jul 9, 2012 at 1:25 PM, David Delbecq <david.delbecq(a)meteo.be> wrote:
Hello,
Is there any generic solution to this problem? I get lots of such issues when exporting
documents. Each time exporter runs for 5 to 10 minutes before giving me one error i have
to fix. It's very time consuming.
Hard to tell you exactly with just the error. Could you export a page
which have the issue using the standard "EXPORT -> Export as XAR" menu
and send it to me so that I try to reproduce it.
Thank you
David Delbecq
----- Mail original -----
De: "David Delbecq" <david.delbecq(a)meteo.be>
À: "XWiki Users" <users(a)xwiki.org>
Envoyé: Jeudi 5 Juillet 2012 14:32:27
Objet: Re: [xwiki-users] unable to import big xar file
Hello again,
this procedure does not seem to work either. I am struggling with this exception when i
try to export some pages:
Wrapped Exception:
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace)
java.lang.NullPointerException
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.rcs.XWikiRCSArchive$XWikiJRCSNode.getTextString(XWikiRCSArchive.java:209)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.rcs.XWikiRCSArchive$XWikiJRCSNode.setDiff(XWikiRCSArchive.java:196)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.rcs.XWikiRCSArchive.<init>(XWikiRCSArchive.java:79)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.XWikiDocumentArchive.getArchive(XWikiDocumentArchive.java:201)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:3881)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.doc.XWikiDocument.toXML(XWikiDocument.java:3909)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.plugin.packaging.Package.addToDir(Package.java:1040)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
com.xpn.xwiki.plugin.packaging.Package.exportToDir(Package.java:355)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
sun.reflect.GeneratedMethodAccessor4625.invoke(Unknown Source)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
java.lang.reflect.Method.invoke(Method.java:597)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:129)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
Script1.getXAR(Script1.groovy:29)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
Script1$getXAR.callCurrent(Unknown Source)
2012-07-05 14:23:09,325 ERROR [STDERR]
(
http://intrarmi.oma.be/xwiki/bin/view/Main/largeExportBySpace) at
Script1.run(Script1.groovy:37)
For another page, i achieved to get around this problem by destroying it's history,
but even with no history, it doesn't work on this page. When i try to edit this page
(addin a single hello in the page for example), i get this error
Detailed information:
Error number 3201 in 3: Exception while saving document xwiki:XWiki.XWikiAdminGroup
Wrapped Exception: Error number 3211 in 3: Exception while updating archive
XWiki.XWikiAdminGroup
Wrapped Exception: Error number 13027 in 13: Failed to create diff for doc
XWiki.XWikiAdminGroup
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 3201 in 3: Exception while saving document
xwiki:XWiki.XWikiAdminGroup
Wrapped Exception: Error number 3211 in 3: Exception while updating archive
XWiki.XWikiAdminGroup
Wrapped Exception: Error number 13027 in 13: Failed to create diff for doc
XWiki.XWikiAdminGroup
Wrapped Exception: null
at com.xpn.xwiki.store.XWikiHibernateStore.saveXWikiDoc(XWikiHibernateStore.java:647)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:182)
at com.xpn.xwiki.store.XWikiCacheStore.saveXWikiDoc(XWikiCacheStore.java:175)
at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1412)
at com.xpn.xwiki.web.SaveAction.save(SaveAction.java:155)
at com.xpn.xwiki.web.SaveAction.action(SaveAction.java:172)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:214)
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
In this single case, i have ignored this page, but i'd like to find a more general
solution :)
David Delbecq
----- Mail original -----
De: "David Delbecq" <david.delbecq(a)meteo.be>
À: "XWiki Users" <users(a)xwiki.org>
Envoyé: Jeudi 5 Juillet 2012 11:30:51
Objet: Re: [xwiki-users] unable to import big xar file
Hello Thomas,
thank you for your quick response.
Investigations here have shown that the later exception (truncated zip) was due to the
old xwiki not exporting completly the xar (but without any error anywhere in the logs). I
see there is a large xar export script at
"http://extensions.xwiki.org/xwiki/bin/view/Extension/Large+Wiki+Export". but it
exports to a folder. Do i simply have to zip this folder to feed it to large xar import?
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users