IBM Support

PM90897: LIBERTY PROFILE SECURITY THROWS SERVLET RESPONSE CLASSCASTEXCEPTION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Liberty profile Using Spring security causes
    java.langClassCastException with
    com.ibm.wsspi.webcontainer.servlet.IExtendedResponse
    
    Exception:
    
    
    source=com.ibm.ws.webcontainer
    class=com.ibm.ws.webcontainer.internal.WebContainer
    method=handleRequest org= prod= component=
              SRVE0232E: Internal Server Error. <br> Exception
    Message: [com.ibm.ws.webcontainer.webapp.WebAppErrorReport:
    java.lang.ClassCastException:
    org.springframework.security.web.context.HttpSessionSecurityCont
    extRepository$SaveToSessionResponseWrapper incompatible with
    com.ibm.wsspi.webcontainer.servlet.IExtendedResponse
     at
    com.ibm.ws.webcontainer.webapp.WebAppErrorReport.constructErrorR
    eport(WebAppErrorReport.java:153)
     at
    com.ibm.ws.webcontainer.webapp.WebAppErrorReport.constructErrorR
    eport(WebAppErrorReport.java:197)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters
    (WebAppFilterManager.java:1126)
     at
    com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:
    4290)
     at
    com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.j
    ava:302)
    
    Caused by: java.lang.ClassCastException:
    org.springframework.security.web.context.HttpSessionSecurityCont
    extRepository$SaveToSessionResponseWrapper incompatible with
    com.ibm.wsspi.webcontainer.servlet.IExtendedResponse
     at
    com.ibm.ws.webcontainer.security.SSOCookieHelperImpl.removeSSOCo
    okieFromResponse(SSOCookieHelperImpl.java:142)
     at
    com.ibm.ws.webcontainer.security.SSOCookieHelperImpl.addSSOCooki
    esToResponse(SSOCookieHelperImpl.java:79)
     at
    com.ibm.ws.webcontainer.security.internal.FormLoginExtensionProc
    essor.formLogin(FormLoginExtensionProcessor.java:162)
     at
    com.ibm.ws.webcontainer.security.internal.FormLoginExtensionProc
    essor.handleRequest(FormLoginExtensionProcessor.java:109)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(We
    bAppFilterChain.java:127)
     at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebApp
    FilterChain.java:88)
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: A class cast exception is thrown for    *
    *                      an incompatible servlet response class  *
    *                      from WebSphere Application Server       *
    *                      Liberty Profile.                        *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A class cast exception was thrown for a web request during
    a form login when web application security is enabled.  The
    exception thrown is as follows,
    java.lang.ClassCastException:
    the.incompatible.servletResponseClass incompatible with
    com.ibm.wsspi.webcontainer.servlet.IExtendedResponse
    at
    com.ibm.ws.webcontainer.security.SSOCookieHelperImpl.removeSSOCo
    okieFromResponse(SSOCookieHelperImpl.java:142)
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM90897

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-06-11

  • Closed date

    2013-07-29

  • Last modified date

    2013-09-12

  • 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:
12 January 2022