A fix is available
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
The fix for this APAR changes the EclipseLink implementation and involves an update to the third-party source. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=547173 This fix is currently targeted for WebSphere Application Server 9.0.5.3 and WebSphere Liberty 19.0.0.11. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
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