Corda 3 deployNodes - 生成其node-info时,Notary中的节点以1退出

时间:2018-03-20 12:13:35

标签: corda

我正在尝试在Corda 3上运行示例CorDapp(https://github.com/corda/cordapp-example)。当我尝试运行./gradlew deployNodes步骤时,我收到以下错误:

Execution failed for task ':java-source:deployNodes'.
> Node in Notary exited with 1 when generating its node-info - see logs in [REDACTED]/cordapp-example/java-source/build/nodes/Notary/logs

* Try:
Run with --info and --debug option to get more log output.

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':java-source:deployNodes'.
    at ...
Caused by: java.lang.IllegalStateException: Node in Notary exited with 1 when generating its node-info - see logs in [REDACTED]/cordapp-example/java-source/build/nodes/Notary/logs
    at net.corda.nodeapi.internal.network.NetworkBootstrapper$gatherNodeInfoFiles$future$1.invoke(NetworkBootstrapper.kt:136)
    at net.corda.nodeapi.internal.network.NetworkBootstrapper$gatherNodeInfoFiles$future$1.invoke(NetworkBootstrapper.kt:44)
    at net.corda.core.internal.concurrent.ValueOrException$DefaultImpls.capture(CordaFutureImpl.kt:107)
    at net.corda.core.internal.concurrent.OpenFuture$DefaultImpls.capture(CordaFutureImpl.kt
    at net.corda.core.internal.concurrent.CordaFutureImpl.capture(CordaFutureImpl.kt:119)
    at net.corda.core.internal.concurrent.CordaFutureImplKt$fork$$inlined$also$lambda$1.run(CordaFutureImpl.kt:22)

为什么网络无法创建?

2 个答案:

答案 0 :(得分:1)

当在cordapp中出现旧版本的旧版本时,我遇到了这个问题。查看“/ cordapp-example / java-source / build / nodes / Notary / logs /”中的日志将显示哪个旧节点导致问题。

正在运行./gradlew clean deployNode可以解决问题。

答案 1 :(得分:1)

这也可能是由于Java版本错误造成的。确保您的Java版本符合以下要求:https://docs.corda.net/getting-set-up.html#software-requirements