IBM Support

PI97372: INTERMITTENT J2CA0046E/NULLPOINTEREXCEPTION WHEN OBTAINING A CONNECTION FROM DATASOURCE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When application tries to get a connection from datasource, it
    might fail intermittently with the following error:
    [16.04.18. 15:30:49:211 CEST] 000002ae FreePool      E
    J2CA0046E: Method createManagedConnectionWithMCWrapper caught
    an exception during creation of the ManagedConnection for
    resource xxxxxx, throwing ResourceAllocationException. Original
    exception: <=================================>Exception Message
    -> null
    java.lang.NullPointerException
     at
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createMa
    nagedConnection(WSManagedConnectionFactoryImpl.java:1507)
     at
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createMa
    nagedConnection(WSManagedConnectionFactoryImpl.java:1113)
     at
    com.ibm.ejs.j2c.FreePool.createManagedConnectionWithMCWrapper(Fr
    eePool.java:2161)
     at
    com.ibm.ejs.j2c.FreePool.createOrWaitForConnection(FreePool.java
    :1839)
     at
    com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3818)
     at
    com.ibm.ejs.j2c.PoolManager.reserve(PoolManager.java:3094)
     at
    com.ibm.ejs.j2c.ConnectionManager.allocateMCWrapper(ConnectionMa
    nager.java:1548)
     at
    ....
    com.ibm.ejs.j2c.ConnectionManager.allocateConnection(ConnectionM
    anager.java:1031)
     at
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcD
    ataSource.java:644)
     at
    com.ibm.ws.rsadapter.jdbc.WSJdbcDataSource.getConnection(WSJdbcD
    ataSource.java:611)
    

Local fix

  • Restart the jvm
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server using jdbc resource adapter          *
    ****************************************************************
    * PROBLEM DESCRIPTION: Null point exception occurs on a        *
    *                      transient object that was not           *
    *                      initialized when resource               *
    *                      adapter object is serialized.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When application tries to get a connection from datasource, it
    might fail intermittently with the following error:
    [16.04.18. 15:30:49:211 CEST] 000002ae FreePool      E
    J2CA0046E: Method createManagedConnectionWithMCWrapper caught
    an exception during creation of the ManagedConnection for
    resource xxxxxx, throwing ResourceAllocationException. Original
    exception: <=================================>Exception Message
    -> null
    java.lang.NullPointerException
    at
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.createMa
    nagedConnection(WSManagedConnectionFactoryImpl.java:1507)
    at
    com.ibm.ws.rsadapter.spi.WSManagedConnectionFactoryImpl.c
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI97372

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-04-29

  • Closed date

    2018-09-24

  • Last modified date

    2018-09-24

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

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":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
01 December 2021