【问题标题】:Unable to do flow test in corda无法在corda中进行流量测试
【发布时间】:2019-08-16 16:52:39
【问题描述】:

尝试使用 intellij IDE V2019.2 执行流测试时测试失败并显示以下错误 命令行太长。缩短命令行

然后尝试更改缩短命令行中的其他选项并重新测试。

然后它显示 java.lang.IllegalArgumentException: There are no CorDapps contains package com.kba.flows 在类路径上。确保包名正确,并且 CorDapp 已作为 gradle 依赖项添加。

【问题讨论】:

    标签: corda


    【解决方案1】:

    当类路径中不存在 CorDapps 时,会引发“IllegalArgumentException”错误。见下文 -

    when (jars.size) {
                0 -> throw IllegalArgumentException("There are no CorDapps containing the package $scanPackage on the classpath. Make sure " +
                        "the package name is correct and that the CorDapp is added as a gradle dependency.")
    

    请检查 CorDapp jar 是否存在于类路径中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-07-19
      • 2021-12-22
      • 1970-01-01
      • 2018-05-04
      • 1970-01-01
      • 2018-08-07
      相关资源
      最近更新 更多