corda - 帐户库:序列化失败方向 =“Deserialize”,预期为布尔值,但为 SignedTransaction
问题描述
我正在使用Accounts库。
- 我使用以下方法在我的第一个节点中创建了一个帐户:
flow start CreateAccount name: "adel"
- 我尝试通过从我的第二个节点运行流程来检索该帐户:
flow start GetAccountInfo uuid: "f8cf9d5c-ce4a-422a-af99-4e6563ac6536"
获取账户信息:
@StartableByRPC
public class GetAccountInfo extends FlowLogic<AccountInfo> {
private UUID uuid;
public GetAccountInfo(String uuid) {
this.uuid = UUID.fromString(uuid);
}
public GetAccountInfo(UUID uuid) {
this.uuid = uuid;
}
@Override
public AccountInfo call() throws FlowException {
// Get the host of all accounts
Party accountsRegistry = getServiceHub().getIdentityService().wellKnownPartyFromX500Name(
CordaX500Name.parse("O=Accounts-Registry,L=London,C=GB"));
return subFlow(new RequestAccountInfo(uuid, accountsRegistry));
}
}
错误:
[ERROR] 12:23:17-0500 [Node thread-1] amqp.DeserializationInput.log - Serialization failed direction="Deserialize", type="java.lang.Boolean", msg="Described type with descriptor net.corda:7mttgXO2HdBLwATyV7pCpg== was expected to be of type class java.lang.Boolean but was class net.corda.core.transactions.SignedTransaction", ClassChain="java.lang.Boolean" {actor_id=internalShell, actor_owning_identity=O=Tokens-Mint, L=London, C=GB, actor_store_id=NODE_CONFIG, fiber-id=10000001, flow-id=d0486083-decf-46fc-97eb-247923fce14f, invocation_id=a6bd568a-c834-48e6-b93b-9301609d59f1, invocation_timestamp=2019-08-27T17:23:15.546Z, origin=internalShell, session_id=c127adee-176e-454c-9777-5de852633e82, session_timestamp=2019-08-27T17:23:15.112Z, thread-id=220}
解决方案
这是一个错误 - 它已在 master 上修复。今天将发布新的 JAR。干杯:)
推荐阅读
- c - 取消引用的未初始化指针在内存中的位置?
- android - startForegroundService - 指定自定义“后台应用程序正在运行..”通知?
- html - 如何更改 helpText R Shiny 的颜色
- c# - 将会话请求添加到 API 调用
- python - 根据单列对 pandas 中的多列进行排序
- c++ - 为什么在`int`和`long long int`之间不能使用`std::min`
- python-3.x - Python 多处理池突然停止
- r - R如何在向量中找到一系列共同值(识别生长季节)
- python - 无限和有限级数的指数加权
- c++ - 无需超类化或子类化即可实现类似 CContainedWindow 的功能