IBM Support

PM80453: Thread deadlock in CriteriaBuilder.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The CriteriaBuilder blocks when multiple threads work on
    constructing predicate expressions.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    *                  Liberty Profile                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: CriteriaBuilder predicate construction  *
    *                      deadlocks in multi-core VM due to a     *
    *                      static initializer.                     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The CriteriaBuilder blocks when multiple threads work on
    constructing predicate expressions.  The following
    deadlocked/hung threads are flagged in system
    logs implicating CriteriaBuilder code:
    WTRN0124I: When the timeout occurred the thread with which the
    transaction is, or was most recently, associated was
    Thread[WebContainer : 2,5,
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:167)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:265)
    org.apache.openjpa.persistence.criteria.
    CriteriaBuilderImpl.conjunction(CriteriaBuilderImpl.java:186)
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:167)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:265)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
    org.apache.openjpa.persistence.criteria.
    CriteriaBuilderImpl.lessThan(CriteriaBuilderImpl.java:367)
    WTRN0124I: When the timeout occurred the thread with which the
    transaction is, or was most recently, associated was
    Thread[DefaultWorkManager.Alarm Pool :
    0,5,DefaultWorkManager: WAS
    java.lang.Object.wait(Native Method)
    java.lang.Object.wait(Object.java:167)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:265)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
    org.apache.openjpa.persistence.criteria.
    PredicateImpl.(PredicateImpl.java:49)
    java.lang.J9VMInternals.initializeImpl(Native Method)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:228)
    java.lang.J9VMInternals.initialize(J9VMInternals.java:195)
    org.apache.openjpa.persistence.criteria.
    CriteriaBuilderImpl.conjunction(CriteriaBuilderImpl.java:186)
    This can occur when many threads are attempting to use
    CriteriaBuilder at the same time. The threads hang due to the
    use of static initialization in the construction of classes
    used by CriteriaBuilder.
    

Problem conclusion

  • With this fix, code has been added to OpenJPA to add proper
    sychronization when constructing CriteriaBuilder predicates.
    
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.0.2. 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

    PM80453

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-01-11

  • Closed date

    2013-03-28

  • Last modified date

    2013-03-28

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

    PM79327

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

Fix information

  • Fixed component name

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
29 October 2021