IBM Support

PM53866: MISSING NULL ELEMENT DUE TO PROPERTY.GETDEFAULT() RETURN INCORRECT RESULT.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The problem is where property.getDefault() will return an
    incorrect result. For primitive types boolean, byte, char,
    double, float, int, short, and long,given a property p of that
    type for which there is no value set and no default value,
    dataObject.get(p) will return an implicit default value of false
    for boolean, and 0 for the other types.
    
    p.getDefault() is also returning this implicit default,
    but it should not, and this triggers the BO layer to unset
    the property rather than set its value to null.
    Unsetting the value will not produce an XML element with
    attribute xsi:nil="true" in the serialization;
    the value must be set to null.
    
    Under WebSphere Process Server environment, this issue can be
    observed only with Lazy parsing mode.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of the Service Data Objects (SDO) API *
    *                  in IBM WebSphere Application Server V8.0    *
    *                  and WebSphere Process Server                *
    ****************************************************************
    * PROBLEM DESCRIPTION: property.getDefault() returns           *
    *                      incorrect result                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If no default value is specified for a property, the
    Property.getDefault() method returns a default value for
    properties with an instance class of a primitive type, based
    on that type. For example, this method returns false for a
    boolean property. The correct return value is null. false
    should only be returned when the value of the property is
    retrieved.
    

Problem conclusion

  • The Property.getDefault() method has been corrected to not use
    implicit defaults based on the instance class.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.3.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM53866

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-08

  • Closed date

    2011-12-19

  • Last modified date

    2011-12-19

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

    PM53362

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

Fix information

  • Fixed component name

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021