IBM Support

PM72841: A CALL OF ENTITYMANAGER.GETPROPERTIES() CAN LEAD TO NULLPOINTEREXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A call of EntityManager.getProperties() can lead to NullPointer
    
    Concurreny issues in
    org.apache.openjpa.persistence.EntityManagerImpl.
    getProperties
    
    A JIRA issue has been created (OPENJPA-2257) and resolved. The
    problem is fixed with OpenJPA version 2.3.0.
    

Local fix

  • No work around but fix has been created.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0.0 and V8.5.0 who make           *
    *                  use of EntityManager.getProperties().       *
    ****************************************************************
    * PROBLEM DESCRIPTION: Concurreny in                           *
    *                      EntityManagerImpl.getProperties         *
    *                      can lead to a NullPointerException      *
    *                      and/or                                  *
    *                      ConcurrentModificationException.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A call of EntityManager.getProperties() can lead to
    NullPointer and ConcurrentModificationException. Issue occurs
    right after start up of the application if multiple
    EntityManager instance are created at the same time.  The
    following NullPointerException may occur:
    Caused by: java.lang.NullPointerException
    at java.lang.String.compareTo(String.java:482)
    at java.lang.String.compareTo(String.java:31)
    at java.util.TreeMap.cmp(TreeMap.java:4514)
    at java.util.TreeMap.putImpl(TreeMap.java:4556)
    at java.util.TreeMap.put(TreeMap.java:4536)
    at java.util.TreeSet.add(TreeSet.java:122)
    at
    org.apache.openjpa.lib.conf.ConfigurationImpl.getPropertyKeys(Co
    nfigurationImpl.java:708)
    at
    org.apache.openjpa.kernel.BrokerImpl.getSupportedProperties(Brok
    erImpl.java:729)
    at
    org.apache.openjpa.kernel.DelegatingBroker.getSupportedPropertie
    s(DelegatingBroker.java:223)
    at
    org.apache.openjpa.persistence.EntityManagerImpl.getProperties(E
    ntityManagerImpl.java:1624)
    ... 33 more
    

Problem conclusion

  • With this fix, proper synchronization has been added to ensure
    proper concurrency of a call to EntityManager.getProperties().
    
    The fix for this APAR is currently targeted for inclusion in
    Service Levels (Fix Packs) 8.0.0.6 and 8.5.0.2 of WebSphere
    Application Server versions 8.0.0 and 8.5.0.
    
    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

    PM72841

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-09-13

  • Closed date

    2012-12-31

  • Last modified date

    2013-02-28

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PM80446

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

  • R850 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":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
29 October 2021