APAR status
Closed as program error.
Error description
When em.getReference (on a weaved entity) is used within a transaction, at commit time the object with only PK set is pushed to L2 cache. In the next transaction, if the same entity is queried (em.find) by ID, the object returned from em.find only contains PK and all the other attributes are set to null and not retrieved when accessed.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server - Java Persistence API - JPA 2.1 & * * EclipseLink * **************************************************************** * PROBLEM DESCRIPTION: EclipseLink returns object with null * * values from * * EntityManager.getReference() call. * **************************************************************** * RECOMMENDATION: * **************************************************************** When em.getReference (on a weaved entity) is used within a transaction, at commit time the object with only PK set is pushed to L2 cache. In the next transaction, if the same entity is queried (em.find) by ID, the object returned from em.find only contains PK and all the other attributes are set to null and not retrieved when accessed.
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=485984 This fix is currently targeted for WebSphere Application Server 9.0.5.11, and WebSphere Liberty 22.0.0.1. 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
PH41638
Reported component name
WEBSPHERE APP S
Reported component ID
5724J0800
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-10-28
Closed date
2021-12-20
Last modified date
2021-12-20
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
[{"Line of Business":{"code":"LOB45","label":"Automation"},"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"}]
Document Information
Modified date:
21 December 2021