net.corda.core.serialization.SerializationWhitelist: Ошибка чтения файла конфигурации - PullRequest
0 голосов
/ 14 мая 2018

Я скачал шаблон cordapp (Java) с https://github.com/corda/cordapp-template-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 голосов
/ 15 мая 2018

Это вызвано устаревшим процессом Gradle. Вам нужно убить этот процесс.

Вы можете использовать killall java -9 или pkill java в Unix или wmic process where "name like '%java%'" delete, чтобы уничтожить все процессы Java.

Или вы можете использовать что-то вроде:

  • lsof -nP +c 15 | grep LISTEN для поиска процессов и портов
  • ps ax | grep <pid> для подтверждения командной строки процесса
  • kill -9 <pid>
...