giulio-quaresima / unicam-turns

Apache License 2.0
0 stars 0 forks source link

com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) #13

Closed giulio-quaresima closed 2 years ago

giulio-quaresima commented 2 years ago

Questa

org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]->eu.giulioquaresima.unicam.turns.domain.entities.User["firebaseTokens"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.FirebaseToken["user"]-
...

e quest'altra

org.springframework.http.converter.HttpMessageNotWritableException: Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: eu.giulioquaresima.unicam.turns.domain.entities.User["tickets"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.Ticket["session"]->eu.giulioquaresima.unicam.turns.domain.entities.Session["ticketDispenser"]->eu.giulioquaresima.unicam.turns.domain.entities.TicketDispenser["owner"]->eu.giulioquaresima.unicam.turns.domain.entities.Owner["ownersUsers"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.User["tickets"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.Ticket["session"]->eu.giulioquaresima.unicam.turns.domain.entities.Session["ticketDispenser"]->eu.giulioquaresima.unicam.turns.domain.entities.TicketDispenser["owner"]->eu.giulioquaresima.unicam.turns.domain.entities.Owner["ownersUsers"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.User["tickets"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.Ticket["session"]->eu.giulioquaresima.unicam.turns.domain.entities.Session["ticketDispenser"]-
>eu.giulioquaresima.unicam.turns.domain.entities.TicketDispenser["owner"]->eu.giulioquaresima.unicam.turns.domain.entities.Owner["ownersUsers"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.User["tickets"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.Ticket["session"]->eu.giulioquaresima.unicam.turns.domain.entities.Session["ticketDispenser"]->eu.giulioquaresima.unicam.turns.domain.entities.TicketDispenser["owner"]->eu.giulioquaresima.unicam.turns.domain.entities.Owner["ownersUsers"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.User["tickets"]->org.hibernate.collection.internal.PersistentSet[0]->eu.giulioquaresima.unicam.turns.domain.entities.Ticket["session"]->eu.giulioquaresima.unicam.turns.domain.entities.Session["ticketDispenser"]->eu.giulioquaresima.unicam.turns.domain.entities.TicketDispenser["owner"]->eu.giulioquaresima.unicam.turns.domain.entities.Owner["ownersUsers"]-
...