Could not write JSON: Infinite recursion (StackOverflowError);

Application Name: Reference Application
Version Number: 2.4.3 Build 0ff0ed

Question: I’m getting error Could not write JSON: Infinite recursion (StackOverflowError).





Drus .java

Error log ErrorLog.txt (377.7 KB)

help me to fix this error!

@dkayiwa @abertnamanya can you help me to solve this.

Did you get a chance to look at this? Adding a Web Service Step by Step Guide for Module Developers - Documentation - OpenMRS Wiki

1 Like

Thanks for the reply. I fixed it. fixed it by Create a DTO and include only the fields that you want to display in the response.