IBM Support

PH15440: ISSUE WITHENTITYMANAGER.UNWRAP(CONNECTION.CLASS)ECLIPSELINK WITHPROPERTY "ECLIPSELINK.JDBC.EXCLUSIVE-CONNECTION.MODE" SET"ALWAYS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using an Eclipselink EntityManager with property
    "eclipselink.jdbc.exclusive-connection.mode" set to "Always",
    calling em.unwrap(Connection.class) may return a null value when
    within a transaction.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API - JPA 2.1 &   *
    *                  EclipseLink                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: EclipseLink's                           *
    *                      em.unwrap(Connection.class) returns     *
    *                      null when "exclusive-connection" is     *
    *                      set "Always"                            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A javax.persistence.EntityManager, using a
    javax.persistence.EntityManagerFactory with the property
    "eclipselink.jdbc.exclusive-connection.mode" = "Always",
    returns a null value from em.unwrap(Connection.class). With an
    EntityManager that is configured to retain an exclusive
    connection it seems plausible that this should return a
    Connection.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH15440

  • 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

    2019-08-08

  • Closed date

    2020-02-03

  • Last modified date

    2020-02-03

  • 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

  • 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:
01 November 2021