IBM Support

PM06281: XCI: CHANGING LIST ELEMENT VALUE CHANGES CARDINALITY OF LIST

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • XCI: changing list element value changes cardinality of list
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of WebSphere Application Server v7    *
    *                  Feature Pack for Service Component          *
    *                  Architecture (SCA) Refresh Pack v1.0.1      *
    ****************************************************************
    * PROBLEM DESCRIPTION: DataObject.getList("booleanProperty").s *
    *                      et(4, Boolean.true) will increase       *
    *                      list size by 1                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If the "booleanProperty" is a multi-valued property of SDO
    Boolean type, setting a new value to the list will increase
    the list size by 1 instead of replacing the indexed value with
    the new value. In other word, the list size should remain the
    same.
    

Problem conclusion

  • This problem only occurs when the original list element is
    null. When it's replaced with a new value, the back-end XML
    data were not updated to remove the old value. Below is the
    code snippet to test this scenario.
    
    ArrayList booleans = new ArrayList();
    for (int i=0; i < 5; i++) {
    booleans.add(null);
    }
    dataObject.setList("boolean", booleans);
    assertTrue(dataObject.getList("boolean").size() == 5);
    dataObject.getList("boolean").set(4, Boolean.TRUE);
    assertTrue(dataObject.getList("boolean").size() == 5);
    
    APAR PM06281 is currently targeted for inclusion in Service
    Level (Fix Pack) 1.0.1.3 of WebSphere Application Server v7
    Feature Pack for Service Component Architecture (SCA) Refresh
    Pack. 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

    PM06281

  • Reported component name

    WAS SCA FEATURE

  • Reported component ID

    5724J0854

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-01-28

  • Closed date

    2010-02-16

  • Last modified date

    2010-02-16

  • 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

    WAS SCA FEATURE

  • Fixed component ID

    5724J0854

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SUPPORT","label":"IBM Worldwide Support"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"1.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
09 February 2022