Am a newbie to CORB and trying my hands on with the guide :
https://github.com/marklogic-community/corb2/wiki/Hello-World-from-CORB
My CORB JAR file version is :
marklogic-corb-2.4.1
My MarkLogic xcc JAR file version is :
marklogic-xcc-6.0.2
My MarkLogic version is :
8.0-5.5
I replicated the environment on my local system and while executing the script which contains the code as specified in the documentation guide :
THREAD-COUNT=8
URIS-MODULE=selector.xqy|ADHOC
PROCESS-MODULE=transform.xqy|ADHOC
PROCESS-TASK=com.marklogic.developer.corb.ExportBatchToFileTask
EXPORT-FILE-NAME=HelloWorldReport.csv
PRE-BATCH-TASK=com.marklogic.developer.corb.PreBatchUpdateFileTask
EXPORT-FILE-TOP-CONTENT=Title,Author,URI
The Script.sh contains the following code :
LIB=D:/POC
java -cp "$LIB/marklogic-xcc-6.0.2.jar;$LIB/marklogic-corb-2.4.1.jar" \
-DOPTIONS-FILE=my.properties \
com.marklogic.developer.corb.Manager \
xcc://admin:admin@localhost:8061/test
where test is the database name and 8061 is the port number
of the database where the document is loaded
Note : Do we need to setup a XDBC Server separately... Assuming XDBC is not needed for Marklogic version 8
Am getting the following error :
SEVERE: Error initializing CORB ContentSource not available.
com.marklogic.developer.corb.CorbException: ContentSource not available.
at com.marklogic.developer.corb.DefaultContentSourcePool.get(DefaultContentSourcePool.java:117)
at com.marklogic.developer.corb.Manager.prepareModules(Manager.java:680)
at com.marklogic.developer.corb.Manager.init(Manager.java:174)
at com.marklogic.developer.corb.AbstractManager.init(AbstractManager.java:168)
at com.marklogic.developer.corb.Manager.main(Manager.java:129)
答案 0 :(得分:2)
该错误表示无法连接到服务器。有了这样的错误,我会检查你是否有正确的连接信息。然后我会检查您运行corb的计算机是否可以连接到MarkLogic服务器。我遇到了负载均衡器或防火墙阻止XCC连接的问题。
我还会将您正在使用的XCC版本更新到最新版本。
您不必创建XCC应用服务器,但必须在应用服务器设置中将其打开。当我遇到XCC问题以删除可能发生的任何问题时,我创建了一个单独的XCC应用服务器。