If you have an empty file in your XAR then delete that file (open in WinZip to do this) - I have known empty files in a XAR cause the errors below.
Hope that helps. Regards, Richard -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: 20 May 2008 10:51 To: XWiki Users Subject: Re: [xwiki-users] Import problem Hi, Now it shows:- (I didn't change the XAR ) What should I do! 2008-05-20 15:54:08,968 [http://localhost:8181/xwiki/bin/import/XWiki/Import?act ion=getPackageInfos&name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage= plai n&_=] [P1-18] WARN web.XWikiAction - Uncaught exception: Error number 11015 in 11: Exception while importing Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file. com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while importin g Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file. at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:94) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:198) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428 ) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati onHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 68) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication Context.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Wrapped Exception: com.xpn.xwiki.XWikiException: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file. at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:2357) at com.xpn.xwiki.plugin.packaging.Package.readFromXML(Package.java:715) at com.xpn.xwiki.plugin.packaging.Package.Import(Package.java:388) at com.xpn.xwiki.plugin.packaging.PackageAPI.Import(PackageAPI.java:173) at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:42) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:198) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428 ) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati onHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 68) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication Context.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Wrapped Exception: org.dom4j.DocumentException: Error on line -1 of document : Premature end of fi le. Nested exception: Premature end of file. at org.dom4j.io.SAXReader.read(SAXReader.java:482) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:2355) at com.xpn.xwiki.plugin.packaging.Package.readFromXML(Package.java:715) at com.xpn.xwiki.plugin.packaging.Package.Import(Package.java:388) at com.xpn.xwiki.plugin.packaging.PackageAPI.Import(PackageAPI.java:173) at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:42) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:198) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428 ) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati onHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 68) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication Context.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) Nested exception: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j ava:1183) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:2355) at com.xpn.xwiki.plugin.packaging.Package.readFromXML(Package.java:715) at com.xpn.xwiki.plugin.packaging.Package.Import(Package.java:388) at com.xpn.xwiki.plugin.packaging.PackageAPI.Import(PackageAPI.java:173) at com.xpn.xwiki.web.ImportAction.render(ImportAction.java:42) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:198) at org.apache.struts.action.RequestProcessor.processActionPerform(Reques tProcessor.java:431) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja va:236) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 6) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) at javax.servlet.http.HttpServlet.service(HttpServlet.java:596) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428 ) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:830) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEnc odingFilter.java:117) at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( WebApplicationHandler.java:821) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati onHandler.java:471) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:5 68) at org.mortbay.http.HttpContext.handle(HttpContext.java:1565) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplication Context.java:633) at org.mortbay.http.HttpContext.handle(HttpContext.java:1517) at org.mortbay.http.HttpServer.service(HttpServer.java:954) at org.mortbay.http.HttpConnection.service(HttpConnection.java:816) at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:983) at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833) at org.mortbay.http.SocketListener.handleConnection(SocketListener.java: 244) at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357) at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534) 2008-05-20 15:54:09,390 [http://localhost:8181/xwiki/bin/import/XWiki/Import?act ion=getPackageInfos&name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage= plai n&_=] [P1-18] WARN doc.XWikiDocument - Failed to display field [c ontent] in [view] mode for Object [Panels.Search] 2008-05-20 15:54:09,390 [http://localhost:8181/xwiki/bin/import/XWiki/Import?act ion=getPackageInfos&name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage= plai n&_=] [P1-18] WARN doc.XWikiDocument - Failed to display field [c ontent] in [view] mode for Object [Panels.QuickLinks] 2008-05-20 15:54:09,390 [http://localhost:8181/xwiki/bin/import/XWiki/Import?act ion=getPackageInfos&name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage= plai n&_=] [P1-18] WARN doc.XWikiDocument - Failed to display field [c ontent] in [view] mode for Object [Panels.MyRecentModifications] 2008-05-20 15:54:09,390 [http://localhost:8181/xwiki/bin/import/XWiki/Import?act ion=getPackageInfos&name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage= plai n&_=] [P1-18] WARN doc.XWikiDocument - Failed to display field [c ontent] in [view] mode for Object [Panels.NewPage] Thanks, Project trainees. > On May 19, 2008, at 4:39 PM, goldring, richard wrote: > >> Hi, >> >> Maybe there needs to be a progress indicator or log window listing >> each wiki >> page as its added to the wiki so the user knows something is >> happening! > > Definitely, this should be improved. > > However please note that the Import feature is not meant to import > large XARs. Right now the solution is to use database import and > exports. > See http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup > > Note: I've personally never waited more than 10-20 seconds for the > list of XAR documents to be displayed (this is before the actual > import happens). > > Thanks > -Vincent >> Hi! Importing large XARs takes very long time, so you should really >> wait :). In my case, importing ~9mb XAR took about ~1 hour. >> Quoting [EMAIL PROTECTED] [1]: > >>> On May 19, 2008, at 9:22 AM, [EMAIL PROTECTED] >> wrote: >>> >>>>> Hi, >>>> >>>> In the logs it shows :- >>>> >>>> 127.0.0.1 - - [19/May/2008:08:02:00 +0000] >>>> >> "GET/xwiki/bin/import/XWiki/Import?action=getPackageInfos&name=xwiki- >>>> enterprise-installer-windows-1.3.2.xar&xpage=plain&_= >>>> HTTP/1.1" 200 8748 750 >>>> >>>> In the start console it shows:- >>>> >>>> 2008-05-19 13:34:53,687 >>>> >> [http://localhost:8181/xwiki/bin/import/XWiki/Import?action=getPackageInfos& >> name=xwiki-enterprise-installer-windows-1.3.2.xar&xpage=plai >>>> n&_=] [P1-18] WARN doc.XWikiDocument - Failed to display field >>>> [content] >>>> in [view] mode for Object [Panels.NewPage] >>>> >>>> I think the size is large (1893835) >>>> What should be my next step? >>> >>> Did you wait enough? The logs don't show anything wrong I think. >>> >>> What version of "XWiki" are you using? >> Hi, >> I waited enough and nothing happens.I am using XE 1.3.2 and Mysql >> 5.0 >> Thanks, >> project trainees. >>>>> On May 19, 2008, at 8:46 AM, [EMAIL PROTECTED] >> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I attached a XAR file to upload and when I select the file to >>>>>> import, it >>>>>> doesn't shows any documents. But when I attached and selected a >> TODO >>>>>> application, it shows all documents of TODO. Why it is so? How >> can I >>>>>> import my XAR file? Can any one help? >>>>> >>>>> It means one of 2 things: >>>>> 1) Your XAR is invalid/corrupted. Check the console logs on your >>>>> xwiki >>>>> server instance. >>>>> 2) Your XAR was large and you have not waited enough (it takes >> some >>>>> time to display the content of a large XAR) >>>>> >>>>> Hope it helps, >>>>> -Vincent _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users Thales UK Ltd (Wells) DISCLAIMER: The information contained in this e-mail is confidential. It may also be legally privileged. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. We may monitor all e-mail communications through our networks. If you have received this e-mail in error, please inform us immediately on +44 (0) 1749 672081 and delete it and all copies from your system. We accept no responsibility for changes to any e-mail which occur after it has been sent. Attachments to this e-mail may contain software viruses which could damage your system. We therefore recommend you virus-check all attachments before opening. A business of Thales UK Ltd. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX Registered in England No. 868273 _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
