net.corda.core.serialization.SerializationWhitelist:读取配置文件时出错

时间:2018-05-14 19:56:52

标签: corda

我从https://github.com/corda/cordapp-template-java下载了cordapp模板(Java)。

每次我对项目进行查询时,gradlew deplyNodes失败并出现以下错误。但是,一旦我重新启动系统,它就会自动解决。

有什么,我想念?

> Configure project :
Gradle now uses separate output directories for each JVM language, but this build assumes a single directory for all classes from a source set. This behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
        at build_d668pifueefmtb65xfqnh374z$_run_closure5.doCall(C:\Users\amit.pamecha\Documents\workspace\abcdwork\capital-coin\cordapp-template-java\build.gradle:83)
The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
        at build_d668pifueefmtb65xfqnh374z$_run_closure5.doCall(C:\Users\amit.pamecha\Documents\workspace\abcdwork\capital-coin\cordapp-template-java\build.gradle:83)

> Task :deployNodes
Bootstrapping local network in C:\Users\amit.pamecha\Documents\workspace\abcdwork\capital-coin\cordapp-template-java\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
Nodes found in the following sub-directories: [Notary, PartyA, PartyB]
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 ':deployNodes'.
> net.corda.core.serialization.SerializationWhitelist: Error reading configuration file

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

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

BUILD FAILED in 26s
12 actionable tasks: 4 executed, 8 up-to-date

1 个答案:

答案 0 :(得分:3)

这是由陈旧的Gradle流程引起的。你需要杀死这个过程。

您可以在Unix上使用killall java -9pkill javawmic process where "name like '%java%'" delete来杀死所有Java进程。

或者您可以使用以下内容:

  • lsof -nP +c 15 | grep LISTEN查找进程和端口
  • ps ax | grep <pid>确认流程的命令行
  • kill -9 <pid>