Hi,
I'm trying to import a package of documents from xwiki 3.4 to a new
xwiki 4.1.3 instance (the automatic database migration failed, so I
tried another method).
The attachment storage is "file".
The file upload is ok, but when I launch the import, I've the message
below (full stacktrace at the end of this mail) :
2012/07/17 14:50:34
[
http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc
es?section=Import] WARN com.xpn.xwiki.web.XWikiAction - Uncaught
exception: Error number 11015 in 11: Exception while importing
Wrapped Exception: null com.xpn.xwiki.XWikiException: Error number 11015
in 11: Exception while importing
Wrapped Exception: null
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:144)
Caused by: java.lang.NullPointerException: null
at
com.xpn.xwiki.doc.XWikiAttachmentArchive.getVersions(XWikiAttachmentArch
ive.java:223)
Have you some ideas about this problem ?
I try to migrate from 3.4 to 4.x for 3 weeks, so any help would be very
welcome.
Thank you
Best regards,
Nicolas
The full stack trace :
2012/07/17 14:50:34
[
http://172.24.1.135:8080/xem/wiki/commungie/import/XWiki/XWikiPreferenc
es?section=Import] WARN com.xpn.xwiki.web.XWikiAction - Uncaught
exception: Error number 11015 in 11: Exception while importing
Wrapped Exception: null
com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while
importing
Wrapped Exception: null
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:144)
~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:431) [struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
236) [struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
[struts-1.2.9.jar:1.2.9]
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
[struts-1.2.9.jar:1.2.9]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
[servlet-api.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
[servlet-api.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:120)
[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilt
er.java:144) [xwiki-platform-wysiwyg-server-4.1.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:
66) [xwiki-platform-webdav-server-4.1.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.
doFilter(SavedRequestRestorerFilter.java:208)
[xwiki-platform-container-servlet-4.1.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.
doFilter(SetCharacterEncodingFilter.java:111)
[xwiki-platform-container-servlet-4.1.3.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215) [catalina.jar:na]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188) [catalina.jar:na]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213) [catalina.jar:na]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:174) [catalina.jar:na]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:127) [catalina.jar:na]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:117) [catalina.jar:na]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:108) [catalina.jar:na]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
51) [catalina.jar:na]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:87
4) [tomcat-http.jar:na]
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:665) [tomcat-http.jar:na]
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:528) [tomcat-util.jar:5.1]
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:81) [tomcat-util.jar:5.1]
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:689) [tomcat-util.jar:5.1]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_29]
Caused by: java.lang.NullPointerException: null
at
com.xpn.xwiki.doc.XWikiAttachmentArchive.getVersions(XWikiAttachmentArch
ive.java:223) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
org.xwiki.store.legacy.store.internal.AttachmentArchiveSaveRunnable.<ini
t>(AttachmentArchiveSaveRunnable.java:70)
~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na]
at
org.xwiki.store.legacy.store.internal.FilesystemAttachmentVersioningStor
e.getArchiveSaveRunnable(FilesystemAttachmentVersioningStore.java:209)
~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na]
at
org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore$Attachme
ntSaveTransactionRunnable.<init>(FilesystemAttachmentStore.java:354)
~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na]
at
org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.getAttac
hmentContentSaveRunnable(FilesystemAttachmentStore.java:153)
~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na]
at
org.xwiki.store.legacy.store.internal.FilesystemAttachmentStore.saveAtta
chmentContent(FilesystemAttachmentStore.java:113)
~[xwiki-platform-store-filesystem-attachments-4.1.3.jar:na]
at
com.xpn.xwiki.doc.XWikiDocument.saveAttachmentContent(XWikiDocument.java
:4279) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
com.xpn.xwiki.doc.XWikiDocument.saveAllAttachments(XWikiDocument.java:42
36) ~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
com.xpn.xwiki.plugin.packaging.Package.installDocument(Package.java:760)
~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
com.xpn.xwiki.plugin.packaging.Package.install(Package.java:616)
~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at
com.xpn.xwiki.plugin.packaging.PackageAPI.install(PackageAPI.java:316)
~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:132)
~[xwiki-platform-legacy-oldcore-4.1.3.jar:na]
... 37 common frames omitted