IBM Support

PI29885: WHILE USING THE ASYNC THREADS INSIDE THE MAIN THREAD, SESSIONI MANAGER CODE THROWS INDEXOUTOFBOUNDSEXCEPTION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While using the Async threads inside the main thread, sessioni
    manager code throws IndexOutOfBoundsException. This is due to
    the race condition between the main thread and sub thread.
    
    ######
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
            at
    java.util.LinkedList.checkElementIndex(LinkedList.java:564)
            at java.util.LinkedList.remove(LinkedList.java:534)
            at
    com.ibm.ws.session.SessionAffinityManager.setNextId(SessionAffin
    ityManager.java:245)
            at
    com.ibm.ws.session.SessionManager.getSession(SessionManager.java
    :701)
            at
    com.ibm.ws.session.SessionContext.getIHttpSession(SessionContext
    .java:466)
            at
    com.ibm.ws.session.SessionContext.getIHttpSession(SessionContext
    .java:426)
    
    ######
    
    WebSphere Application Server V8.5
    Distributed operating systems.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server version    *
    *                  8.0                                         *
    *                  and 8.5.5 users.                            *
    ****************************************************************
    * PROBLEM DESCRIPTION: The session manager may throw a         *
    *                      java.lang.IndexOutOfBoundsException     *
    *                      when using asynchronous threads.        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When invoking the
    javax.servlet.http.HttpServletRequest.getSession() method
    after the HTTP session is invalidated in the asynchronous
    thread, the session manager may throw a
    java.lang.IndexOutOfBoundsException.
    

Problem conclusion

  • Code changes were made to the session manager to handle the
    asynchronous threads correctly.
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.11 and 8.5.5.6. 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

    PI29885

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-11-18

  • Closed date

    2015-01-30

  • Last modified date

    2015-01-30

  • 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 APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R800 PSY

       UP

  • 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":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022