IBM Support

IJ22142: JAXB XML VALIDATION FAILS ON IBM JDK >= 8.0.5.15

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.RuntimeException: Unable to unmarshall
    model: cvc-elt.4.3: Type 'xs:string' is not validly derived from
    the type definition, 'IDREF', of element 'tns:deployment'.13
    .
    Stack Trace: at
    org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseExcepti
    on(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
    Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
    Source)
    at
    org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.re
    portError(Unknown Source)
    at
    org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(U
    nknown Source)
    at
    org.apache.xerces.impl.xs.XMLSchemaValidator.getAndCheckXsiType(
    Unknown Source)
    at
    org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(
    Unknown Source)
    at
    org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknow
    n Source)
    at
    org.apache.xerces.jaxp.validation.ValidatorHandlerImpl.startElem
    ent(Unknown Source)
    at
    com.sun.xml.internal.bind.v2.runtime.unmarshaller.ValidatingUnma
    rshaller.startElement(ValidatingUnmarshaller.java:98)
    at
    com.sun.xml.internal.bind.v2.runtime.unmarshaller.SAXConnector.s
    tartElement(SAXConnector.java:165)
    .
    N/A
    

Local fix

  • N/A
    

Problem summary

  • Starting from IBM JDK 8.0.5.15, JAXB unmarshalling fails because
    XSD validation fails with the below exception:
    java.lang.RuntimeException: Unable to unmarshall model:
    cvc-elt.4.3: Type 'xs:string' is not validly derived from the
    type definition, 'IDREF', of element 'tns:deployment'.13
    

Problem conclusion

  • The method 'isLeaf(RuntimePropertyInfo info)' from
    com.sun.xml.internal.bind.v2.runtime.property.PropertyFactory.ja
    va is updated to make sure 'IDREF' type is always handled as
    leaf.
    .
    This APAR will be fixed in the following Java Releases:
       8    SR6 FP5   (8.0.6.5)
    .
    Contact your IBM Product's Service Team for these Service
    Refreshes and Fix Packs.
    For those running stand-alone, information about the available
    Service Refreshes and Fix Packs can be found at:
               https://www.ibm.com/developerworks/java/jdk/
    

Temporary fix

Comments

APAR Information

  • APAR number

    IJ22142

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-01-17

  • Closed date

    2020-01-21

  • Last modified date

    2020-01-21

  • 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

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
21 February 2022