【发布时间】:2018-01-20 04:10:01
【问题描述】:
我已经安装了 ML 9.0.3 并按照这个 document 在我的本地进行设置,我根据我的要求编辑了 config.properties
# properties to configure the examples
example.admin_password=x
example.host=localhost
example.port=9963
example.authentication_type=digest
当我在控制台中运行第一个程序时,它会抛出如下错误:
example: com.marklogic.client.example.tutorial.Example_01_CreateJSON
Exception in thread "main" java.lang.IllegalArgumentException: No user provided
at com.marklogic.client.impl.JerseyServices.connect(JerseyServices.java:186)
at com.marklogic.client.impl.JerseyServices.connect(JerseyServices.java:165)
at com.marklogic.client.DatabaseClientFactory.newClient(DatabaseClientFactory.java:156)
at com.marklogic.client.DatabaseClientFactory.newClient(DatabaseClientFactory.java:125)
at com.marklogic.client.example.tutorial.Example_01_CreateJSON.main(Example_01_CreateJSON.java:37)
我该如何解决这个问题?
【问题讨论】: