com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: 1 -> 1 -> 1

Oracle Community | borbjo | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    A cycle in the object graph: This will cause infinitely deep XML

    Oracle Community | 1 decade ago | borbjo
    com.sun.istack.SAXException2: A cycle is detected in the object graph. This will cause infinitely deep XML: 1 -> 1 -> 1
  2. 0

    error trying to marshal a JAXB root object missing @XmlRootElement

    Stack Overflow | 4 years ago | Mitch McFarland
    com.sun.istack.SAXException2: unable to marshal type "com.synesis7.s7exporter.domain.s1000d.dm.common.XrefType" as an element because it is missing an @XmlRootElement annotation
  3. 0

    What causes SAXException2: Instance of “com.foo.Bar” is substituting “java.lang.Object”, but “com.foo.Bar” is bound to an anonymous type

    Stack Overflow | 5 years ago | shon das
    com.sun.istack.SAXException2: Instance of “com.foo.Bar” is substituting “java.lang.Object”, but “com.foo.Bar” is bound to an anonymous type com.foo.Bar@a2e3ss
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JaxB XmlSeeAlso, XmlElementRef, newInstance with Classes

    Stack Overflow | 4 years ago | Wolfgang Fahl
    com.sun.istack.SAXException2: unable to marshal type "com.bitplan.storage.jaxb.TestRefId$BasicInfo$BasicInfoRef" as an element because it is missing an @XmlRootElement annotation]
  6. 0

    Marshalling a Body into SOAP | Java.net

    java.net | 2 years ago
    com.sun.istack.SAXException2: unable to marshal type "java.lang.String" as an element because it is missing an @XmlRootElement annotation]

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.sun.istack.SAXException2

      A cycle is detected in the object graph. This will cause infinitely deep XML: 1 -> 1 -> 1

      at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError()
    2. Old JAXB Runtime
      MarshallerImpl.write
      1. com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:225)
      2. com.sun.xml.bind.v2.runtime.XMLSerializer.pushObject(XMLSerializer.java:483)
      3. com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:574)
      4. com.sun.xml.bind.v2.runtime.property.SingleElementNodeProperty.serializeBody(SingleElementNodeProperty.java:114)
      5. com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
      6. com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
      7. com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
      8. com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
      9. com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
      10. com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
      11. com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
      12. com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
      13. com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
      14. com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
      15. com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:286)
      16. com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:619)
      17. com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
      17 frames