【发布时间】: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