180Protocol / codaptor

Instantly add Corda to any tech stack and improve resiliency of your architecture
GNU Affero General Public License v3.0
15 stars 5 forks source link

Cannot create CordaFlowResult for type List #25

Open parthbond180 opened 3 years ago

parthbond180 commented 3 years ago

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 commented 2 years ago

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