-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Version of MarkLogic Java Client API
develop branch
Version of MarkLogic Server
On 9.0 and 10.0 nightly build
Java version
Oracle Java 9.0
OS and version
Happens on both Widows and Linux.
Input: Some code to illustrate the problem, preferably in a state that can be independently reproduced on our end
Run gradle command to generate tests for ml-development-tools project's tests.
./gradlew ml-development-tools:generateTests
Actual output: What did you observe? What errors did you see? Can you attach the logs? (Java logs, MarkLogic logs)
Exceptions are thrown.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.marklogic.client.test.dbfunction.FntestconfKt.setupModules(fntestconf.kt:128)
at com.marklogic.client.test.dbfunction.FntestconfKt.dbfTestSetup(fntestconf.kt:55)
at com.marklogic.client.test.dbfunction.FntestconfKt.main(fntestconf.kt:48)
Caused by: java.lang.RuntimeException: 401 Unauthorized
at com.marklogic.client.test.dbfunction.DBFunctionTestUtil.makeClientImpl(DBFunctionTestUtil.java:65)
at com.marklogic.client.test.dbfunction.DBFunctionTestUtil.makeTestClientImpl(DBFunctionTestUtil.java:43)
at com.marklogic.client.test.dbfunction.DBFunctionTestUtil.makeTestClient(DBFunctionTestUtil.java:30)
at com.marklogic.client.test.dbfunction.DBFunctionTestUtil.<clinit>(DBFunctionTestUtil.java:16)
... 3 more
> Task :ml-development-tools:setupTestServer FAILED
8016_AccessLog.txt produced this output:
127.0.0.1 - - [03/Sep/2019:14:10:55 -0700] "GET / HTTP/1.1" 401 209 - "okhttp/3.10.0"
127.0.0.1 - rest-reader [03/Sep/2019:14:10:55 -0700] "GET / HTTP/1.1" 401 209 - "okhttp/3.10.0"
Looks like RuntimeException from makeClientImpl(....) method during static initialization in
public final static DatabaseClient db = makeTestClient(); causes the JVM to throw java.lang.NoClassDefFoundError during test execution.
Expected output: What specifically did you expect to happen?
Tests generated.