metadatacenter / cedar-project

Build project for all CEDAR Java repositories
https://github.com/metadatacenter/cedar-docs/wiki
Other
12 stars 1 forks source link

Script to update CEDAR caDSR CDEs and Categories throws error and stops #1164

Closed marcosmro closed 2 years ago

marcosmro commented 2 years ago

See the output below:

Starting script to update CEDAR caDSR CDEs and Categories on 2022-04-15T02:00:01
-----------------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< org.metadatacenter:cedar-cadsr-tools >----------------
[INFO] Building CEDAR caDSR Tools 2.6.18
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ cedar-cadsr-tools ---
[INFO] Deleting /srv/cedar/cedar-cadsr-tools/target
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven) @ cedar-cadsr-tools ---
[INFO] 
[INFO] --- jaxb2-maven-plugin:2.5.0:xjc (xjc-cde) @ cedar-cadsr-tools ---
[INFO] Created EpisodePath [/srv/cedar/cedar-cadsr-tools/target/generated-sources/jaxb/META-INF/JAXB]: true
[INFO] Created EpisodePath [/srv/cedar/cedar-cadsr-tools/target/generated-sources/jaxb/META-INF/JAXB]: true
[INFO] 
[INFO] --- jaxb2-maven-plugin:2.5.0:xjc (xjc-category) @ cedar-cadsr-tools ---
[INFO] Created EpisodePath [/srv/cedar/cedar-cadsr-tools/target/generated-sources/jaxb/META-INF/JAXB]: true
[INFO] 
[INFO] --- jaxb2-maven-plugin:2.5.0:xjc (xjc-form) @ cedar-cadsr-tools ---
[INFO] Created EpisodePath [/srv/cedar/cedar-cadsr-tools/target/generated-sources/jaxb/META-INF/JAXB]: true
[INFO] 
[INFO] --- build-helper-maven-plugin:3.0.0:add-source (test) @ cedar-cadsr-tools ---
[INFO] Source directory: /srv/cedar/cedar-cadsr-tools/target/java-gen added.
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ cedar-cadsr-tools ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ cedar-cadsr-tools ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 189 source files to /srv/cedar/cedar-cadsr-tools/target/classes
[INFO] /srv/cedar/cedar-cadsr-tools/src/main/java/org/metadatacenter/cadsr/ingestor/cde/handler/PropertiesHandler.java: Some input files use unchecked or unsafe operations.
[INFO] /srv/cedar/cedar-cadsr-tools/src/main/java/org/metadatacenter/cadsr/ingestor/cde/handler/PropertiesHandler.java: Recompile with -Xlint:unchecked for details.
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ cedar-cadsr-tools ---
[INFO] Not copying test resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ cedar-cadsr-tools ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:3.0.0-M3:test (default-test) @ cedar-cadsr-tools ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ cedar-cadsr-tools ---
[INFO] Building jar: /srv/cedar/cedar-cadsr-tools/target/cedar-cadsr-tools-2.6.18.jar
[INFO] 
[INFO] --- maven-install-plugin:3.0.0-M1:install (default-install) @ cedar-cadsr-tools ---
[INFO] Installing /srv/cedar/cedar-cadsr-tools/target/cedar-cadsr-tools-2.6.18.jar to /home/cedar/.m2/repository/org/metadatacenter/cedar-cadsr-tools/2.6.18/cedar-cadsr-tools-2.6.18.jar
[INFO] Installing /srv/cedar/cedar-cadsr-tools/pom.xml to /home/cedar/.m2/repository/org/metadatacenter/cedar-cadsr-tools/2.6.18/cedar-cadsr-tools-2.6.18.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  17.867 s
[INFO] Finished at: 2022-04-15T02:00:21-07:00
[INFO] ------------------------------------------------------------------------
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------< org.metadatacenter:cedar-cadsr-tools >----------------
[INFO] Building CEDAR caDSR Tools 2.6.18
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- exec-maven-plugin:3.0.0:java (cedar-cadsr-updater) @ cedar-cadsr-tools ---
02:00:23,782 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
02:00:23,782 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
02:00:23,782 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/srv/cedar/cedar-cadsr-tools/target/classes/logback.xml]
02:00:23,872 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set
02:00:23,879 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
02:00:23,882 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [STDOUT]
02:00:23,887 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
02:00:23,914 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
02:00:23,918 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE-AUDIT]
02:00:23,929 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1117233126 - No compression will be used
02:00:23,930 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1117233126 - Will use the pattern /srv/cedar/log/cedar-cadsr-tools//archived/debug.%d{yyyy-MM-dd}.%i.log for the active file
02:00:23,933 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27154dc9 - The date pattern is 'yyyy-MM-dd' from file name pattern '/srv/cedar/log/cedar-cadsr-tools//archived/debug.%d{yyyy-MM-dd}.%i.log'.
02:00:23,933 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27154dc9 - Roll-over at midnight.
02:00:23,938 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27154dc9 - Setting initial period to Thu Apr 14 02:00:21 PDT 2022
02:00:23,939 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27154dc9 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
02:00:23,939 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@27154dc9 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
02:00:23,968 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE-AUDIT] - Active log file name: /srv/cedar/log/cedar-cadsr-tools//debug.log
02:00:23,968 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE-AUDIT] - File property is set to [/srv/cedar/log/cedar-cadsr-tools//debug.log]
02:00:23,968 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
02:00:23,969 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [FILE-ERROR]
02:00:23,970 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@84524603 - No compression will be used
02:00:23,970 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@84524603 - Will use the pattern /srv/cedar/log/cedar-cadsr-tools//archived/error.%d{yyyy-MM-dd}.%i.log for the active file
02:00:23,971 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4d60bb31 - The date pattern is 'yyyy-MM-dd' from file name pattern '/srv/cedar/log/cedar-cadsr-tools//archived/error.%d{yyyy-MM-dd}.%i.log'.
02:00:23,971 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4d60bb31 - Roll-over at midnight.
02:00:23,972 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4d60bb31 - Setting initial period to Fri Nov 01 11:22:19 PDT 2019
02:00:23,972 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4d60bb31 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
02:00:23,972 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4d60bb31 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
02:00:23,975 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE-ERROR] - Active log file name: /srv/cedar/log/cedar-cadsr-tools//error.log
02:00:23,975 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[FILE-ERROR] - File property is set to [/srv/cedar/log/cedar-cadsr-tools//error.log]
02:00:23,976 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.metadatacenter.cadsr] to DEBUG
02:00:23,976 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.metadatacenter.cadsr] to false
02:00:23,976 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [FILE-AUDIT] to Logger[org.metadatacenter.cadsr]
02:00:23,977 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[org.metadatacenter.cadsr]
02:00:23,977 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to DEBUG
02:00:23,977 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [STDOUT] to Logger[ROOT]
02:00:23,977 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
02:00:23,977 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@337665d4 - Registering current configuration as safe fallback point

02:00:24.001 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #####################################################################
02:00:24.081 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #            CEDAR - caDSR CDE/Categories Update Tool               #
02:00:24.081 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #####################################################################
02:00:24.086 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - # Execution started at 2022-04-15T02:00:23.989906
02:00:24.086 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - # Execution settings:
02:00:24.086 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Command-line arguments: 
02:00:24.088 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --update-categories
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --update-cdes
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --server production
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --folder https://repo.metadatacenter.org/folders/1ee5ef41-0605-4c18-9054-b01eb4290339
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --apikey ********
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ftp-host caftpu.nci.nih.gov
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ftp-user stanford
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ftp-password ********
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ftp-categories-folder /caDSR_Downloads/Classifications/XML
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ftp-cdes-folder /caDSR_Downloads/CDE/XML
02:00:24.089 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #     --ontology-folder /srv/cedar/cedar-shared-data/cadsr/ontologies
02:00:24.090 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Update categories? Yes
02:00:24.090 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Delete existing categories before updating them? No
02:00:24.090 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Update CDEs? Yes
02:00:24.091 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - CEDAR folder Id: https://repo.metadatacenter.org/folders/1ee5ef41-0605-4c18-9054-b01eb4290339
02:00:24.091 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - CEDAR server: PRODUCTION
02:00:24.091 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - CEDAR caDSR Admin api key: ******
02:00:24.091 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Local execution folder: cadsr-exec-tmp
02:00:24.092 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Local categories file: Not provided
02:00:24.092 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Local CDEs file: Not provided
02:00:24.092 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - caDSR FTP Host: caftpu.nci.nih.gov
02:00:24.093 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - caDSR FTP User: stanford
02:00:24.093 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - caDSR FTP Password: ********
02:00:24.093 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - caDSR FTP Categories folder: /caDSR_Downloads/Classifications/XML
02:00:24.094 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - caDSR FTP CDEs folder: /caDSR_Downloads/CDE/XML
02:00:24.094 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #   - Ontology destination folder: /srv/cedar/cedar-shared-data/cadsr/ontologies
02:00:24.094 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #####################################################################

02:00:24.095 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #########################################
02:00:24.095 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #      Updating caDSR Categories...     #
02:00:24.095 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - #########################################
02:00:24.099 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Downloading most recent categories
02:00:26.129 INFO  o.m.cadsr.ingestor.util.FtpUtil - Downloading file: xml_cscsi_20224150307.zip (size: 115 KB)
02:00:26.130 INFO  o.m.cadsr.ingestor.util.FtpUtil - Destination path: /srv/cedar/cedar-cadsr-tools/cadsr-exec-tmp/categories/xml_cscsi_20224150307.zip
02:00:26.450 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 10%
02:00:26.539 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 20%
02:00:26.678 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 30%
02:00:26.679 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 40%
02:00:26.820 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 50%
02:00:26.820 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 60%
02:00:26.820 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 70%
02:00:26.868 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 80%
02:00:26.868 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 90%
02:00:26.892 INFO  o.m.cadsr.ingestor.util.FtpUtil - Download progress: 100%
02:00:26.957 INFO  o.m.cadsr.ingestor.util.FtpUtil - The file has been downloaded successfully
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/home/cedar/.m2/repository/org/glassfish/jaxb/jaxb-runtime/2.3.0/jaxb-runtime-2.3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
02:00:27.862 WARN  o.m.cadsr.ingestor.util.CategoryUtil - Found two categories with the same name at the same level! Name: caArray Internal. Category Ids: CADSR-CATEGORY-ID/NCIP_V1/2898532_V2.3; CADSR-CATEGORY-ID/NCIP_V1/2898532_V2.4
02:00:27.863 INFO  o.m.cadsr.ingestor.util.CategoryUtil - Updating category name to avoid confusion: caArray Internal (CADSR-CATEGORY-ID/NCIP_V1/2898532_V2.3) -> caArray Internal 2.3
02:00:27.864 INFO  o.m.cadsr.ingestor.util.CategoryUtil - Updating category name to avoid confusion: caArray Internal (CADSR-CATEGORY-ID/NCIP_V1/2898532_V2.4) -> caArray Internal 2.4
02:00:27.910 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Finished downloading categories. 3491 categories found.
02:00:27.910 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Retrieving current NCI caDSR categories from CEDAR.
02:00:28.492 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Number of NCI caDSR categories retrieved from CEDAR: 3490.
02:00:28.492 INFO  o.m.c.i.t.c.CadsrCategoriesAndCdesUpdaterTool - Checking category changes and generating category actions.
02:00:28.523 INFO  o.m.c.i.c.a.CategoryActionsProcessor - Category actions: 
02:00:28.523 INFO  o.m.c.i.c.a.CategoryActionsProcessor -  - 1 Create actions (Note that 1 create action may involve creating multiple children categories)
02:00:28.524 INFO  o.m.c.i.c.a.CategoryActionsProcessor -  - 0 Delete actions
02:00:28.524 INFO  o.m.c.i.c.a.CategoryActionsProcessor -  - 0 Update actions
02:00:28.524 INFO  o.m.c.i.c.a.CategoryActionsProcessor - Categories to Create: (Note that these categories might have children that will be created as well
02:00:28.528 INFO  o.m.c.i.c.a.CategoryActionsProcessor -  - CADSR-CATEGORY-ID/NCIStandards_V1/4857911_V1/8042112_V1 (Adult Physical Health).
02:00:28.528 INFO  o.m.c.i.c.a.CategoryActionsProcessor - Applying category actions.
02:00:28.528 INFO  o.m.c.i.c.a.CategoryActionsProcessor - Executing category Create actions
02:00:28.528 INFO  o.m.c.i.c.a.CreateCategoryAction - Creating category: CADSR-CATEGORY-ID/NCIStandards_V1/4857911_V1/8042112_V1
02:00:28.581 INFO  o.m.c.ingestor.util.CedarServices - Creating category with unique id: CADSR-CATEGORY-ID/NCIStandards_V1/4857911_V1/8042112_V1
02:00:28.634 ERROR o.m.c.ingestor.util.CedarServices - Error creating category: CADSR-CATEGORY-ID/NCIStandards_V1/4857911_V1/8042112_V1
02:00:28.634 ERROR o.m.cadsr.ingestor.util.CdeUtil - {"status":"BAD_REQUEST","errorType":null,"errorKey":"categoryAlreadyPresent","errorReasonKey":null,"message":"There is a category with the same name under the parent category. Category names must be unique!","parameters":{"schema:name":"Adult Physical Health","parentCategoryId":"https://repo.metadatacenter.org/categories/58c221e4-0df1-4026-952d-5bee22f70f67"},"objects":{},"entities":{},"suggestedAction":"none","originalException":null,"sourceException":null,"operation":{"clazz":"org.metadatacenter.model.folderserver.basic.FolderServerCategory","lookupAttributeName":"schema:name","lookupAttributeValue":"Adult Physical Health"}}
[WARNING] 
java.lang.RuntimeException: {"status":"BAD_REQUEST","errorType":null,"errorKey":"categoryAlreadyPresent","errorReasonKey":null,"message":"There is a category with the same name under the parent category. Category names must be unique!","parameters":{"schema:name":"Adult Physical Health","parentCategoryId":"https://repo.metadatacenter.org/categories/58c221e4-0df1-4026-952d-5bee22f70f67"},"objects":{},"entities":{},"suggestedAction":"none","originalException":null,"sourceException":null,"operation":{"clazz":"org.metadatacenter.model.folderserver.basic.FolderServerCategory","lookupAttributeName":"schema:name","lookupAttributeValue":"Adult Physical Health"}}
   at org.metadatacenter.cadsr.ingestor.util.GeneralUtil.logErrorMessage (GeneralUtil.java:121)
   at org.metadatacenter.cadsr.ingestor.util.CedarServices.createCategory (CedarServices.java:331)
   at org.metadatacenter.cadsr.ingestor.category.action.CreateCategoryAction.execute (CreateCategoryAction.java:32)
   at org.metadatacenter.cadsr.ingestor.category.action.CategoryActionsProcessor.executeCreateActions (CategoryActionsProcessor.java:91)
   at org.metadatacenter.cadsr.ingestor.category.action.CategoryActionsProcessor.executeCategoryActions (CategoryActionsProcessor.java:56)
   at org.metadatacenter.cadsr.ingestor.tools.cde.CadsrCategoriesAndCdesUpdaterTool.updateCategories (CadsrCategoriesAndCdesUpdaterTool.java:271)
   at org.metadatacenter.cadsr.ingestor.tools.cde.CadsrCategoriesAndCdesUpdaterTool.main (CadsrCategoriesAndCdesUpdaterTool.java:130)
   at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:254)
   at java.lang.Thread.run (Thread.java:829)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  6.293 s
[INFO] Finished at: 2022-04-15T02:00:28-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:3.0.0:java (cedar-cadsr-updater) on project cedar-cadsr-tools: An exception occured while executing the Java class. {"status":"BAD_REQUEST","errorType":null,"errorKey":"categoryAlreadyPresent","errorReasonKey":null,"message":"There is a category with the same name under the parent category. Category names must be unique!","parameters":{"schema:name":"Adult Physical Health","parentCategoryId":"https://repo.metadatacenter.org/categories/58c221e4-0df1-4026-952d-5bee22f70f67"},"objects":{},"entities":{},"suggestedAction":"none","originalException":null,"sourceException":null,"operation":{"clazz":"org.metadatacenter.model.folderserver.basic.FolderServerCategory","lookupAttributeName":"schema:name","lookupAttributeValue":"Adult Physical Health"}} -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
-----------------------------------------------------------------------------------
Script execution finished.