IBM Support

PM44675: DEADLOCK DURING SERVER STOP IN CODE COM/IBM/EJS/J2C/ RALIFECYCLEMANAGERIMPL.GETRESOURCEADAPTERINSTANCE

Fixes are available

7.0.0.21: WebSphere Application Server V7.0 Fix Pack 21
8.0.0.2: WebSphere Application Server V8.0 Fix Pack 2
8.0.0.3: WebSphere Application Server V8.0 Fix Pack 3
7.0.0.23: WebSphere Application Server V7.0 Fix Pack 23
8.0.0.4: WebSphere Application Server V8.0 Fix Pack 4
7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
8.0.0.5: WebSphere Application Server V8.0 Fix Pack 5
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
8.0.0.6: WebSphere Application Server V8.0 Fix Pack 6
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
8.0.0.7: WebSphere Application Server V8.0 Fix Pack 7
8.0.0.8: WebSphere Application Server V8.0 Fix Pack 8
7.0.0.31: WebSphere Application Server V7.0 Fix Pack 31
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.33: WebSphere Application Server V7.0 Fix Pack 33
8.0.0.9: WebSphere Application Server V8.0 Fix Pack 9
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
8.0.0.10: WebSphere Application Server V8.0 Fix Pack 10
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
8.0.0.11: WebSphere Application Server V8.0 Fix Pack 11
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
8.0.0.12: WebSphere Application Server V8.0 Fix Pack 12
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
8.0.0.13: WebSphere Application Server V8.0 Fix Pack 13
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
8.0.0.14: WebSphere Application Server V8.0 Fix Pack 14
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
8.0.0.15: WebSphere Application Server V8.0 Fix Pack 15
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • Deadlock detected during the server stop in the below code.
    
    3XMTHREADINFO      "CacheTM.Alarm Pool : 1"
    J9VMThread:0x37C6E500, j9thread_t:0x362CFF9C,
    java/lang/Thread:0xB501BA70, state:B, prio=5
    3XMTHREADINFO1            (native thread ID:0x5440005, native
    priority:0x5, native policy:UNKNOWN)
    3XMTHREADINFO3           Java callstack:
    4XESTACKTRACE                at
    com/ibm/ejs/j2c/RALifeCycleManagerImpl.getResourceAdapterInstanc
    e(RALifeCycleManagerImpl.java:2314)
    4XESTACKTRACE                at
    com/ibm/ejs/j2c/ConnectionFactoryBuilderServerImpl.createMCFandP
    M(ConnectionFactoryBuilderServerImpl.java:648)
    4XESTACKTRACE                at
    com/ibm/ejs/j2c/ConnectionFactoryBuilderServerImpl.processObject
    Instance(ConnectionFactoryBuilderServerImpl.java:948(Compiled
    Code))
    4XESTACKTRACE                at
    com/ibm/ejs/j2c/ConnectionFactoryBuilderImpl.getObjectInstance(C
    onnectionFactoryBuilderImpl.java:658(Compiled Code))
    4XESTACKTRACE                at
    javax/naming/spi/NamingManager.getObjectInstanceByFactoryInRefer
    ence(NamingManager.java:485(Compiled Code))
    4XESTACKTRACE                at
    javax/naming/spi/NamingManager.getObjectInstance(NamingManager.j
    ava:350(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/util/Helpers.processSerializedObjectForLookupE
    xt(Helpers.java:927(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/util/Helpers.processSerializedObjectForLookup(
    Helpers.java:730(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/jndicos/CNContextImpl.cacheLookup(CNContextImp
    l.java:4023(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/jndicos/CNContextImpl.doLookup(CNContextImpl.j
    ava:1772(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/jndicos/CNContextImpl.doLookup(CNContextImpl.j
    ava:1749(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/jndicos/CNContextImpl.lookupExt(CNContextImpl.
    java:1445(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/jndicos/CNContextImpl.lookup(CNContextImpl.jav
    a:637(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/util/WsnInitCtx.lookup(WsnInitCtx.java:165(Com
    piled Code))
    4XESTACKTRACE                at
    com/ibm/ws/naming/util/WsnInitCtx.lookup(WsnInitCtx.java:179(Com
    piled Code))
    4XESTACKTRACE                at
    javax/naming/InitialContext.lookup(InitialContext.java:436(Compi
    led Code))
    <Removed customer specific code>>>
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/timer/TimerImpl.callListenerMethod(TimerI
    mpl.java:298(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/timer/GenericTimer.run(GenericTimer.java:
    204(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/J2EEContext$RunProxy.run(J2EEContext.java
    :264(Compiled Code))
    4XESTACKTRACE                at
    java/security/AccessController.doPrivileged(AccessController.jav
    a:224)
    4XESTACKTRACE                at
    javax/security/auth/Subject.doAs(Subject.java:495(Compiled
    Code))
    4XESTACKTRACE                at
    com/ibm/websphere/security/auth/WSSubject.doAs(WSSubject.java:13
    1(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/websphere/security/auth/WSSubject.doAs(WSSubject.java:89
    (Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/J2EEContext$DoAsProxy.run(J2EEContext.jav
    a:321(Compiled Code))
    4XESTACKTRACE                at
    java/security/AccessController.doPrivileged(AccessController.jav
    a:251(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/J2EEContext.run(J2EEContext.java:1000(Com
    piled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/timer/TimerImpl.runListenerAsCJWork(Timer
    Impl.java:425(Compiled Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/am/_Alarm.fireAlarm(_Alarm.java:333(Compi
    led Code))
    4XESTACKTRACE                at
    com/ibm/ws/asynchbeans/am/_Alarm.run(_Alarm.java:230(Compiled
    Code))
    4XESTACKTRACE                at
    com/ibm/ws/util/ThreadPool$Worker.run(ThreadPool.java:1604(Compi
    led Code))
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V7.0 and V8.0                        *
    ****************************************************************
    * PROBLEM DESCRIPTION: Deadlock detected in J2C container code *
    *                      during server shutdown.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    In a setup where there are asyncbeans accessing a J2C
    ConnectionFactory or SQL Datasource, there is a contention
    during server shutdown. The contention is the result of a
    server shutdown thread which attempts to stop all CFs and
    AsyncBean alarm thread which attempts to lookup for a resource
    almost at the same time. At times this contention leads to
    deadlock as shown below..
    NULL
    1LKDEADLOCK    Deadlock detected !!!
    NULL           ---------------------
    NULL
    2LKDEADLOCKTHR  Thread "Non-deferrable Alarm : 2" (0x360DD500)
    3LKDEADLOCKWTR    is waiting for:
    4LKDEADLOCKMON      sys_mon_t:0x383BD398 infl_mon_t:
    0x383BD3B8:
    4LKDEADLOCKOBJ      java/lang/Object@0xB22792A0/0xB22792AC:
    3LKDEADLOCKOWN    which is owned by:
    2LKDEADLOCKTHR  Thread "CacheTM.Alarm Pool : 1" (0x37C6E500)
    3LKDEADLOCKWTR    which is waiting for:
    4LKDEADLOCKMON      sys_mon_t:0x373B7258 infl_mon_t:
    0x373B7278:
    4LKDEADLOCKOBJ      java/util/Hashtable@0xB141A940/0xB141A94C:
    3LKDEADLOCKOWN    which is owned by:
    2LKDEADLOCKTHR  Thread "Non-deferrable Alarm : 2" (0x360DD500)
    NULL
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM44675

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-07-28

  • Closed date

    2011-09-16

  • Last modified date

    2011-09-16

  • 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

  • R700 PSY

       UP

  • R800 PSY

       UP



Document information

More support for: WebSphere Application Server
General

Software version: 7.0

Reference #: PM44675

Modified date: 16 September 2011