IBM Support

PH31571: ECLIPSELINK INTERMITTENT NPE FROM WEAVED ENTITY CODE

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • For OneToMany relationships, EclipseLink sometimes throws a
    NullPointerException from the weaved entity code.
     Caused by:
    java.lang.reflect.InvocationTargetException
     	at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:90)
     	at sun.reflect.DelegatingMethodAccessorImpl.
    invoke(DelegatingMethodAccessorImpl.java:55)
     	at
    java.lang.reflect.Method.invoke(Method.java:508)
     	at org.eclips
    e.persistence.internal.descriptors.MethodAttributeAccessor.setAt
    tributeValueInObject(MethodAttributeAccessor.java:247)
     	... 84
    more
     Caused by: java.lang.NullPointerException
     	at
    com.sample.Rate._persistence_set_field_vh(Rate.java)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - Java Persistence API -             *
    *                  JPA 2.1 & EclipseLink                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: EclipseLink intermittently throws a     *
    *                      NullPointerException at runtime from    *
    *                      weaved entity code in multi-threaded    *
    *                      environments.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    For @OneToMany relationships, EclipseLink sometimes throws a
    NullPointerException from the weaved entity code. This is a
    multithreaded issue where EclipseLink is not properly
    synchronizing.
    ´´´
    Caused by:
    java.lang.reflect.InvocationTargetException
    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssorImpl.java:90)
    at sun.reflect.DelegatingMethodAccessorImpl.
    invoke(DelegatingMethodAccessorImpl.java:55)
    at
    java.lang.reflect.Method.invoke(Method.java:508)
    at org.eclips
    e.persistence.internal.descriptors.MethodAttributeAccessor.setAt
    tributeValueInObject(MethodAttributeAccessor.java:247)
    ... 84
    more
    Caused by: java.lang.NullPointerException
    at
    com.sample.Rate._persistence_set_field_vh(Rate.java)
    ´´´
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH31571

  • 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

    2020-11-11

  • Closed date

    2021-01-25

  • Last modified date

    2021-01-25

  • 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

[{"Line of Business":{"code":"LOB36","label":"IBM Automation"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"900"}]

Document Information

Modified date:
26 January 2021