IV31674: JAXB MARSHALLER FAILS WITH NULLPOINTEREXCEPTION

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

APAR status

  • Closed as program error.

Error description

  • Error Message: java.lang.NullPointerException
    .
    Stack Trace: Caused by: java.lang.NullPointerException
       at
    com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.checkOver
    rideProperties(ClassBeanInfoImpl.java:190)
       at
    com.sun.xml.internal.bind.v2.runtime.ClassBeanInfoImpl.<init>(Cl
    assBeanInfoImpl.java:171)
       at
    com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getOrCreate
    (JAXBContextImpl.java:494)
       at
    com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getOrCreate
    (JAXBContextImpl.java:513)
       at
    com.sun.xml.internal.bind.v2.runtime.property.ArrayReferenceNode
    Property.<init>(ArrayReferenceNodeProperty.java:72)
       at
    sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
    Method)
    .
    N/A
    

Local fix

  • N/A
    

Problem summary

  • When an object is JAXB marshalled its properties and those of
    its superclass(es) need to be marshalled.
    In the case that a property is overridden only one value needs
    to be marshalled.
    In constructing this table of properties and inherited
    properties the method ClassBeanInfoImpl.checkOverrideProperties
    checks for overridden properties in the subclass(es).
    This method did not check if the property array of the super
    class was null before attempting to iterate over it and hence
    threw the NullPointerException.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR13
    6.0.1 SR5
    .
     JVM has been updated to have a null check before iterating over
    the property array
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV31674

  • 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-11-09

  • Closed date

    2012-12-19

  • Last modified date

    2012-12-19

  • 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



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV31674

Modified date:

2012-12-19

Translate my page

Machine Translation

Content navigation