IBM Support

PM11539: ISSUE WITH THE JNDI CONFIGURATION FAILING WITH NULL POINTER EXCEPTION WHEN SETTING A PROPERTY.

Fixes are available

7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for AIX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for HP-UX
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for IBM i
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Linux
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Solaris
7.0.0.13: WebSphere Application Server V7.0 Fix Pack 13 for Windows
7.0.0.13: Java SDK 1.6 SR8FP1 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for AIX
7.0.0.15: Java SDK 1.6 SR9 Cumulative Fix for WebSphere Application Server
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for HP-UX
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for IBM i
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Linux
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Solaris
7.0.0.15: WebSphere Application Server V7.0 Fix Pack 15 for Windows
7.0.0.17: WebSphere Application Server V7.0 Fix Pack 17
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.19: WebSphere Application Server V7.0 Fix Pack 19
7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Customer is trying  to interface the WebSphere Application
    Server to a Cache2009 database management system. After the
    application server creates the connection to the Cache DBMS, it
    throws a NullPointerException when the application server then
    tries to set a property.  This occurs after the connection has
    been made successfully with the database.
    .
    The problem they see is:
    .
    E UOW=null
    source=com.ibm.ejs.j2c.FreePool org=IBM prod=WebSphere
    component=Application Server thread=[server.startup : 0]
              J2CA0046E: Method createManagedConnectionWithMCWrapper
    caught
    an exception during creation of the ManagedConnection for
    resource
    jdbc/cacheDataSource, throwing ResourceAllocationException.
    Original
    exception: <=================================>Exception Message
    -> null
    java.lang.NullPointerException
     at java.util.Hashtable.put(Unknown Source)
     at java.util.Properties.setProperty(Unknown Source)
    .
    They wrote their own datastore helper class; its name is:
    com.med.database.helper.CacheDataStoreHelper.java
    .
    &#65530; When using the Cache 2007 driver with a Cache 2007 or 2009
    database, and the CacheDataStoreHelper everything works
    correctly.
    
    &#65530; When using the Cache 2009 driver with a Cache 2009 database,
    the CacheDataStoreHelper is loaded, but fails in WebSphere
    InternalGenericDataStoreHelper with the nullpointer exception.
    &#65530; When using the Cache 2009 driver with a Cache 2007 database,
    Cache returns a specific error code and the two are not
    compatible.
    .
    In this case, after L3 had a look at the traces sent, they made
    the following
    - The NullPointerException is thrown because, the
      DatabaseMetadata.getClientInfoProperties method
      is returning a resultset object that contains
      null references.
    
      The information on the getClientInfoProperties() is documented
      here at the following location..
     http://java.sun.com/javase/6/docs/api/java/sql/DatabaseMetaData
    .ht
     ml#getClientInfoProperties(
     I would like to request customer to revisit the cache driver
     implementation and see that the resultset object holding
     ClientInfoProperties is held with proper(not null) data.
    .
    Customer made rebutle on the matter and the PMR sent back to L3.
    L3 then requested APAR.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application Server
    ****************************************************************
    * PROBLEM DESCRIPTION: Websphere Application Server throws     *
    *                      NullPointerException when configured    *
    *                      with Cache jdbc driver.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The Relational Resource Adapter(RRA) captures metadata as a
    part of serving the getConnection(..) request. When it
    reads few of the metadata properties as NULL and the same are
    tried to store in a map, a NullPointerException will be thrown
    as shown below.
    
    java.lang.NullPointerException
    at java.util.Hashtable.put(Unknown Source)
    at java.util.Properties.setProperty(Unknown Source)
    at
    com.ibm.ws.rsadapter.spi.InternalGenericDataStoreHelper.gatherAn
    dDisplayMetaDataInfo(InternalGenericDataStoreHelper.java:1123)
    at
    com.ibm.ws.rsadapter.spi.WSRdbDataSource.postGetConnectionHandli
    ng(WSRdbDataSource.java:2526)
    

Problem conclusion

  • The problem is fixed by modifying the code that now handles
    the case where metadata could be NULL.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 7.0.0.13.  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

    PM11539

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-04-05

  • Closed date

    2010-05-25

  • Last modified date

    2010-05-25

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
25 October 2021