IBM Support

PI40416: Unsupported Operation Exception after programmattically added se rvlet context listener throws an exception

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • An exception is thrown by the webcontainer when an
    application calls a ServletContext api:
    
    java.lang.UnsupportedOperationException: SRVE9002E: You
    cannot start this operation from a programmatically added
    listener when using servlet-3.1 feature.
    
    although the operation was called from outside of a
    programmatically added listener. This happens if a
    programmatically added servlet context listener throws an
    exception which is caught by the webcontainer.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - Web Container      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Unsupported Operation Exception after   *
    *                      programmatically added servlet context  *
    *                      listener throws an exception            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Even though the ServletContext api was called from outside the
    scope of a programmatically added listener. an exception is
    thrown by the webcontainer:
    
    java.lang.UnsupportedOperationException: SRVE9002E: You cannot
    start this operation from a programmatically added listener when
    using servlet-3.1 feature.
    
     This happens if a programmatically added ServletContextListener
    throws an exception which is caught by the webcontainer.
    

Problem conclusion

  • The webcontainer logic, which handles an exception thrown by a
    programmatically added ServletContextListener, has been modified
    to ensure that a future call to the ServletContext api is not
    also considered to be within the scope of that
    ServletContextListener.
    
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 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

    PI40416

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2015-05-05

  • Closed date

    2015-06-02

  • Last modified date

    2015-06-02

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

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
28 April 2022