帐户库:序列化失败direction =“ Deserialize”,应为布尔值,但为SignedTransaction

时间:2019-08-27 17:40:48

标签: corda

我正在使用帐户库。

  1. 我在{strong>第一个节点中使用flow start CreateAccount name: "adel"
  2. 创建一个帐户
  3. 我尝试通过从 second 节点:flow start GetAccountInfo uuid: "f8cf9d5c-ce4a-422a-af99-4e6563ac6536"
  4. 运行流来检索该帐户

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}

1 个答案:

答案 0 :(得分:0)

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