IBM Support

PM53882: STACKOVERFLOWERROR IN WEBCONTAINER.SERVLET.SERVLETINSTANCE.SERVI CE WHEN USING CACHESPEC.XML

Fixes are available

7.0.0.25: WebSphere Application Server V7.0 Fix Pack 25
7.0.0.27: WebSphere Application Server V7.0 Fix Pack 27
7.0.0.29: WebSphere Application Server V7.0 Fix Pack 29
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
7.0.0.35: WebSphere Application Server V7.0 Fix Pack 35
7.0.0.37: WebSphere Application Server V7.0 Fix Pack 37
7.0.0.39: WebSphere Application Server V7.0 Fix Pack 39
7.0.0.41: WebSphere Application Server V7.0 Fix Pack 41
7.0.0.43: WebSphere Application Server V7.0 Fix Pack 43
7.0.0.45: WebSphere Application Server V7.0 Fix Pack 45
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
Obtain the fix for this APAR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using cachespec.xml, logging into an application the second
    time fails.
    
    browser shows
    Error 500: java.lang.StackOverflowError
    
    Application joblog:
    SRVE0068E: Uncaught exception created in one of the service
    methods of the servlet SimpleFileServlet in application
    <applicationname>.
    Exception created : java.lang.StackOverflowError
    
    FFDC Exception:java.lang.StackOverflowError
    SourceId:com.ibm.ws.webcontainer.servlet.ServletInstance.service
    ProbeId:290
    Reporter:com.ibm.ws.webcontainer.servlet.ServletWrapperImpl@b0b0
    b0b
    java.lang.StackOverflowError
    at com.ibm.ws.cache.servlet.FragmentComposer.
      obtainWriter(FragmentComposer.java:707)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      getPrintWriter(FragmentComposer.java:840)
    at com.ibm.ws.cache.servlet.CacheProxyResponse.
      getWriter(CacheProxyResponse.java:231)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      obtainWriter(FragmentComposer.java:707)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      getPrintWriter(FragmentComposer.java:840)
    at com.ibm.ws.cache.servlet.CacheProxyResponse.
      getWriter(CacheProxyResponse.java:231)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      obtainWriter(FragmentComposer.java:707)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      getPrintWriter(FragmentComposer.java:840)
    at com.ibm.ws.cache.servlet.CacheProxyResponse.
      getWriter(CacheProxyResponse.java:231)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      obtainWriter(FragmentComposer.java:707)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      getPrintWriter(FragmentComposer.java:840)
    at com.ibm.ws.cache.servlet.CacheProxyResponse.
      getWriter(CacheProxyResponse.java:231)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      obtainWriter(FragmentComposer.java:707)
    at com.ibm.ws.cache.servlet.FragmentComposer.
      getPrintWriter(FragmentComposer.java:840)
    at com.ibm.ws.cache.servlet.CacheProxyResponse.
      getWriter(CacheProxyResponse.java:231)
    ...
    

Local fix

  • Remove cachespec.xml
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  7.0 users of servlet caching.               *
    ****************************************************************
    * PROBLEM DESCRIPTION: java.lang.StackOverflowError occurs     *
    *                      when servlet caching is enabled.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A java.lang.StackOverflowError might occur if the
    requesting URI is just the context root and any filter is in
    place.
    When a request is made to the context root, it will be
    forwarded to the available welcome file.  During that
    process, sometimes the fragment might be cached incorrectly.
    It causes the cached URI of the child and the parent to be the
    same.  The next request to the same URI can get into a loop
    and eventually a StackOverflowError occurs.
    

Problem conclusion

  • A new custom property is being introduced,
    com.ibm.ws.cache.CacheConfig.ignoreFilterProxyServlet.  When
    this custom property is defined and set to true, dynacache
    servicing is bypassed and the caching of parent and child
    fragments with the same URI is avoided.
    
    This custom property must be set as a JVM custom property and
    will affect all servlet cache instances.
    
    APAR PM53882 is currently targeted for inclusion in
    Service Level 7.0.0.25 of WebSphere Application Server V7.0.
    
    Please refer to URL:
    http://www.ibm.com/support/docview.wss?rs=404&uid=swg27006970
    for Fix Pack availability.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM53882

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-12-08

  • Closed date

    2012-06-27

  • Last modified date

    2013-10-17

  • 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

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R700 PSY UK81738

       UP12/10/04 P F210

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021