IBM Support

PM08251: CALLING SETSTRING() WITH NULL VALUE WOULD CAUSE GET() TO THROW NULLPOINTEREXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Calling setString() with a null value would cause get() to throw
    a NullPointerException
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of ibm WebSphere Application Server   *
    *                  v7 Feature Pack for Service Component       *
    *                  Architecture (SCA) Refresh Pack v1.0.1 and  *
    *                  WebSphere Process Server v7.0               *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Calling DataObject.setString() with a   *
    *                      null value then get() would throw a     *
    *                      NullPointerException                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Below is the test that would reproduce the problem.
    
    XSD:
    <xsd:element name="long" type="xsd:long" />
    
    Java code: dobj.setString("long", null); dobj.getLong("long");
    // Throws NullPointerException
    

Problem conclusion

  • The problem is when setString() was invoked, the null String
    value was stored. When get() method was invoked, the
    code did not check for the null String value before processing
    it.It now checks for null.
    
    APAR PM08251 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

    PM08251

  • 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-02-22

  • Closed date

    2010-04-07

  • Last modified date

    2010-04-07

  • 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