IBM Support

PI59818: SERVLET AND OBJECT CACHE SERVICES ARE INITIALIZED MULTIPLE TIMES DURING LIBERTY STARTUP CAUSING DELAYS AND EXCEPTIONS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • During startup, Liberty improperly attempts to
    start/initialize
    the Servlet and Object Cache services multiple times.  In
    addition to the delays this caused, the Servlet Cache
    service
    threw multiple NullPointerExceptions whose stacks were
    printed
    in the messages.log file as well as FFDC logs.
    
    A single successful DYNA1055I message was seen at the first
    attempt to initialize the Servlet Cache Service:
    
    [3/22/16 9:16:42:132 GMT] 00000023
    com.ibm.ws.cache.web.ServletCacheServiceImpl
    I
    DYNA1055I: Dynamic Cache (servlet cache) initialized
    successfully.
    
    Every subsequent attempt resulted in a stack dump and FFDC
    log.
    The top of the stacks look like this:
    
    java.lang.NullPointerException
    at
    com.ibm.ws.cache.web.ServletCacheUnitImpl.createBaseCache(Se
    rvle
    tCacheUnitImpl.java:68)
    at
    com.ibm.ws.cache.web.ServletCacheServiceImpl.start(ServletCa
    cheS
    erviceImpl.java:75)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
    ssor
    Impl.java:95)
    at
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
    thod
    AccessorImpl.java:55)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at
    org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(Bas
    eMet
    hod.java:222)
    ...
    
    
    The Object Cache service did not throw an exception, but
    there
    were multiple DYNA1056I messages in the messages.log (not
    necessarily near each other) indicating it was asked to
    initialize multiple times:
    
    [3/25/16 3:10:46:533 GMT] 00000023 id=
    com.ibm.ws.cache.CacheServiceImpl
    I
    DYNA1056I: Dynamic Cache (object cache) initialized
    successfully.
    ...
    [3/25/16 3:10:49:671 GMT] 00000028 id=
    com.ibm.ws.cache.CacheServiceImpl
    I
    DYNA1056I: Dynamic Cache (object cache) initialized
    successfully.
    ...
    [3/25/16 3:11:53:082 GMT] 00000055 id=
    com.ibm.ws.cache.CacheServiceImpl
    I
    DYNA1056I: Dynamic Cache (object cache) initialized
    successfully.
    ...
    [3/25/16 3:11:53:084 GMT] 00000055 id=
    com.ibm.ws.cache.CacheServiceImpl
    I
    DYNA1056I: Dynamic Cache (object cache) initialized
    successfully.
    

Local fix

  • Users may find relief by editing this file:
    liberty/wlp/lib/features/com.ibm.websphere.appserver.webCache-1.
    0.mf
    
    to change this line:
    com.ibm.ws.dynacache.web; version="[1.0.0,1.0.200)"
    
    to:
    com.ibm.ws.dynacache.web; version="[1.0.0,1.0.200)";
    start-phase:=APPLICATION_EARLY
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - Dynacache          *
    ****************************************************************
    * PROBLEM DESCRIPTION: The dynacache servlet cache service     *
    *                      component does not start.               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The dynacache servlet cache service does not handle multiple
    starts and stops of the components and a NullPointerException is
    thrown when the service is restarted.
    

Problem conclusion

  • The dynacache servlet cache service has been modified to
    properly reset when the service has been started, stop and
    restarted.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 16.0.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

    PI59818

  • Reported component name

    LIBERTY PROF -

  • Reported component ID

    5655W6514

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-28

  • Closed date

    2016-04-04

  • Last modified date

    2016-06-14

  • 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 PROF -

  • Fixed component ID

    5655W6514

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"850","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
17 June 2020