【问题标题】:Corda R3 DeployNodes command is failing for example cordappCorda R3 DeployNodes 命令失败,例如 cordapp
【发布时间】:2018-04-14 10:17:08
【问题描述】:

我已经从here下载了示例cordapp的源代码。 发出命令时出现以下错误: gradle deployNodes.

请指导我可以做什么。 注意:这是 Corda V3。

> Task :java-source:deployNodes
Bootstrapping local network in C:\Blockchain\cordapp-example-release-V3\java-source\build\nodes
Node config files found in the root directory - generating node directories
Generating directory for Notary
Generating directory for PartyA
Generating directory for PartyB
Generating directory for PartyC
Nodes found in the following sub-directories: [Notary, PartyA, PartyB, PartyC]
Waiting for all nodes to generate their node-info files...
Distributing all node info-files to all nodes
Gathering notary identities


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':java-source:deployNodes'.
> java.util.concurrent.ExecutionException: java.lang.RuntimeException: Unknown constant pool tag [I@5d453b56 in classfile module-info.class (element size unknown, cannot continue reading class. Please report this on the FastClasspathScanner GitHub page.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 45s
5 actionable tasks: 2 executed, 3 up-to-date

【问题讨论】:

  • 如果我从 corda-v2 分支下载代码库,则不会遇到问题。
  • corda_gradle_plugins_version = '3.0.9' 插件版本存在一些问题。尝试从 V2 迁移到 V3 时遇到同样的问题。
  • 你用的是什么JVM?
  • 我正在使用 JDK 1.8 更新 java 版本 "1.8.0_152" Java(TM) SE Runtime Environment (build 1.8.0_152-b16) Java HotSpot(TM) 64-Bit Server VM (build 25.152- b16,混合模式)。
  • 在从 V2 迁移到 V3 时也遇到了同样的问题。我不得不在我的项目中将 Gradle 从 4.5.1 降级到 4.4.1 才能让它再次工作。

标签: corda


【解决方案1】:

在从 V2 迁移到 V3 时也面临同样的问题。我不得不在我的项目中将 Gradle 从 4.5.1 降级到 4.1 才能让它再次工作。

【讨论】:

  • 这并不能真正回答问题。如果您有其他问题,可以点击 进行提问。一旦你有足够的reputation,你也可以add a bounty 来引起对这个问题的更多关注。 - From Review
  • 如实说明,修改了我的答案。
  • 好的,将以上内容作为评论提供。
  • 将 gradle 降级到 4.4.1 版是可行的。接受了答案。谢谢@MatthieuMerlyn
【解决方案2】:

这在 Corda 3.1 中已修复。升级说明在这里:https://docs.corda.net/upgrade-notes.html#v3-0-to-v3-1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-20
    • 2022-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多