com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->[…])

Stack Overflow | PLahm21 | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    XWiki: StackOverflowError while importing XAR

    Stack Overflow | 7 months ago | PLahm21
    com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->[…])
  2. 0

    GitHub comment 69#113192175

    GitHub | 2 years ago | reda-alaoui
    com.fasterxml.jackson.databind.JsonMappingException: could not initialize proxy - no Session (through reference chain: com.foo.app.grid.GridConfiguration["user"]->com.foo.app.user.factory.User["siteClearances"]->org.hibernate.collection.internal.PersistentSet[0]->com.foo.app.site.SiteClearance["site"]->com.foo.app.site.Site["company"]->com.foo.app.company.Company_$$_jvstebb_7["name"])

    Root Cause Analysis

    1. com.fasterxml.jackson.databind.JsonMappingException

      Infinite recursion (StackOverflowError) (through reference chain: java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->java.util.UnmodifiableList[0]->org.xwiki.model.reference.EntityReference["reversedReferenceChain"]->[…])

      at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields()
    2. Jackson
      CollectionSerializer.serialize
      1. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:677)[jackson-databind-2.5.0.jar:2.5.0]
      2. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:156)[jackson-databind-2.5.0.jar:2.5.0]
      3. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:132)[jackson-databind-2.5.0.jar:2.5.0]
      4. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:94)[jackson-databind-2.5.0.jar:2.5.0]
      5. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:24)[jackson-databind-2.5.0.jar:2.5.0]
      6. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:575)[jackson-databind-2.5.0.jar:2.5.0]
      7. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:663)[jackson-databind-2.5.0.jar:2.5.0]
      8. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:156)[jackson-databind-2.5.0.jar:2.5.0]
      9. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:132)[jackson-databind-2.5.0.jar:2.5.0]
      10. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:94)[jackson-databind-2.5.0.jar:2.5.0]
      11. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:24)[jackson-databind-2.5.0.jar:2.5.0]
      12. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:575)[jackson-databind-2.5.0.jar:2.5.0]
      13. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:663)[jackson-databind-2.5.0.jar:2.5.0]
      14. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:156)[jackson-databind-2.5.0.jar:2.5.0]
      15. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:132)[jackson-databind-2.5.0.jar:2.5.0]
      16. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:94)[jackson-databind-2.5.0.jar:2.5.0]
      17. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:24)[jackson-databind-2.5.0.jar:2.5.0]
      18. com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:575)[jackson-databind-2.5.0.jar:2.5.0]
      19. com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:663)[jackson-databind-2.5.0.jar:2.5.0]
      20. com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:156)[jackson-databind-2.5.0.jar:2.5.0]
      21. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serializeContents(CollectionSerializer.java:132)[jackson-databind-2.5.0.jar:2.5.0]
      22. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:94)[jackson-databind-2.5.0.jar:2.5.0]
      23. com.fasterxml.jackson.databind.ser.std.CollectionSerializer.serialize(CollectionSerializer.java:24)[jackson-databind-2.5.0.jar:2.5.0]
      23 frames