I've tried using XQSync with ML 7 and I'm getting some interesting errors.  The 
data I'm syncing is from a ML 5.0-4.3 database.  Going to 7.0-1.  I'm using all 
the latest versions of xpp3, xstream and xqsync.

First I trying just connecting to both and passing data between, but I get an 
error, like there's something before the root node.
Next I tried writing the XML to a zip and syncing from the zip.  Same error.
Then, I turned on REPAIR_INPUT_XML and interestingly, the document got synced, 
but when I looked at it in qconsole, it looked like this:
<?xml version="1.0" encoding="UTF-8"?>
012135
<lncr:doc...

Anyway, here's the error:

java.util.concurrent.ExecutionException: com.marklogic.ps.xqsync.SyncException: 
write failed, all retries exhausted for /lnc/5B73-T561-63V0-G32C-00000-00.xml
        at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source)
        at java.util.concurrent.FutureTask.get(Unknown Source)
        at com.marklogic.ps.xqsync.Monitor.monitor(Monitor.java:154)
        at com.marklogic.ps.xqsync.Monitor.run(Monitor.java:87)
Caused by: com.marklogic.ps.xqsync.SyncException: write failed, all retries 
exhausted for /lnc/5B73-T561-63V0-G32C-00000-00.xml
        at com.marklogic.ps.xqsync.SessionWriter.write(SessionWriter.java:309)
        at com.marklogic.ps.xqsync.XQSyncDocument.write(XQSyncDocument.java:165)
        at com.marklogic.ps.xqsync.XQSyncDocument.sync(XQSyncDocument.java:129)
        at com.marklogic.ps.xqsync.CallableSync.call(CallableSync.java:87)
        at com.marklogic.ps.xqsync.CallableSync.call(CallableSync.java:32)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: com.marklogic.xcc.exceptions.XQueryException: XDMP-DOCROOTTEXT: 
Invalid root text "012135&#10;" at /lnc/5B73-T561-63V0-G32C-00000-00.xml line 2
        at 
com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse(ServerExceptionHandler.java:30)
        at 
com.marklogic.xcc.impl.handlers.ContentInsertController.serverDialog(ContentInsertController.java:122)
        at 
com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(AbstractRequestController.java:76)
        at 
com.marklogic.xcc.impl.SessionImpl.insertContent(SessionImpl.java:194)
        at com.marklogic.ps.Session.insertContent(Session.java:215)
        at com.marklogic.ps.xqsync.SessionWriter.write(SessionWriter.java:280)


I can load the file directly through the admin screen with no problem and it 
looks just fine in qconsole.

David
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to