corda

M14 runnodes cannot start the Controller

回眸只為那壹抹淺笑 提交于 2020-01-15 10:35:27
问题 After upgrading to M14, the controller node cannot start with the following exception. Is there anything different from M13 here? Thanks. Exception in thread "main" java.lang.NoClassDefFoundError: net/corda/webserver/services/WebServerPluginRegistry \Sean 回答1: This issue is generally caused by having a single plugin file implements WebServerPluginRegistry while also subclassing CordaPluginRegistry. You can fix this by splitting the WebServerPluginRegistry and CordaPluginRegistry into two

Can I finely control logging by Corda nodes

偶尔善良 提交于 2020-01-15 09:27:04
问题 How can I control logging from corda nodes better? Is the log4j2.xml file the only place? Can I, for instance, only turn off the I 15:37:04 89 NodeVaultService._queryBy - Vault Query for contract type: etc messages? 回答1: You cannot turn off specific messages, but your node's logging configuration file can specify the level each class should print messages at. For example, you could specify that the net.corda.node.services.vault.NodeVaultService class should only print messages that are WARN

missing parameter name at index 0 {}

微笑、不失礼 提交于 2020-01-15 05:47:10
问题 I try to write a demo - deliverydemo base on bootcamp-cordapp and refer cordapp-example for my own Order Flow. After Party A-C and Notary started by command "build/nodes/runnodes": TokenIssueFlow is worked. I can saw my Order Flow by "flow list" command in CLI. But got "missing parameter name at index 0 {}" when try to start my order flow. Thu Jul 26 09:41:51 CST 2018>>> flow start OrderPlaceFlow$OrderPlaceRequestFlow buyer: PartyB, seller: PartyC, sellingPrice: 12.9, downPayments: 0.1 flow

Corda 4 - Single Party Transaction Failed to Commit to Ledger

孤街浪徒 提交于 2020-01-14 06:20:10
问题 While upgrading from Corda 3 to Corda 4, I have an issue commiting a State to our node's ledger with only one Party. A single Party is able to create a state, notarize it, but CANNOT commit to the Corda 4 ledger without asking for an external third party. The error Corda 4 produces (which Corda 3 did not produce) is the following: (1) java.lang.IllegalArgumentException: A flow session for each external participant to the transaction must be provided. If you wish to continue using this

Legal prose in Corda

故事扮演 提交于 2020-01-10 20:08:31
问题 Can someone explain what is it legal prose in Corda? I understood that it is a document, which is used to solve conflicts, but i didnt find any information how it looks like. And how is it linked with smart contract? 回答1: A Contract class can be annotated with the @LegalProseReference annotation. This annotation associates the contract with a document that restates the constraints imposed by verify in legal prose terms. This is not required, but can be useful in contexts where it is expected

net.corda.testing.node.internal.ListenProcessDeathException: The process that was expected to listen on localhost:10000 has died with status: 1

本秂侑毒 提交于 2020-01-06 08:43:18
问题 Getting the below errors while building the sample corDapp cordapp-example-release-V3 : [INFO ] 14:29:29,050 [driver-pool-thread-0] (NodeInfoFilesCopier.kt:63) network.NodeInfoFilesCopier.addConfig - Now watching: C:\Users\purni\Downloads\cordapp-example-release-V3\build\20180413-085907.908\PartyA {} [INFO ] 14:29:29,050 [driver-pool-thread-0] (DriverDSLImpl.kt:814) internal.DriverDSLImpl.startOutOfProcessNode - Starting out-of-process Node PartyA, debug port is 5008, jolokia monitoring port

Changing the maxTransactionSize using Corda OS v3.x with network bootstrapper

浪尽此生 提交于 2020-01-06 06:18:37
问题 Can we change maxTransactionSize in Corda OS v3.x with network bootstrapper? Also the default value of maxTransactionSize is 525MB? as per the below code? https://github.com/corda/corda/blob/master/node-api/src/main/kotlin/net/corda/nodeapi/internal/network/NetworkBootstrapper.kt#L420 回答1: As of Corda 3, there is no way to change the network parameters of a bootstrapped network, except for adding additional whitelisted contract JARs. In Corda 4, a mechanism will be introduced to allow the

Corda webserver produces exception “User not authorized to perform RPC call nodeInfo with target”

一笑奈何 提交于 2020-01-06 04:41:29
问题 I am trying to restrict a node to perform certain flow, For Example, I have two flows FlowOne and FlowTwo. For PartyA, I want to give permission for FlowOne, For PartyB permission for FlowTwo. Permission to the rpc calls should be there also. Here is my rpcUsers configuration PartyA: rpcUsers = [[ user: "user1", "password": "test", "permissions": ["StartFlow.net.corda.mortgage.msr.flows.FlowOne","InvokeRpc.startFlow"]]] PartyB: rpcUsers = [[ user: "user2", "password": "test", "permissions": [

Can't start a IOUFlow from CordaShell (cordapp-template tutorial)

十年热恋 提交于 2020-01-05 05:43:19
问题 I'm trying to run the IOU cordapp-template but when I start the IOUFlow from the shell I got this error If the image isn't readable this is the command I'm providing start IOUFlow arg0: 10, arg1: "CN=NodeB,O=NodeB,L=New York, C=US" And this is the Error I got [iouValue: Int, otherParty: Party]: missing parameter iouValue However my object IOUFlow is correct, any suggestion on how to work on it? 回答1: You don't supply the params as arg0 , arg1 etc, but as the names of the parameters themselves.

Corda: error=org.hibernate.InstantiationException: No default constructor for entity

空扰寡人 提交于 2020-01-05 02:29:48
问题 I met a issue, please to help. Corda Code based on M13. My Schema code this is mainly use define a schema refer your sample. object LegalContractSchemaV1 : MappedSchema( schemaFamily = LegalContractSchema.javaClass, version = 1, mappedTypes = listOf(PersistentLegalContractState::class.java)) { @Entity @Table(name = "legal_contract_states") class PersistentLegalContractState( @Column(name = "contract_title`enter code here`") var contractTitle: String, @Column(name = "sender_name") var