IBM Support

PM14015: CANNOT GET THE RESOURCE FILE VIA CLASSLOADER.GETRESOURCEASSTREAM IN HTTPSESSIONLISTENER.SESSIONDESTROYED()

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In the session listner, the customer read resource file with
    ClassLoader.gerResourceAsStream().
    ____________________________________________________________
    InputStream in = Thread.currentThread().getContextClassLoader()
    .getResourceAsStream("test.properties");
    ____________________________________________________________
    Usually, the resource file can be read with no problem. But,
    when stopping the application, the listener class can not read
    the resource file because it returns InputStream null.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V6.1 with HTTP session listeners     *
    *                  that depend on resources in the             *
    *                  application's classloader.                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: During the stopping of a web            *
    *                      application, the session invalidation   *
    *                      thread's classloader is not set to      *
    *                      its application classloader causing     *
    *                      an exception.                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    This problem occurs when the following conditions are met:
    (1) An application is being stopped
    (2) The application has session listeners defined.
    (3) The listeners depend on resources on the application's
    classloader.
    
    If all of the above conditions are met then the attempt to
    locate the resource in the applications' classloader will fail.
    

Problem conclusion

  • Code changes have been made that will set the classloader
    correctly during the application stop.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 6.1.0.35.  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

    PM14015

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    61W

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-07

  • Closed date

    2010-07-22

  • Last modified date

    2010-07-22

  • 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

  • R61A PSY

       UP

  • R61H PSY

       UP

  • R61I PSY

       UP

  • R61P PSY

       UP

  • R61S PSY

       UP

  • R61W PSY

       UP

  • R61Z PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
24 October 2021