首页 > 解决方案 > 帐户库:序列化失败方向 =“Deserialize”,预期为布尔值,但为 SignedTransaction

问题描述

我正在使用Accounts库。

  1. 我使用以下方法在我的第一个节点中创建了一个帐户:flow start CreateAccount name: "adel"
  2. 我尝试通过从我的第二个节点运行流程来检索该帐户: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}

标签: corda

解决方案


这是一个错误 - 它已在 master 上修复。今天将发布新的 JAR。干杯:)


推荐阅读