"Key for add operation must be defined" ant fresh_install 或 ant 更新时出错



安装 dspace 时出现以下错误:

test_database:
 [java] Failure during kernel init: Key for add operation must be defined!
 [java] java.lang.IllegalArgumentException: Key for add operation must be defined!
 [java]     at org.apache.commons.configuration.tree.DefaultExpressionEngine.prepareAdd(DefaultExpressionEngine.java:420)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.addPropertyDirect(HierarchicalConfiguration.java:383)
 [java]     at org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:423)
 [java]     at org.apache.commons.configuration.AbstractConfiguration.append(AbstractConfiguration.java:1271)
 [java]     at org.apache.commons.configuration.ConfigurationUtils.convertToHierarchical(ConfigurationUtils.java:252)
 [java]     at org.apache.commons.configuration.CombinedConfiguration$ConfigData.getTransformedRoot(CombinedConfiguration.java:943)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.constructCombinedNode(CombinedConfiguration.java:793)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.getRootNode(CombinedConfiguration.java:626)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.fetchNodeList(HierarchicalConfiguration.java:958)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.fetchNodeList(CombinedConfiguration.java:739)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.getProperty(HierarchicalConfiguration.java:344)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.setProperty(DSpaceConfigurationService.java:354)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.setDynamicProperties(DSpaceConfigurationService.java:539)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.loadInitialConfig(DSpaceConfigurationService.java:504)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.<init>(DSpaceConfigurationService.java:87)
 [java]     at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:148)
 [java]     at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)
 [java]     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:49)
 [java] Exception in thread "main" java.lang.IllegalStateException: Failure during kernel init: Key for add operation must be defined!
 [java]     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:65)
 [java] Caused by: java.lang.IllegalArgumentException: Key for add operation must be defined!
 [java]     at org.apache.commons.configuration.tree.DefaultExpressionEngine.prepareAdd(DefaultExpressionEngine.java:420)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.addPropertyDirect(HierarchicalConfiguration.java:383)
 [java]     at org.apache.commons.configuration.AbstractConfiguration.addPropertyValues(AbstractConfiguration.java:423)
 [java]     at org.apache.commons.configuration.AbstractConfiguration.append(AbstractConfiguration.java:1271)
 [java]     at org.apache.commons.configuration.ConfigurationUtils.convertToHierarchical(ConfigurationUtils.java:252)
 [java]     at org.apache.commons.configuration.CombinedConfiguration$ConfigData.getTransformedRoot(CombinedConfiguration.java:943)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.constructCombinedNode(CombinedConfiguration.java:793)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.getRootNode(CombinedConfiguration.java:626)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.fetchNodeList(HierarchicalConfiguration.java:958)
 [java]     at org.apache.commons.configuration.CombinedConfiguration.fetchNodeList(CombinedConfiguration.java:739)
 [java]     at org.apache.commons.configuration.HierarchicalConfiguration.getProperty(HierarchicalConfiguration.java:344)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.setProperty(DSpaceConfigurationService.java:354)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.setDynamicProperties(DSpaceConfigurationService.java:539)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.loadInitialConfig(DSpaceConfigurationService.java:504)
 [java]     at org.dspace.servicemanager.config.DSpaceConfigurationService.<init>(DSpaceConfigurationService.java:87)
 [java]     at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:148)
 [java]     at org.dspace.servicemanager.DSpaceKernelImpl.start(DSpaceKernelImpl.java:128)
 [java]     at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:49)
BUILD FAILED
/Users/uttam/Desktop/Epub/edoc-dspace-source/dspace/target/dspace-
installer/build.xml:792: Java returned: 1

我有一个工作空间,但在清理 dspace 数据库后,我不断收到此错误消息。我已经厌倦了在干净擦除后重新安装 postgresql,但我不断收到此错误,关于可能导致此问题的原因的任何建议?

现在,如果我想从头开始"mvn 包"工作,但之后"蚂蚁fresh_install"会抛出此错误。

好的,我现在知道问题是什么了。此错误代码与 dspace 源文件夹中的配置文件(.cfg)有关。我的本地文件中有一些特殊字符.cfg我不知何故设法忽略了这一点,删除这些特殊字符解决了这种情况。

就我而言,我将 dspace 6.0 与这些依赖项一起使用,

  • 阿帕奇-蚂蚁-1.8.0

  • Apache-maven-3.1.0

  • 阿帕奇-雄猫-7.0.69

  • JDK-7U79-视窗

  • Postgresql-9.5.2

    错误发生 then.so 我将dSpace更新到6.3版本,然后不会发生错误。

相关内容

  • 没有找到相关文章

最新更新