问题
I am trying to add new node to existing corda network
ByteSequence is not on the whitelist or annotated with @CordaSerializable issue while adding new node using corda network bootstrapper 4.0 open source
To add a new node to an existing network I followed below option which is recommended here at this link How to add a new node to an existing corda network?
I Used the network bootstrapper https://docs.corda.net/network-bootstrapper.html (and followed docs correctly)
I am getting below error when running
java -jar corda-tools-network-bootstrapper-4.0.jar --dir <nodes-root-dir>
command.
Error :-
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
Results after running this command :-
- New node's folder got created and node-info file got copied at appropriate places to other nodes as well.
- Got the above error on command line when executed the above java command.
- New Node got up and running when tried java -jar corda.jar on new node.
- But existing node-info files from "additional-node-infos" folder of other nodes got updated with some content related to this serialization in it.
Please help on below
- To resolve this error regarding Corda Serialization when running bootstrapper command ?
- Regarding Point no. 04 from above is this a correct behavior ?
回答1:
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:
- build your cordapp
- use deployNodes to get the directories for each nodes.
- copy the XXX_node.conf file to a different folder
- make change to your node.conf to update any changes for ports or etc
- copy the CorDapps jars to the new folder
- run the bootstrapper
- copy the newly generated directories to the remote vm.
来源:https://stackoverflow.com/questions/59896554/bytesequence-not-on-whitelist-or-annotated-cordaserializable-issue-while-adding