Skip to content

Cannot create CordaFlowResult for type List #25

@shukpa

Description

@shukpa

Steps to reproduce:

  1. Open codaptor with snakesandladders-cordapp on the corda github Advanced examples
  2. After startup an error is displayed with the following message -

{​​​​​"cause":{​​​​​"class":"tech.b180.cordaptor.rest.SerializationException","message":"Error finding serializer for property value of object Parameterised(CordaFlowResult<List (erased)>)","cause":"java.lang.AssertionError: Don't know how to make instances of interface java.util.List"}​​​​​,"errorType":"GENERIC_ERROR","message":"Unknown server error"}​​​​​
Edit:

It seems the issue is because the Flow return type for flow AccountInfoByName under Accounts SDK of Corda has nested parametrisation - e.x., FlowLogic<List<StateAndRef>>

The SerialiserKey in this case is not being created correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions