2.Intellij打开Corda-Sample
3。选择“运行示例Cordapp-Kotlin”并运行
4。打开“ build.gradle”(Clients / src)并运行“ runPartyAServer”和“ runPartyBServer”
5。访问“ https://github.com/corda/samples”和“创建借条”
6。发生异常。
java.io.NotSerializableException: com.example.flow.ExampleFlow$Initiator was not found by the node, check the Node containing the CorDapp that implements com.example.flow.ExampleFlow$Initiator is loaded and on the Classpath
如何解决此异常?
答案 0 :(得分:0)
您正在运行节点吗?
此命令为示例“ cordapp-example”,
Xrm.WebApi.online.retrieveMultipleRecords("contact", "?$select=_accountid_value,contactid,fullname&$filter=_accountid_value eq 4930FC98-5F75-E911-A83C-000D3A385DD4").then(
function success(results) {
for (var i = 0; i < results.entities.length; i++) {
var _accountid_value = results.entities[i]["_accountid_value"];
var _accountid_value_formatted = results.entities[i]["_accountid_value@OData.Community.Display.V1.FormattedValue"];
var _accountid_value_lookuplogicalname = results.entities[i]["_accountid_value@Microsoft.Dynamics.CRM.lookuplogicalname"];
var contactid = results.entities[i]["contactid"];
var fullname = results.entities[i]["fullname"];
}
},
function(error) {
Xrm.Utility.alertDialog(error.message);
}
);
如果构建文件夹不存在,请构建它。
此命令是构建命令,(请运行“ cordapp-example”目录)
./cordapp-example/workflows-kotlin/build/nodes/runnodes
干杯!