[MarkLogic Dev General] [XQSync] invalid CEN header (bad signature)
Michael Blakeley
michael.blakeley at marklogic.com
Thu Sep 9 10:45:20 PDT 2010
I'm glad you were able to resolve that. The zip support in java.util.zip
isn't very sophisticated: it's meant to be just good enough to read jar
files, and anything else is a bonus.
For what it's worth, I'll also mention that XQSync isn't designed to
consume packages produced by other programs. In fact the choice of zip
format is arbitrary, and might change in the future.
So if you want to ingest documents from zip archives, RecordLoader might
be a better choice (http://marklogic.github.com/recordloader/). But
that's tangential to your CEN header error, since RecordLoader also uses
java.util.zip.
-- Mike
On 2010-09-09 10:06, Curtis Wilde wrote:
> Yes, the problem actually seems to be the compression I used. I was using 7-zip with "ultra" compression.
>
> Switching 7-zip compression to the "fastest" setting solved the problem.
>
> On Wed, Sep 8, 2010 at 10:14 PM, Aaron Redalen<Aaron.Redalen at marklogic.com<mailto:Aaron.Redalen at marklogic.com>> wrote:
> Apologies in advance if you’ve already done this, but have you verified you can cleanly extract the archive with unzip?
>
> Aaron
>
>
> Aaron Redalen
> Principal Consultant
> MarkLogic Corporation
>
> Phone | Cell +1 240 688 7433
>
> email aaron.redalen at marklogic.com<mailto:aaron.redalen at marklogic.com>
> web www.marklogic.com<http://www.marklogic.com/>
>
>
> From: general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com> [mailto:general-bounces at developer.marklogic.com<mailto:general-bounces at developer.marklogic.com>] On Behalf Of Curtis Wilde
> Sent: Wednesday, September 08, 2010 7:35 PM
> To: General Mark Logic Developer Discussion
> Subject: [MarkLogic Dev General] [XQSync] invalid CEN header (bad signature)
>
> Anyone know how to overcome this? XQSync is unhappy with my zip file:
>
> java.util.zip.ZipException: invalid CEN header (bad signature)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.zip.ZipFile.<init>(ZipFile.java:131)
> at com.marklogic.ps.xqsync.InputPackage.<init>(InputPackage.java:72)
> at com.marklogic.ps.xqsync.XQSyncManager.queueFromInputPackageFile(XQSyncManager.java:313)
> at com.marklogic.ps.xqsync.XQSyncManager.queueFromInputPackage(XQSyncManager.java:264)
> at com.marklogic.ps.xqsync.XQSyncManager.run(XQSyncManager.java:181)
> at com.marklogic.ps.xqsync.XQSync.main(XQSync.java:81)
> Sep 8, 2010 5:14:55 PM com.marklogic.ps.xqsync.UriQueue halt
> INFO: halting queue
> Sep 8, 2010 5:14:55 PM com.marklogic.ps.SimpleLogger logException
> SEVERE: halting
> java.util.zip.ZipException: invalid CEN header (bad signature)
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:114)
> at java.util.zip.ZipFile.<init>(ZipFile.java:131)
> at com.marklogic.ps.xqsync.InputPackage.<init>(InputPackage.java:72)
> at com.marklogic.ps.xqsync.XQSyncManager.queueFromInputPackageFile(XQSyncManager.java:313)
> at com.marklogic.ps.xqsync.XQSyncManager.queueFromInputPackage(XQSyncManager.java:264)
> at com.marklogic.ps.xqsync.XQSyncManager.run(XQSyncManager.java:181)
> at com.marklogic.ps.xqsync.XQSync.main(XQSync.java:81)
> Sep 8, 2010 5:14:55 PM com.marklogic.ps.SimpleLogger logException
> SEVERE: interrupted
> java.lang.InterruptedException
> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1961)
> at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2038)
> at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:424)
> at com.marklogic.ps.xqsync.UriQueue.run(UriQueue.java:98)
> Sep 8, 2010 5:14:55 PM com.marklogic.ps.xqsync.XQSync main
> INFO: completed 0 in 122 ms (0 docs/s)
> Sep 8, 2010 5:14:56 PM com.marklogic.ps.xqsync.Monitor run
> INFO: exiting after 0/0, 0 events/s, 0 kB/s
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com<mailto:General at developer.marklogic.com>
> http://developer.marklogic.com/mailman/listinfo/general
>
>
More information about the General
mailing list