[MarkLogic Dev General] Problem with AutoLoader

himanshu kapsime hkapsime at gmail.com
Thu Aug 9 06:46:17 PDT 2012


Hello folks,
I was trying to upload some xml files with the help of AutoLoader..
The file is getting transferred from one folder to another but its not
getting uploaded in database. Whenever I run the script it just stops
saying zero record loaded.
I am attaching the log file, please have a look and help me out.

Script is as follows:-
java com.marklogic.autoloader.AutoLoader E:/documents/marklogic/Autoloader
E:/documents/marklogic/xyz abc.properties

and I have put all the required jars in the class path with the help of
Environment variables
Property file:-
ID_NAME=#AUTO
INPUT_PATH= E:/documents/marklogic/xyz
SKIP_EXISTING=true CONNECTION_STRING=xcc://admin:admin@localhost:9000
URI_PREFIX=/content/
URI_SUFFIX=.xml
THREADS=1

Regards
Himanshu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120809/a7841707/attachment-0001.html 
-------------- next part --------------
C:\Documents and Settings\himanshuk>java com.marklogic.autoloader.AutoLoader E:/
documents/marklogic/Autoloader E:/documents/marklogic/xyz abc.properties
Initiating directory polling, press Ctrl-C to end...
********************************************************
* DirectoryPoller 1.5.2 (C) Cristiano Sadun under LGPL *
********************************************************
RecordLoader starting, version 2008-07-11.1 on 1.6.0_25
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader configureFiles
INFO: processing: abc.properties
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader initConfiguration
INFO: Configuration is com.marklogic.recordloader.xcc.XccConfiguration
logging to CONSOLE
logging to file simplelogger-%u-%g.log
Aug 9, 2012 7:08:20 PM com.marklogic.ps.SimpleLogger configureLogger
INFO: setting up logging for: com.marklogic.ps
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration setUseAutomaticI
ds
INFO: generating automatic ids
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration configureOptions

INFO: using output encoding UTF-8
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration configureOptions

INFO: QUEUE_CAPACITY = 1000
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration configureCollect
ions
INFO: adding extra collection: com.marklogic.ps.RecordLoader.1344519500071
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration configure
INFO: connecting to xcc://admin:admin@localhost:9000/
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader <init>
INFO: RecordLoader starting, version 2008-07-11.1 on 1.6.0_25
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader checkEnvironment
INFO: XPP3 version = 1.1.4
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader getDecoder
INFO: using input encoding UTF-8
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader getDecoder
INFO: using malformed input action REPORT
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader <init>
INFO: adding E:/documents/marklogic/xyz
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader run
INFO: zipFiles.size = 0
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader run
INFO: xmlFiles.size = 1
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader run
INFO: thread count = 1
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.LoaderFactory <init>
INFO: Loader is com.marklogic.recordloader.Loader
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader run
INFO: populating queue
Aug 9, 2012 7:08:20 PM com.marklogic.ps.RecordLoader handleFiles
INFO: queuing contents of E:\documents\marklogic\xyz: 1
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration getContentFactor
yConstructor
INFO: ContentFactory is com.marklogic.recordloader.xcc.XccContentFactory
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Configuration getContentFactor
yConstructor
INFO: client = 5.0-3, server = 5.0-3.3
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: error in India_Manmohan_Singh at E:\documents\marklogic\xyz\India_Manmo
han_Singh.xml
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: current URI = India_Manmohan_Singh/1
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: 0 in empty byteBuffer
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: buffer = <name xmlns="http://marklogic.com/mlu/world-leaders">
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: pos =  START_TAG seen ...ms of the \r\n        GNU Free Documentation L
icense.-->\r\n    <name>... @10:11
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: text = <name>
Aug 9, 2012 7:08:20 PM com.marklogic.ps.SimpleLogger logException
SEVERE: exception
com.marklogic.xcc.exceptions.XQueryException: XDMP-USEDECLARE: (err:XPST0003) Us
e 'declare' rather than 'define' (declare variable)
 [Session: user=admin, cb={default} [ContentSource: user=admin, cb={none} [provi
der: address=localhost/127.0.0.1:9000, pool=1/64]]]
 [Client: XCC/5.0-3, Server: XDBC/5.0-3.3]
on line 1
expr:
        at com.marklogic.xcc.impl.handlers.ServerExceptionHandler.handleResponse
(ServerExceptionHandler.java:34)
        at com.marklogic.xcc.impl.handlers.EvalRequestController.serverDialog(Ev
alRequestController.java:83)
        at com.marklogic.xcc.impl.handlers.AbstractRequestController.runRequest(
AbstractRequestController.java:84)
        at com.marklogic.xcc.impl.SessionImpl.submitRequestInternal(SessionImpl.
java:373)
        at com.marklogic.xcc.impl.SessionImpl.submitRequest(SessionImpl.java:356
)
        at com.marklogic.recordloader.xcc.XccAbstractContent.checkDocumentUri(Xc
cAbstractContent.java:74)
        at com.marklogic.recordloader.AbstractLoader.checkExistingUri(AbstractLo
ader.java:328)
        at com.marklogic.recordloader.AbstractLoader.checkIdAndUri(AbstractLoade
r.java:280)
        at com.marklogic.recordloader.Loader.processStartElement(Loader.java:275
)
        at com.marklogic.recordloader.Loader.processRecords(Loader.java:145)
        at com.marklogic.recordloader.Loader.process(Loader.java:91)
        at com.marklogic.recordloader.AbstractLoader.call(AbstractLoader.java:68
)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader processRecords
WARNING: re-throwing fatal error
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader process
INFO: current file: "E:\documents\marklogic\xyz\India_Manmohan_Singh.xml"
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader process
INFO: current file basename: "India_Manmohan_Singh"
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader process
INFO: current uri: "India_Manmohan_Singh/1"
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Loader process
INFO: current record: com.marklogic.recordloader.Producer at 56a499, bytes = 0 in e
mpty byteBuffer
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.AbstractLoader call
WARNING: Exception while processing India_Manmohan_Singh/1
Aug 9, 2012 7:08:20 PM com.marklogic.recordloader.Monitor run
INFO: loaded 0 records ok (0 B in 0.499581371 s, 0 tps, 0 kB/s), with 0 error(s)


More information about the General mailing list