CorDapp示例构建失败

时间:2019-09-14 21:16:37

标签: java kotlin corda

[1。我正在尝试使用“ https://docs.corda.net/tutorial-cordapp.html#downloading-the-example-cordapp”这样的指南通过终端运行CorDapp示例。

  1. 现在,在运行“ gradlew.bat deployNodes”命令时,构建失败。

  2. 按照Pt#1中的链接,预计将在“ workflow-kotlin / build / nodes”下获得创建的节点,但实际上批处理正在执行“ workflow-java / build / nodes” “目录。

  3. java版本“ 1.8.0_221”; Java TM SE Runtime Environment(内部版本1.8.0_221-b11); Java HotSpot(TM)64位服务器VM(内部版本25.221-b11,混合模式)

  4. C:\ Users \ axsx1_000 \ samples \ cordapp-example> gradlew.bat deployNodes

  

任务:workflows-java:d​​eployNodes   运行Cordform任务

删除C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes 在C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes中引导本地测试网络 生成公证人的节点目录 为PartyA生成节点目录 为PartyB生成节点目录 为PartyC生成节点目录 等待所有节点生成其节点信息文件...

...还在等待。如果花费的时间比平时长,请检查节点日志。

生成节点信息文件C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes \ PartyA \ logs时出错

2019-09-15 01:59:17,900主警告无法实例化org.fusesource.jansi.WindowsAnsiOutputStream 2019-09-15 01:59:17,900主警告无法实例化org.fusesource.jansi.WindowsAnsiOutputStream

可以在以下位置找到日志:C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes \ PartyA \ logs

  

任务:workflows-java:d​​eployNodes失败

失败:构建失败,并出现异常。

  • 出了什么问题: 任务':workflows-java:d​​eployNodes'的执行失败。

      

    生成节点信息文件时出错。请检查C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes \ PartyA \ logs中的日志。   生成节点信息文件时出错。请检查C:\ Users \ axsx1_000 \ samples \ cordapp-example \ workflows-java \ build \ nodes \ PartyA \ logs中的日志。

    1. 来自PartyA日志的错误如下:- [INFO] 2019-09-15T07:31:04,484Z [main] liquibase.info-master.changelog.json:migration / common.changelog-init.xml :: 1511451595465-1.3 :: R3.Corda:跳过changeSet迁移/由于验证错误,common.changelog-init.xml :: 1511451595465-1.3 :: R3.Corda:h2不允许使用minValue [INFO] 2019-09-15T07:31:04,781Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-11 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-11 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:04,796Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-12 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-12 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:04,812Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-13 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-13 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,281Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-1 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-1 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,281Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-2 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-2 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,281Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-3 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-3 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,281Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-4 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-4 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,281Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-5 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-5 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,421Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-6 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-6 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,468Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-7 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-7 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,499Z [main] liquibase.info-成功获取更改日志锁 [INFO] 2019-09-15T07:31:05,593Z [main] liquibase.info-master.changelog.json:migration / common.changelog-init.xml :: 1511451595465-1.3 :: R3.Corda:跳过changeSet迁移/由于验证错误,common.changelog-init.xml :: 1511451595465-1.3 :: R3.Corda:h2不允许使用minValue [INFO] 2019-09-15T07:31:05,749Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-11 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-11 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,781Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-12 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-12 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,781Z [main] liquibase.info-master.changelog.json:migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-13 :: R3.Corda:由于验证错误,跳过changeSet migration / vault-schema.changelog-pkey.xml :: non-clustered_pk-13 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-1 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-1 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-2 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-2 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-3 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-3 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-4 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-4 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-5 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-5 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-6 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-6 :: R3.Corda:在h2上不允许集群 [INFO] 2019-09-15T07:31:05,812Z [main] liquibase.info-master.changelog.json:migration / node-core.changelog-pkey.xml :: non-clustered_pk-7 :: R3.Corda:由于验证错误,跳过changeSet migration / node-core.changelog-pkey.xml :: non-clustered_pk-7 :: R3.Corda:在h2上不允许集群 ] 1

2 个答案:

答案 0 :(得分:0)

您使用的是哪个Corda版本? 如果您使用的是Corda 4,则可以尝试Corda 3,并检查是否发生相同的问题。 希望有帮助。

答案 1 :(得分:0)

尝试做

gradlew.bat clean deployNodes

在这里干净清除以前的交易数据,并重新创建persistent.mv.db文件。