APAR status
Closed as program error.
Error description
When accessing hidden attributes of EclipseLink weaved mappedsuperclasses, the value returned may be null.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: All users of IBM WebSphere Application * * Server - Java Persistence API - JPA 2.1 & * * EclipseLink * **************************************************************** * PROBLEM DESCRIPTION: EclipseLink sets null value when * * weaving hidden class attributes * **************************************************************** * RECOMMENDATION: * **************************************************************** When weaving entity classes, EclipseLink ignores attribute fields with the same name as super class attributes (also called hidden attributes). Example: ´´´ @MappedSuperclass public abstract class AbstractBE { private String parentOnlyAttribute; private Short hiddenAttribute; } @Entity public class EntityA extends AbstractBE { @Id private long id; private Short hiddenAttribute; } ´´´ Test: ´´´ EntityManager em = emf.createEntityManager(); EntityA e = em.find(EntityA.class, 123456l); ´´´ Result: e.getHiddenAttribute() is NULL.
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=412391 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
PH41073
Reported component name
WEBSPHERE FOR Z
Reported component ID
5655I3500
Reported release
900
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2021-10-04
Closed date
2021-12-21
Last modified date
2021-12-21
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 FOR Z
Fixed component ID
5655I3500
Applicable component levels
[{"Line of Business":{"code":"LOB45","label":"Automation"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900"}]
Document Information
Modified date:
22 December 2021