IBM Support

PM53049: Transactions fail with a NullPointerException, when getSession is called before initializing on a local data grid.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When multiple threads call getSession on a local data grid, a
    transaction can fail with a NullPointerException when session
    commit or rollback is invoked.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of WebSphere eXtreme Scale who use a  *
    *                  local data grid and getSession to           *
    *                  initialize the data grid instance.          *
    ****************************************************************
    * PROBLEM DESCRIPTION: A field in an ObjectGrid instance is    *
    *                      not initialized early enough.  This     *
    *                      field is needed for transaction         *
    *                      operations.                             *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When ObjectGrid.getSession() is called by multiple threads and
    one of the getSession() invocations initializes the data grid,
    transactions on the returned sessions do not complete with
    the following exception.  Other sessions that are created
    after the necessary field is initialized do not have this
    issue.
    com.ibm.websphere.objectgrid.TransactionException:
    java.lang.NullPointerException
    at
    com.ibm.ws.objectgrid.SessionImpl.rollback(SessionImpl.java:1923
    )
    Caused by: java.lang.NullPointerException
    at
    com.ibm.ws.objectgrid.SessionImpl.rollback(SessionImpl.java:1896
    )
    

Problem conclusion

  • The data grid initialization code was updated to make sure
    that the necessary field in the ObjectGrid instance is
    initialized earlier to avoid the NullPointerException exception.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM53049

  • Reported component name

    XD EXTREME SCAL

  • Reported component ID

    5724J3402

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-28

  • Closed date

    2012-02-03

  • Last modified date

    2012-02-03

  • 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

    XD EXTREME SCAL

  • Fixed component ID

    5724J3402

Applicable component levels

  • R610 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSTVLU","label":"WebSphere eXtreme Scale"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 September 2020