IBM Support

PK40127: METHOD CALLED BY THE CONTAINER, GETCONTEXT(CURRENTCONTEXT) RETURNS NULL.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    JSR 168 portlet web applications cannot be started/stopped
    independently of starting/stopping the Portal web application
    when using IBM WebSphere Application Server 6.0.2.
    
    Explanation:
    Upon context initialization (when ServletContextListener's
    contextInitialized()
    method is called by the container), getContext(currentContext)
    returns null. Servlet 2.4 spec, page 80 says that methods in
    ServletContextListener instance would be called when "The
    servlet context has just been created and is available
    to service its first request, or the servlet context is about to
    be shut down."
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: IBM WebSphere Application Server version 6   *
    *                 users who implement a                        *
    *                 ServletContextListener.                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: The webcontainer initializes a service  *
    *                      context before saving its address in    *
    *                      a variable available to a               *
    *                      ServletContextEvent.                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The webcontainer initializes a service context before saving
    its address in a variable available to a ServletContextEvent.
    As a result when the ServletContextListener is notified of
    that the servlet context has been created and tries to obtain
    it from the ServletContextEvent a null is returned.
    
    According to the Java(TM) Servlet Specification Version 2.4 a
    ServletContextListener is called when a servlet context has
    just been created and is available to service its first
    request. However, when the contextInitialized() method of a
    ServletContextListener is called to notify the
    ServletContextListener that a servlet context has just
    been created, if that method calls the getServletContext()
    method on the passed ServletContextEvent object in order to
    obtain the servlet context, a null is returned.
    

Problem conclusion

  • The webcontainer now saves the address of the servlet context
    in a variable available to a ServletContextEvent before
    initializing the servlet context.
    
    The fix for this APAR is currently targeted for inclusion
    in fixpacks 6.0.2.21 and 6.1.0.11.
    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

    PK40127

  • Reported component name

    WAS NETWRK DEPL

  • Reported component ID

    5630A3601

  • Reported release

    60S

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2007-02-27

  • Closed date

    2007-04-27

  • Last modified date

    2007-08-21

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • ENGINE
    

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R60A PSY

       UP

  • R60H PSY

       UP

  • R60I PSY

       UP

  • R60S PSY

       UP

  • R60P PSY

       UP

  • R60W PSY

       UP

  • R60Z PSY

       UP

  • R61A PSY

       UP

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

Document Information

Modified date:
29 December 2021