Hi Comunity, When i use the ivy.repo.save to save my business data. I got an error as below: java.lang.StackOverflowError JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.ArrayList[0]->ch.ivyteam.ivy.security.internal.Role["users"]->ch.ivyteam.ivy.persistence.client.PersistentClientObjectList[0]->ch.ivyteam.ivy.security.internal.User["allRoles"]->.....
Could any one help me to explain why it happen and how to solve it? Thanks asked 04.05.2020 at 06:24 pttung |
You are trying to persist a collection of ivy-core user objects. And these are long recursive trees. Which even lead to a stack overflow if you try to serialize them. However, normally this happens by an accident when designing your Data. And I'd simply remove that object from the object tree before serializing. I didn't test it but think that either by removing 'persist' flags on the DataClass or if you are persisting a normal java object, just mark the field and it's getters with answered 04.05.2020 at 13:46 Reguel Werme... ♦♦ |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 04.05.2020 at 06:24
Seen: 1,276 times
Last updated: 06.05.2020 at 07:34