IBM Support

PM94022: DEADLOCK OCCURS WHEN STOPPING A COMPOSITION UNIT CONTAINING BLUEPRINT SHORTLY AFTER STARTING IT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A deadlock can occur when stopping a compoistion unit that
    contains Blueprint shortly after the composition unit is
    started.  The following stacks show the locks involved:
    
    Blocked on: java/lang/Object@0x00000000B00078C0 Owned by:
    "Blueprint Extender: 2" (J9VMThread:0x00000000323F6100,
    java/lang/Thread:0x00000000424BE900)
    Java callstack:
    at
    org/apache/aries/blueprint/container/ReferenceRecipe.untrack(Ref
    erenceRecipe.java:151(Compiled Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.serviceRemoved(AbstractServiceReferenceRecipe.java:286(Compi
    led Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.serviceChanged(AbstractServiceReferenceRecipe.java:258(Compi
    led Code))
    at
    org/eclipse/osgi/internal/serviceregistry/FilteredServiceListene
    r.serviceChanged(FilteredServiceListener.java:104)
    at
    org/eclipse/osgi/framework/internal/core/BundleContextImpl.dispa
    tchEvent(BundleContextImpl.java:933)
    at
    org/eclipse/osgi/framework/eventmgr/EventManager.dispatchEvent(E
    ventManager.java:227)
    at
    org/eclipse/osgi/framework/eventmgr/ListenerQueue.dispatchEventS
    ynchronous(ListenerQueue.java:149)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.publis
    hServiceEventPrivileged(ServiceRegistry.java:756)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.publis
    hServiceEvent(ServiceRegistry.java:711)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImp
    l.unregister(ServiceRegistrationImpl.java:225)
    at
    org/apache/aries/util/AriesFrameworkUtil.safeUnregisterService(A
    riesFrameworkUtil.java:114(Compiled Code))
    at
    org/apache/aries/blueprint/container/ServiceRecipe.unregister(Se
    rviceRecipe.java:207(Compiled Code))
    at
    org/apache/aries/blueprint/container/BlueprintContainerImpl.noti
    fySatisfaction(BlueprintContainerImpl.java:623(Compiled Code))
    (entered lock:
    org/apache/aries/blueprint/container/ServiceRecipe@0x00000000AC3
    C94B8, entry count: 1)
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.setSatisfied(AbstractServiceReferenceRecipe.java:323(Compile
    d Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.serviceRemoved(AbstractServiceReferenceRecipe.java:288(Compi
    led Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.serviceChanged(AbstractServiceReferenceRecipe.java:258(Compi
    led Code))
    at
    org/eclipse/osgi/internal/serviceregistry/FilteredServiceListene
    r.serviceChanged(FilteredServiceListener.java:104)
    ...
    at
    com/ibm/ws/runtime/component/CompositionUnitMgrImpl$ControlOpHan
    dler.invokeControlOperationHandler(CompositionUnitMgrImpl.java:1
    072)
    at
    com/ibm/ws/runtime/component/CompositionUnitMgrImpl$ControlOpHan
    dler.stop(CompositionUnitMgrImpl.java:1038)
    at
    com/ibm/ws/runtime/component/CompositionUnitMgrImpl.stop(Composi
    tionUnitMgrImpl.java:502)
    at
    com/ibm/ws/runtime/component/CompositionUnitImpl.stop(Compositio
    nUnitImpl.java:141)
    at
    com/ibm/ws/runtime/component/CompositionUnitMgrImpl$2.run(Compos
    itionUnitMgrImpl.java:805)
    at
    com/ibm/ws/security/auth/ContextManagerImpl.runAs(ContextManager
    Impl.java:5453(Compiled Code))
    ...
    
    and
    
    Blocked on:
    org/apache/aries/blueprint/container/ServiceRecipe@0x00000000AC3
    C94B8 Owned by: "Default : 4" (J9VMThread:0x000000003349B700,
    java/lang/Thread:0x00000000500D1318)
    Java callstack:
    at
    org/apache/aries/blueprint/container/ServiceRecipe.decrementActi
    veCalls(ServiceRecipe.java:468(Compiled Code))
    at
    org/apache/aries/blueprint/container/QuiesceInterceptor.postCall
    WithReturn(QuiesceInterceptor.java:44(Compiled Code))
    at
    org/apache/aries/blueprint/proxy/Collaborator.postInvoke(Collabo
    rator.java:105(Compiled Code))
    ...
    at
    org/apache/aries/blueprint/utils/ReflectionUtils.invoke(Reflecti
    onUtils.java:238(Compiled Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe$Listener.invokeMethods(AbstractServiceReferenceRecipe.java:4
    66(Compiled Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe$Listener.bind(AbstractServiceReferenceRecipe.java:448(Compil
    ed Code))
    at
    org/apache/aries/blueprint/container/AbstractServiceReferenceRec
    ipe.bind(AbstractServiceReferenceRecipe.java:345(Compiled Code))
    at
    org/apache/aries/blueprint/container/ReferenceRecipe.bind(Refere
    nceRecipe.java:165(Compiled Code))
    (entered lock: java/lang/Object@0x00000000B00078C0, entry
    count: 1)
    at
    org/apache/aries/blueprint/container/ReferenceRecipe.retrack(Ref
    erenceRecipe.java:132(Compiled Code))
    ...
    
    The composition unit never stops.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Composition Unit cannot be stopped      *
    *                      due to deadlock.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The same lock object was used for different purposes and
    resulted in a deadlock.
    

Problem conclusion

  • This APAR avoids the deadlock by introducing a new lock to
    create a more granular locking module.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.8 and 8.5.5.1.  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

    PM94022

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2013-07-29

  • Closed date

    2013-07-29

  • Last modified date

    2013-07-29

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

    PM86627

  • 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:
11 January 2022