IBM Support

PH66634: A NullPointerException occurs in MCWrapper.getConnection when the system attempts to reuse a previously aborted connection.

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

  • A NullPointerException occurs in MCWrapper.getConnection() when
    the system tries to reuse a managed connection (MCWrapper) that
    has already been aborted and set to null.
    
    2025-04-23T09:14:56.121+0100] 00000164 IncidentImpl  I
    FFDC1015I: An FFDC Incident has been created:
    "java.lang.NullPointerException
    com.ibm.ejs.j2c.MCWrapper.getConnection 901" at
    ffdc_25.04.23_09.14.55.0.log
    
    VEDOC.PRODUCT.PRODUCTINTERNALVERIFICATIONHELPER.10:
    com.daimler.vedoc.appfw.core.exception.VeDocException:
    java.lang.NullPointerException	at
    Loader.java.lang.NullPointerException
    	at
    com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.beginTransactionIfNec
    essary(WSJdbcConnection.java:326)
    	at
    com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.next(WSJdbcResultSet.j
    ava:2253)
    	at org.hibernate.loader.Loader.doQuery(Loader.java:853)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException is thrown in       *
    *                      getConnection.                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A NullPointerException occurs in MCWrapper.getConnection() when
    the system tries to reuse a managed connection (MCWrapper) that
    has already been aborted and set to null.
    

Problem conclusion

  • The fix introduces a validation step before attempting to reuse
    a connection from MCWrapper. It checks for the aborted and do-
    not-reuse-mcw flags. If either flag is true, the connection is
    non reusable. Instead of proceeding with a null reference and
    risking a NullPointerException, the MCWrapper is now marked as
    stale, and a ResourceException is thrown.
    
    The fix for this APAR is targeted for inclusion in fix pack
    9.0.5.25. 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

    PH66634

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-05-21

  • Closed date

    2025-07-30

  • Last modified date

    2025-07-30

  • 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":"9.0","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Document Information

Modified date:
30 July 2025