Closed prestonmcgowan closed 5 years ago
Running tde.validate() on these shows "valid". I am not sure why gradle throws a unexpected validation error.
Did you run gradlew with the -i or --debug flags turned on? Sometimes gradle and/or the rest api docs aren’t right as far as the request/response formats, and those flags will tell you what call is failing.
td
Thomas Diepenbrock Technical Manager MarkLogic Corporation thomas.diepenbrock@marklogic.commailto:thomas.diepenbrock@marklogic.com 703.980.1248 www.marklogic.comhttp://www.marklogic.com
[cid:2973EB56-BA5B-4229-9F8F-1A5273A2E37A@marklogic.com]
On Jul 8, 2019, at 1:03 AM, Preston notifications@github.com<mailto:notifications@github.com> wrote:
Running tde.validate() on these shows "valid". I am not sure why gradle throws a unexpected validation error.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/marklogic-community/marklogic-geo-data-services/issues/10?email_source=notifications&email_token=AB7NYXLRULABDXNY5UWXURDP6LDBXA5CNFSM4HT5QMM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZL7BBA#issuecomment-509079684, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB7NYXOPM3ITBCFLK55KKTLP6LDBXANCNFSM4HT5QMMQ.
debug output doesn't seem to provide much insight into the issue
$ gradle mlDeploy --debug
09:27:38.071 [INFO] [com.marklogic.appdeployer.command.schemas.LoadSchemasCommand] Loading schemas into database gds-sample-project-schemas from: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas
09:27:38.122 [DEBUG] [com.marklogic.appdeployer.command.schemas.LoadSchemasCommand] Copying content from absolute file path: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-config/databases/content-database.json; input file path: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-config/databases/content-database.json
09:27:38.123 [INFO] [com.marklogic.appdeployer.command.schemas.LoadSchemasCommand] TDE templates loaded into gds-sample-project-schemas will be validated against content database gds-sample-project-content
09:27:38.126 [DEBUG] [com.marklogic.client.ext.batch.RestBatchWriter] Initializing thread pool with a count of 16
09:27:38.129 [INFO] [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] Initializing ExecutorService
09:27:38.131 [DEBUG] [com.marklogic.client.ext.file.DefaultDocumentFileReader] Finding files at path: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas
09:27:38.132 [DEBUG] [com.marklogic.client.ext.file.DefaultDocumentFileReader] Visiting directory: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas
09:27:38.132 [DEBUG] [com.marklogic.client.ext.file.DefaultDocumentFileReader] Visiting directory: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas/tde
09:27:38.143 [DEBUG] [com.marklogic.client.impl.OkHttpServices] Posting eval
09:27:38.180 [WARN] [com.marklogic.client.ext.schemasloader.impl.TdeDocumentFileProcessor] Unexpected error when trying to validate TDE template in file: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas/tde/example-gkg.tdex; cause: Local message: failed to apply resource at eval: Internal Server Error. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
09:27:38.181 [DEBUG] [com.marklogic.client.impl.OkHttpServices] Posting eval
09:27:38.188 [WARN] [com.marklogic.client.ext.schemasloader.impl.TdeDocumentFileProcessor] Unexpected error when trying to validate TDE template in file: /Users/pmcgowan/workspace/marklogic-geo-data-services/examples/sample-project/src/main/ml-schemas/tde/zipcodes.tdex; cause: Local message: failed to apply resource at eval: Internal Server Error. Server Message: Server (not a REST instance?) did not respond with an expected REST Error message.
09:27:38.188 [INFO] [com.marklogic.client.ext.schemasloader.impl.DefaultSchemasLoader] Writing 2 files
09:27:38.188 [INFO] [com.marklogic.client.ext.schemasloader.impl.DefaultSchemasLoader] Writing: /tde/example-gkg.tdex
09:27:38.188 [INFO] [com.marklogic.client.ext.schemasloader.impl.DefaultSchemasLoader] Writing: /tde/zipcodes.tdex
09:27:38.189 [DEBUG] [com.marklogic.client.ext.batch.RestBatchWriter] Calling shutdown on thread pool
09:27:38.189 [INFO] [org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor] Shutting down ExecutorService
This error is a false positive, therefore I am removing this issue from the 1.0 milestone.
The xml declaration or comment was causing the failure. Removing the declaration and comment rectified the false positive error.
PR and merged.
Task :mlDeployApp