IBM Support What's New?

IV22074: JAXB MARSHALLING FAILS IF THE OBJECT GRAPH HAS CYCLIC DEPENDENCY.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Error Message: javax.xml.bind.MarshalException
    - with linked exception:
    <OSB>com.sun.istack.internal.SAXException2: A cycle is detected
    in the object graph. This will cause infinitely deep XML:
    .
    Stack Trace: javax.xml.bind.MarshalException
     - with linked exception:
    <OSB>com.sun.istack.internal.SAXException2: A cycle is detected
    in the object graph.
     This will cause infinitely deep XML:
    tests.com.ibm.jtc.jax.jse8972.Child@6710671 ->
    tests.com.ibm.jtc.jax.jse8972.Grandchild@6760676 ->
    tests.com.ibm.jtc.jax.jse8972.Child@6710671<CSB>
     at
    com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.write(Marsha
    llerImpl.java:329)
     at
    com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.marshal(Mars
    hallerImpl.java:255)
     at
    javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMa
    rshallerImpl.java:86)
     at
    tests.com.ibm.jtc.jax.jse8972.JUnitDepTest.testDependency(JUnitD
    epTest.java:40)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:60)
     at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:37)
    .
    

Local fix

  • N/A
    

Problem summary

  • The problem is caused while code is unable to process xsi:type
    correctly while IZ69790 applied. A new JAXBContext property
    JAXBRIContext.IMPROVED_XSI_TYPE_HANDLING (or system property
    "com.sun.xml.bind.improvedXsiTypeHandling") is being introduced
    to handle xsi:type on XMl leaf elements based on condition.
    Setting this property true/false will enabled/disabled xsi:type
    handling while creating the JAXBContext.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR3
    .
    JVM has been modified to update IMPROVED_XSI_TYPE_HANDLING
    property value while creating the context .
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV22074

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-04

  • Closed date

    2012-06-18

  • Last modified date

    2012-06-18

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP



Document information

More support for: Runtimes for Java Technology
Java Class Libraries

Software version: 6.0

Reference #: IV22074

Modified date: 2012-06-18