Anybody know the reason of this error?
What could be wrong here?
Don't use @DataModel and @Out on the same field/variable. @DataModel outjects the List. So remove @Out.
Make sure listarTodos() returns List<Cargo>. Most likely the compiler will complain if it doesn't anyways...
Ok, removing the @ Out it worked, thanks.