IBM Support

PH39960: J2CA0081E .... CAUGHT EXCEPTION:JAVA.LANG.NULLPOINTEREXCEPTION OCCURS WHEN STOPPING THE SERVER

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

  • Occasionally "J2CA0081E Method cleanup failed .... Caught
    exception:java.lang.NullPointerException" may occur when
    stopping the server.
    
    
    The following error stack is SystemOut output:
    AdminHelper   A   ADMN1021I: An attempt is made to stop the
    xxxxx server.
    .....
    MCWrapper     E   J2CA0081E: Method cleanup failed while trying
    to execute method cleanup on ManagedConnection
    WSRdbManagedConnectionImpl@3ba2588 from resource jdbc/xxxxx.
    Caught exception: java.lang.NullPointerException
    	at com.ibm.ejs.j2c.CMConfigDataImpl.getPurgePolicy(CMConfigDat
    aImpl.java:1017)
    	at
    com.ibm.ws.rsadapter.DSConfig.getPurgePolicy(DSConfig.java:509)
    	at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.get
    PurgePolicy(WSManagedConnectionFactoryImpl.java:3879)
    	at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.cleanup
    (WSRdbManagedConnectionImpl.java:4323)
    	at com.ibm.ejs.j2c.MCWrapper.cleanup(MCWrapper.java:1891)
    	at com.ibm.ejs.j2c.FreePool.cleanupAndDestroyMCWrapper(FreePoo
    l.java:767)
    	at com.ibm.ejs.j2c.FreePool.cleanupAndDestroyAllFreeConnection
    s(FreePool.java:2650)
    	at com.ibm.ejs.j2c.PoolManager.serverShutDown(PoolManager.java
    :2467)
    	at com.ibm.ejs.j2c.ConnectionFactoryDetailsImpl.stop(Connectio
    nFactoryDetailsImpl.java:462)
    	at com.ibm.ejs.j2c.RALifeCycleManagerImpl.shutdown(RALifeCycle
    ManagerImpl.java:1529)
    	at com.ibm.ejs.j2c.RALifeCycleManagerImpl.stop(RALifeCycleMana
    gerImpl.java:573)
    	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(
    ContainerHelper.java:477)
    	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents
    (ContainerHelper.java:461)
    	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(C
    ontainerImpl.java:650)
    	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerIm
    pl.java:638)
    	at com.ibm.ws.runtime.component.ApplicationServerImpl.stop(App
    licationServerImpl.java:286)
    	at com.ibm.ws.runtime.component.ContainerHelper.stopComponent(
    ContainerHelper.java:477)
    	at com.ibm.ws.runtime.component.ContainerHelper.stopComponents
    (ContainerHelper.java:461)
    	at com.ibm.ws.runtime.component.ContainerImpl.stopComponents(C
    ontainerImpl.java:650)
    	at com.ibm.ws.runtime.component.ContainerImpl.stop(ContainerIm
    pl.java:638)
    	at com.ibm.ws.runtime.component.ServerImpl.stop(ServerImpl.jav
    a:672)
    	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHoo
    k$1.run(ServerCollaborator.java:919)
    	at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextMa
    nagerImpl.java:5446)
    	at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(Con
    textManagerImpl.java:5662)
    	at com.ibm.ws.runtime.component.ServerCollaborator$ShutdownHoo
    k.run(ServerCollaborator.java:909)
    	at com.ibm.ws.runtime.component.ServerCollaborator$StopAction.
    alarm(ServerCollaborator.java:860)
    	at com.ibm.ejs.util.am._Alarm.runImpl(_Alarm.java:151)
    	at com.ibm.ejs.util.am._Alarm.run(_Alarm.java:136)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using Datasources during server      *
    *                  stop.                                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Null pointer exception during server    *
    *                      stop                                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The following will occur in the error log,  MCWrapper     E
    J2CA0081E: Method cleanup failed while trying
    to execute method cleanup on ManagedConnection
    WSRdbManagedConnectionImpl@3ba2588 from resource jdbc/xxxxx.
    Caught exception: java.lang.NullPointerException
    at com.ibm.ejs.j2c.CMConfigDataImpl.getPurgePolicy(CMConfigDat
    aImpl.java:1017)
    at
    com.ibm.ws.rsadapter.DSConfig.getPurgePolicy(DSConfig.java:509)
    at com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.get
    PurgePolicy(WSManagedConnectionFactoryImpl.java:3879)
    at com.ibm.ws.rsadapter.spi.WSRdbManagedConnectionImpl.cleanup
    (WSRdbManagedConnectionImpl.java:4323)
    

Problem conclusion

  • Fixed object that was null by checking it before using it.
    
    The fix for this APAR is targeted for inclusion in fix pack
    8.5.5.21 and 9.0.5.10. 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

    PH39960

  • 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

    2021-08-19

  • Closed date

    2021-09-07

  • Last modified date

    2021-09-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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R850 PSY

       UP

  • R900 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
02 November 2021