MarkLogic 部署错误‘/config/query not found for write’

MarkLogic deployment error '/config/query not found for write'

版本:9.0.4

通过 gradle 部署,使用 'gradle mlDeploy' 命令。

com.marklogic.client.ResourceNotFoundException: Local message: /config/query not found for write. Server Message: Requ est failed. Error body not received from server

这是带有堆栈跟踪的日志。

Task :hubPreInstallCheck com.marklogic.hub.impl.DataHubImpl@3692dcf0 Error caught while loading modules, cause: Local message: /config/query not found for write. Server Message: Request failed. Error body not received from server com.marklogic.client.ResourceNotFoundException: Local message: /config/query not found for write. Server Message: Request failed. Error body not received from server at com.marklogic.client.impl.OkHttpServices.putPostValueImpl(OkHttpServices.java:2860) at com.marklogic.client.impl.OkHttpServices.putValue(OkHttpServices.java:2729) at com.marklogic.client.impl.QueryOptionsManagerImpl.writeOptions(QueryOptionsManagerImpl.java:158) at com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader.lambda$installQueryOptions(DefaultModulesLoader.java:508) at com.marklogic.client.ext.modulesloader.impl.DefaultModulesLoader.lambda$executeTask(DefaultModulesLoader.java:545) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

失败:构建失败,出现异常。

36 秒内构建失败

显然,Data Hub 框架 3.0.0 不适用于低于 9.0.5 的 MarkLogic 版本。我使用 DHF 2.0.3 并成功部署到 MarkLogic 服务器 9.0.4。谢谢你!