IBM Support

PI08109: WHEN SERVLETS ARE RUNNING, PREMATURE DEACTIVATION OF DATASOURCESERVICE CAUSES HANGS AND APP RESTART

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When servlet load is performed upon application startup, a
    servlet JNDI lookup can cause a premature deactivation of the
    DataSourceService reference. This can cause an application
    restart on the same thread that is handling the application
    startup resulting in a thread hang.
    at sun/misc/Unsafe.park(Native Method)
    at
    java/util/concurrent/locks/LockSupport.parkNanos(LockSupport.jav
    a:237)
    at
    java/util/concurrent/locks/AbstractQueuedSynchronizer.doAcquireS
    haredNanos(AbstractQueuedSynchronizer.java:1044(Compiled Code))
    at
    java/util/concurrent/locks/AbstractQueuedSynchronizer.tryAcquire
    SharedNanos(AbstractQueuedSynchronizer.java:1337)
    at
    java/util/concurrent/CountDownLatch.await(CountDownLatch.java:29
    3)
    at
    com/ibm/ws/container/service/app/recycle/internal/ApplicationRec
    ycleCoordinatorImpl.completeStoppedApplicationsFuture(Applicatio
    nRecycleCoordinatorImpl.java:190)
    at
    com/ibm/ws/container/service/app/recycle/internal/ApplicationRec
    ycleCoordinatorImpl.initiateStarts(ApplicationRecycleCoordinator
    Impl.java:497)
    (entered lock:
    com/ibm/ws/container/service/app/recycle/internal/ApplicationRec
    ycleCoordinatorImpl$1@0x0000000003320560, entry count: 1)
    at
    com/ibm/ws/container/service/app/recycle/internal/ApplicationRec
    ycleCoordinatorImpl.startApplications(ApplicationRecycleCoordina
    torImpl.java:305)
    at
    com/ibm/ws/jdbc/DataSourceService.destroyConnectionFactories(Dat
    aSourceService.java:289)
    at
    com/ibm/ws/jdbc/DataSourceService.deactivate(DataSourceService.j
    ava:235)
    at sun/reflect/NativeMethodAccessorImpl.invoke0(Native Method)
    at
    sun/reflect/NativeMethodAccessorImpl.invoke(NativeMethodAccessor
    Impl.java:88)
    at
    sun/reflect/DelegatingMethodAccessorImpl.invoke(DelegatingMethod
    AccessorImpl.java:55(Compiled Code))
    at java/lang/reflect/Method.invoke(Method.java:618(Compiled
    Code))
    at
    org/apache/felix/scr/impl/helper/BaseMethod.invokeMethod(BaseMet
    hod.java:228)
    at
    org/apache/felix/scr/impl/helper/BaseMethod.access$500(BaseMetho
    d.java:37)
    at
    org/apache/felix/scr/impl/helper/BaseMethod$Resolved.invoke(Base
    Method.java:609)
    at
    org/apache/felix/scr/impl/helper/BaseMethod.invoke(BaseMethod.ja
    va:492)
    at
    org/apache/felix/scr/impl/helper/ActivateMethod.invoke(ActivateM
    ethod.java:149)
    at
    org/apache/felix/scr/impl/manager/ImmediateComponentManager.disp
    oseImplementationObject(ImmediateComponentManager.java:312)
    at
    org/apache/felix/scr/impl/manager/ImmediateComponentManager.dele
    teComponent(ImmediateComponentManager.java:159)
    at
    org/apache/felix/scr/impl/manager/AbstractComponentManager$Activ
    e.ungetService(AbstractComponentManager.java:1684)
    at
    org/apache/felix/scr/impl/manager/ImmediateComponentManager.unge
    tService(ImmediateComponentManager.java:773)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceUse$2.run(Servi
    ceUse.java:238)
    at
    java/security/AccessController.doPrivileged(AccessController.jav
    a:274(Compiled Code))
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceUse.ungetServic
    e(ServiceUse.java:236)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceRegistrationImp
    l.ungetService(ServiceRegistrationImpl.java:518(Compiled Code))
    (entered lock:
    org/eclipse/osgi/internal/serviceregistry/ServiceUse@0x000000001
    E8DD380,entry count: 1)
    at
    org/eclipse/osgi/internal/serviceregistry/ServiceRegistry.ungetS
    ervice(ServiceRegistry.java:510)
    at
    org/eclipse/osgi/framework/internal/core/BundleContextImpl.unget
    Service(BundleContextImpl.java:636)
    at
    com/ibm/ws/jndi/internal/WSContext.resolveObject(WSContext.java:
    145)
    at
    com/ibm/ws/jndi/internal/WSContext$1.adapt(WSContext.java:258)
    at
    com/ibm/ws/jndi/internal/WSContext$1.adapt(WSContext.java:254)
    at
    com/ibm/ws/jndi/internal/WSNamingEnumeration.next(WSNamingEnumer
    ation.java:55)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile V8.5.5.0 and         *
    *                  higher.                                     *
    ****************************************************************
    * PROBLEM DESCRIPTION: If deferServletLoad is not being        *
    *                      used, a JNDI lookup from servlet        *
    *                      startup will cause a thread hang.       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A JNDI lookup gets and ungets a reference to the DataSource DS
    component. When this happens upon servlet load while the
    server is starting, an application restart is triggered
    causing the thread to hang.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI08109

  • 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-12-13

  • Closed date

    2014-01-15

  • Last modified date

    2014-01-15

  • 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

    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:
28 April 2022