corda

org.hibernate.AnnotationException is not annotated or on the whitelist

五迷三道 提交于 2019-12-25 01:34:28
问题 I have tired to add @Id for primary key declaration in schema. build and ran successfully. But its shows as Class org.hibernate.AnnotationException is not annotated or on the whitelist, so cannot be used in serialization Serialization trace: cause (rx.exceptions.OnErrorNotImplementedException) throwable (rx.Notification) . i added @corda serializable too. please help me out. 回答1: The issue is as follows: Your code is throwing an org.hibernate.AnnotationException The node is trying to send

Corda - Purpose of NULL_PARTY

一曲冷凌霜 提交于 2019-12-25 01:06:58
问题 What is the purpose of NullKeys.NULL_PARTY ? For example, when should I use party: AbstractParty = NullKeys.NULL_PATRY Rather than party: AbstractParty? = null 回答1: party: AbstractParty? = null The above defines a nullable variable i.e. party will either be an AbstractParty or it will be null party: AbstractParty = NullKeys.NULL_PARTY The above on the other hand, will never result in party being null , but rather you'll end up with an AnonymousParty with a null public key. NULL_PARTY could

How to persist data in H2 Database after node redeployment in Corda?

混江龙づ霸主 提交于 2019-12-24 20:59:08
问题 I want to persist data in Corda H2 database after Node Deployment . The data got wiped out when I redeploy the nodes again . Is there any way that my data got persistent even after I make changes in my node and deploy them ? 回答1: Every time you run gradlew deployNodes , the node folders will be deleted and re-created, removing your data. However, there is no need to constantly re-deploy the nodes. If you want to make changes to your nodes' configuration, simply edit the nodes' node.conf files

Corda - java.lang.IllegalArgumentException being thrown from a validating notary

随声附和 提交于 2019-12-24 20:24:39
问题 I am getting the following exception from a validating notary: java.lang.IllegalArgumentException: Not a valid Java name: java.util.Set<example.mypackage.MyClass> MyClass is located in the states/contracts jar Stack Trace java.io.NotSerializableException: Unexpected throwable: net.corda.core.transactions.WireTransaction -> net.corda.core.transactions.WireTransaction -> null java.lang.reflect.InvocationTargetException: net.corda.core.transactions.WireTransaction -> net.corda.core.transactions

In Corda `devMode`, do I have to rerun the bootstrapper after creating or updating a CorDapp

偶尔善良 提交于 2019-12-24 19:17:59
问题 I am running a Corda network in devMode using the Network Bootstrapper. If I create a new CorDapp JAR/update an existing CorDapp JAR, and want to deploy it to the network, how do I proceed? Is it enough to stop each node, add the JAR to each node's cordapps folder, and restart the nodes? Or do I have to rerun the bootstrapper? 回答1: You will need to rerun the bootstrapper to update the whitelistedContractImplementations in the NetworkParameters . See https://docs.corda.net/head/network

Corda V3 Error java.util.concurrent.ExecutionException

非 Y 不嫁゛ 提交于 2019-12-24 19:17:39
问题 I upgraded today from Corda V2 to Corda V3. Programs that were running on V2 will not work so please help me. The following error occurs :- [ERROR] 16:02:31,129 [qtp1715876585-27] (ExampleApi.java:226) api.ExampleApi.myMethod - java.io.NotSerializableException: net.corda.core.contracts.TransactionState -> data(net.corda.core.contracts.ContractState) -> Constructor parameter - "parameter_2" - doesn't refer to a property of "class com.example.state.MyState" -> class com.example.state.MyState {}

Node is using parameters with hash: X but network map is advertising: Y exception

只愿长相守 提交于 2019-12-24 18:50:00
问题 When starting a Corda node, I receive the following error message: Node is using parameters with hash: X but network map is advertising: Y. What is the cause of this error, and how can I address it? 回答1: This error means that your node's compatibility zone has pushed a new set of network parameters, and you need to accept them. You accept the new network parameters by invoking the CordaRPCOps.acceptNewNetworkParameters() RPC operation on your node. acceptNewNetworkParameters takes as its sole

notary change transactions from validating to non-validating notaries

故事扮演 提交于 2019-12-24 14:05:56
问题 while doing a notary change transaction from validating notaries to a new set of non validating notaries, how does the new set of non-validating notaries learn about the previous transactions?. Do they get only the hashes of previous transactions or the entire transaction dependency graph? 回答1: The new notary does not learn about the past transactions at all. Instead, we have the following process: A transaction with hash 2772BE and notary NotaryA is committed to the ledger Someone wants to

Is it possible to add an auditor peer in corda?

Deadly 提交于 2019-12-24 12:25:13
问题 I would like to add some sort of an auditor peer in corda. Is it possible with my use case?: Currently the network has two peers: partyA and partyB. There are about 100 transactions involving both parties. Lets say later on a partyC (the auditor) joins the network: is it possible to give partyC access to all of those already posted (and future) transactions in the ledger involving partyA and partyB?. 回答1: You should use the observer nodes feature. See the tutorial here and the Observable

Flow Sessions we're not provided for following transaction participants - Corda 4

匆匆过客 提交于 2019-12-24 10:57:06
问题 i am getting this error in corda 4 Flow sessions were not provided for the following transaction participants I don't want this participant to sign my transaction then why I got this error? I have two parties defined in my state class and I want only one of them of to sign the transaction, and I didn't created the flow session for the other party. Please help to resolve this. 回答1: In Corda 4, you are required to pass FinalityFlow a list of sessions that includes all of the transaction's