问题描述
我正在尝试将新节点添加到现有的Corda网络
在使用Corda Network Bootstrapper 4.0开源添加新节点时,ByteSequence不在白名单上或未标注@CordaSerializable问题
ByteSequence is not on the whitelist or annotated with @CordaSerializable issue while adding new node using corda network bootstrapper 4.0 open source
要将新节点添加到现有网络中,我遵循以下选项,在此链接处建议使用以下选项如何将新节点添加到现有的corda网络?
To add a new node to an existing network I followed below option which is recommended here at this linkHow to add a new node to an existing corda network?
我使用了网络引导程序 https://docs.corda.net/network-bootstrapper.html (并正确遵循文档)
I Used the network bootstrapper https://docs.corda.net/network-bootstrapper.html (and followed docs correctly)
我在运行时遇到错误
java -jar corda-tools-network-bootstrapper-4.0.jar --dir< nodes-root-dir>
命令.
错误:-
Loading existing network parameters... [ERROR] 14:57:27+0530 [main] amqp.DeserializationInput.log - Serialization failed direction="Deserialize",
type="java.lang.Comparable<net.corda.core.utilities.ByteSequence>",
msg="Class "java.lang.Comparable<net.corda.core.utilities.ByteSequence>" is not on the whitelist or annotated with @CordaSerializable.",
ClassChain="java.lang.Comparable<net.corda.core.utilities.ByteSequence>"
Class "java.lang.Comparable<net.corda.core.utilities.ByteSequence>" is not on the whitelist or annotated with @CordaSerializable
运行此命令后的结果:-
- 已创建新节点的文件夹,并在适当的位置将node-info文件复制到其他节点.
- 在执行上述java命令时,在命令行中收到了以上错误.
- 在新节点上尝试java -jar corda.jar时,新节点已启动并正在运行.
- 但是其他节点的"additional-node-infos"文件夹中的现有node-info文件已更新,其中包含与此序列化相关的一些内容.
请在下面帮助
- 要解决有关bootstrapper命令时有关Corda序列化的错误?
- 关于点号从上面04是正确的行为吗?
推荐答案
似乎您甚至无法成功引导网络.我建议您尝试一下我们的最新版本的引导程序: https://docs.corda.net/docs/corda-os/4.4/network-bootstrapper.html
It seems you cannot even successfully bootstrapped the network. I would suggest you give a try on our latest version of the boot-strapper:https://docs.corda.net/docs/corda-os/4.4/network-bootstrapper.html
人们使用引导程序的主要原因是要远程启动模拟网络.理想情况下,您将执行以下步骤:
The primary reason people use boot-strapter is to start a mock network remotely. Ideally, you would go through the following steps:
- 构建您的cordapp
- 使用deployNodes获取每个节点的目录.
- 将XXX_node.conf文件复制到另一个文件夹
- 对您的node.conf进行更改以更新端口等的所有更改
- 将CorDapps罐子复制到新文件夹中
- 运行引导程序
- 将新生成的目录复制到远程虚拟机.
这篇关于使用网络引导程序4.0操作系统添加新节点时,ByteSequence不在白名单上或在带注释的@CordaSerializable问题上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!