帐户库:序列化失败 direction="Deserialize",应为布尔值但为 SignedTransaction
Accounts Library: Serialization failed direction="Deserialize", expected Boolean but was SignedTransaction
我正在使用 Accounts 库。
- 我在我的第一个 节点中创建了一个帐户,使用:
flow start CreateAccount name: "adel"
- 我尝试通过 运行 来自我的 second 节点的流检索该帐户:
flow start GetAccountInfo uuid: "f8cf9d5c-ce4a-422a-af99-4e6563ac6536"
GetAccountInfo:
@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。干杯:)
我正在使用 Accounts 库。
- 我在我的第一个 节点中创建了一个帐户,使用:
flow start CreateAccount name: "adel"
- 我尝试通过 运行 来自我的 second 节点的流检索该帐户:
flow start GetAccountInfo uuid: "f8cf9d5c-ce4a-422a-af99-4e6563ac6536"
GetAccountInfo:
@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。干杯:)