IRFVIN / art-point

A Consumer to Consumer (C2C) art selling platform which allows you to showcase your art and discover other artists.
https://art-point.herokuapp.com
0 stars 0 forks source link

GET /art/id causes infinite recursion #16

Closed genericSpecimen closed 2 years ago

genericSpecimen commented 2 years ago

Commit f69eba75121e3dda57ebed608a0475113a8eaefe

Issue

Could not write JSON: Infinite recursion (StackOverflowError); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.artpoint.entity.Art["categories"])"

References

  1. https://www.baeldung.com/jackson-bidirectional-relationships-and-infinite-recursion
  2. https://stackoverflow.com/a/57111004
genericSpecimen commented 2 years ago