Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create CordaFlowResult for type List #25

Open
parthbond180 opened this issue Oct 5, 2021 · 1 comment
Open

Cannot create CordaFlowResult for type List #25

parthbond180 opened this issue Oct 5, 2021 · 1 comment

Comments

@parthbond180
Copy link
Contributor

parthbond180 commented Oct 5, 2021

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

@Grodriggues
Copy link

Did you find the solution? I am having the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants