Vincent: Aha. I also knew that he was using a Mac (because of the .DS_store file), but not that Spotlight was the culprit; thanks! It should be a simple matter to have the importer ignore any files that are not in the manifest (and to create one if there isn't), no? MacOS (at least the older ones) also creates resource-fork files (resource.frk) in DOS file exports as well, so it's not the only kind of thing that could cause a problem. Now, of course, you have encouraged me to stop worrying about what I had begun to feel: that I needed to do a better job avoiding straying from my specific points in my mailing list messages. As I can see now, you never know what trivial tidbit will be a keystone clue to someone else. Of course, in confidential contexts, it's second nature to me never to volunteer unnecessary information, but I'm much more relaxed in such an amiably collaborative environment. So now, to your pleasure (or chagrin) you know that you can share in the credit (or blame)... brain[sic]
-----Original Message----- From: Vincent Massol [mailto:[email protected]] Sent: Friday, April 20, 2007 10:35 AM To: [email protected] Cc: Kane, David Subject: Re: [xwiki-users] Export/Import Problem
Hi David,
I know what the issue is... as I've been hit by it myself in the past....
First I can tell that you're on Mac... :)
The issue is with.... Spotlight!
It creates .DS_store files in directories...
Your file called BackupWithHistory.zip has such a file and that doesn't please the XWiki Importer.
In the future we'll need to make it less prone to failures like this but for now simply remove that file and it should work fine...
Thanks -Vincent
On Apr 17, 2007, at 9:23 PM, Kane, David wrote:
Folks,
I have tried to do a better job with trimming archives to illustrate the original problem. I did two exports out of my original Wiki instance: one with the history flag on and one with it off. I trimmed the archives down to a single page in each. The one with the history flag on fails to import (Although there is an additional error message -- it now reports, "Content is not allowed in prolog." There is still the error message that reads "'==' operation has null value. If a reference, it may not be in the context. Operation not possible. [line 9, column 21]"). The one without history does import. In both the package.xml and the page file it looks like the prolog is the first thing listed, so I am not sure what the error in the log is referring to.
This did not appear to be an issue with all of my pages. Some of them could be imported, even with the history option on.
Any thoughts or suggestions?
Sincerely, David Kane
-----Original Message----- From: Luis Arias [mailto:[email protected]] Sent: Thursday, April 12, 2007 4:50 PM To: [email protected] Subject: Re: [xwiki-users] Export/Import Problem
Hi David,
I'm sending you back a xar archive that works with your RPLA page. The archive you sent had several problems including: - the package.xml and associated content was located one level down instead of being at the top level of the archive - there were some extraneous directories and files which seemed to be tied to Mac OS
If you were trimming, then you must have trimmed the page that is causing problems. But you need to generate better formed archives for your tests.
Luis.
On 4/12/07, Kane, David <[email protected]> wrote:
Folks,
Here is stripped version of the archive that I am trying to import. It has just one page, and it exhibits the same error when I try to import it.
Sincerely, David Kane
-----Original Message----- From: Vincent Massol [mailto:[email protected]] Sent: Thursday, April 12, 2007 10:28 AM To: [email protected] Subject: Re: [xwiki-users] Export/Import Problem
On Apr 12, 2007, at 3:50 PM, Kane, David wrote:
Vincent,
I can try that. Do you have any suggestions as to what to look for in stripping things out?
No. Just try a big stripping and see if you still get the error. If not, reduce the stripping till you get the error. BTW this'll likely find the cause of the error (possibly a page that has some problems loading).
For the initial stripping, why not strip everything except one page.
Thanks -Vincent
-----Original Message----- From: Vincent Massol [mailto:[email protected]] Sent: Thursday, April 12, 2007 4:12 AM To: [email protected] Subject: Re: [xwiki-users] Export/Import Problem
On Apr 11, 2007, at 9:10 PM, Kane, David wrote:
Vincent,
If I open the .xar file, I see a package.xml file is the top level of the archive. Is it supposed to be somewhere else?
No, that's correct.
Is it possible for you to send us a stripped down version of your XAR that reproduces the pb?
Thanks -Vincent
-----Original Message----- From: Vincent Massol [mailto:[email protected]] Sent: Wednesday, April 11, 2007 2:44 PM To: [email protected] Subject: Re: [xwiki-users] Export/Import Problem
The stack trace says that there's no package.xml file in the XAR you're trying to import.
-Vincent
On Apr 11, 2007, at 7:56 PM, Kane, David wrote:
Folks,
Folks,
I am trying to export content from one XWiki instance and import into another instance. After I have uploaded the XAR into the second instance and select the archive to import, I see no change on the web page. If I look at the application server log, I see the following set of error messages. Does anyone have any suggestions about what might be going on?
Both instances are using the same XWiki build (1.0 Beta-5.2310). I've already increased the max_allowed_packet to 16M in mysql, and so I think the archive is getting attached correctly.
Sincerely, David Kane
11015 in 11: Exception while importing Wrapped Exception: Error number 0 in 5: Package: Could not find the package definition com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while importing Wrapped Exception: Error number 0 in 5: Package: Could not find the package definition at com.xpn.xwiki.web.ImportAction.render(ImportAction.java: 95) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java: 150) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestPr ocessor.java:431) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java: 236) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196) at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:
689) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilt erChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodi ngFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool .java:684) at java.lang.Thread.run(Thread.java:613)
Wrapped Exception:
com.xpn.xwiki.plugin.packaging.PackageException: Error number 0 in 5: Package: Could not find the package definition at com.xpn.xwiki.plugin.packaging.Package.Import(Package.java:338) at
com.xpn.xwiki.plugin.packaging.PackageAPI.Import(PackageAPI.java:
167) at com.xpn.xwiki.web.ImportAction.render(ImportAction.java: 46) at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java: 150) at org.apache.struts.action.RequestProcessor.processActionPerform (RequestPr ocessor.java:431) at org.apache.struts.action.RequestProcessor.process (RequestProcessor.java: 236) at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:
1196) at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:
689) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applica tionFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilt erChain.java:173) at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter (SetCharacterEncodi ngFilter.java:121) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (Applica tionFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilt erChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValv e.java:213) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValv e.java:178) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve. java:107) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:1 48) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:86 9) at org.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint .java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollow erWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run (ThreadPool .java:684) at java.lang.Thread.run(Thread.java:613) 13:31:45,261 ERROR http-8080-Processor20 http://localhost:8080/xwiki/bin/import/XWiki/Import? action=getPackageInf os&name=Backup.zip&xpage=plain&_= SimpleLog4JLogSystem:logVelocityMessage:154 - Left side ($! hidecolumns) of '==' operation has null value. If a reference, it may not be in the context. Operation not possible. [line 9, column 21] 13:31:45,474 WARN http-8080-Processor20 http://localhost:8080/xwiki/bin/import/XWiki/Import? action=getPackageInf os&name=Backup.zip&xpage=plain&_= MonitorData:log:183 - MONITOR XWiki.Import: 431ms
-- You receive this message as a subscriber of the [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- Luis Arias http://www.xwiki.com +33 6 14 20 87 93 skype : kaaloo <BackupWithHistory.zip> <BackupWithoutHistory.zip>
-- You receive this message as a subscriber of the xwiki- [email protected] mailing list. To unsubscribe: mailto:[email protected] For general help: mailto:[email protected]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/ wws