IBM Support

PH59466: JAVA.LANG.NULLPOINTEREXCEPTION AT COM.IBM.EJS.J2C.FREEPOOL.CREATEMANAGEDCONNECTIONWITHMCWRAPPER

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Null pointer exception in free pool create managed connection
    with Mc wrapper:
    ----------------------------
    J2CA0046E: Method createManagedConnectionWithMCWrapper caught an
    exception during creation of the ManagedConnection for resource
    jdbc/abcd, throwing ResourceAllocationException.
    
    Original exception:
    <=================================>Exception Message -> null
    java.lang.NullPointerException
    	at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapp
    er(FreePool.java:2408)
    at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.
    java:1872)
    at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3852)
    at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3100)
    at com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(Connecti
    onManager.java:1570)
    at com.ibm.ejs.j2c.ConnectionManager.allocateConnection(Connect
    ionManager.java:1049)
    at com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJ
    dbcDataSource.java:644)
    ----------------------------
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using resource adapters.             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Null pointer may occur if log writer    *
    *                      is not created before creating the      *
    *                      first managed connection.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    On fast multithreads systems a null point exception can occur
    if the log writer has not been created before create the first
    managed connection.  The following stack will be producted by
    the null point exception.
    J2CA0046E: Method createManagedConnectionWithMCWrapper caught
    an
    exception during creation of the ManagedConnection for resource
    jdbc/abcd, throwing ResourceAllocationException.
    Original exception:
    <=================================>Exception Message -> null
    java.lang.NullPointerException
    at com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapp
    er(FreePool.java:2408)
    at com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.
    java:1872)
    at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3852)
    at com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3100)
    

Problem conclusion

  • The code that processes log writers has been moved to a thread
    safe area of the code which completes the processing of the
    log writer before the first create of a managed connection.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.26 and 9.0.5.20. For more information, see 'Recommended
    Updates  for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH59466

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2024-01-29

  • Closed date

    2024-04-12

  • Last modified date

    2024-04-12

  • 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

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Line of Business":{"code":"LOB67","label":"IT Automation \u0026 App Modernization"}}]

Document Information

Modified date:
12 April 2024