IBM Support

PH02750: JAVA.LANG.CLASSCASTEXCEPTION OCCURS IN OIDCCLIENTIMPL.LOGOUT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When porting from twas to liberty we are observing a
    classCastException when configured with openId connect
    during
    log out.
    
    
    The exception looks like this:
    
    java.lang.ClassCastException:
    com.ibm.bpm.servlet.filters.GenericSecurityServletRequestWra
    pper
    incompatible with
    com.ibm.wsspi.webcontainer.servlet.IExtendedRequest
    at
    com.ibm.ws.security.openidconnect.client.internal.OidcClient
    Impl
    .logout(OidcClientImpl.java:565)
    at
    com.ibm.ws.webcontainer.security.AuthenticateApi.logoutUnpro
    tect
    edResourceServiceRef(AuthenticateApi.java:206)
    at
    com.ibm.ws.webcontainer.security.AuthenticateApi.logout(Auth
    enti
    cateApi.java:167)
    at
    com.ibm.ws.webcontainer.security.internal.FormLogoutExtensio
    nPro
    cessor.formLogout(FormLogoutExtensionProcessor.java:106)
    at
    com.ibm.ws.webcontainer.security.internal.FormLogoutExtensio
    nPro
    cessor.access$000(FormLogoutExtensionProcessor.java:46)
    at
    com.ibm.ws.webcontainer.security.internal.FormLogoutExtensio
    nPro
    cessor$1.run(FormLogoutExtensionProcessor.java:76)
    at
    java.security.AccessController.doPrivileged(AccessController
    .jav
    a:696)
    at
    com.ibm.ws.webcontainer.security.internal.FormLogoutExtensio
    nPro
    cessor.handleRequest(FormLogoutExtensionProcessor.java:73)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarge
    t(We
    bAppFilterChain.java:182)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(We
    bApp
    FilterChain.java:93)
    at
    com.ibm.bpm.servlet.filters.LogoutFilter.doFilter(LogoutFilt
    er.j
    ava:102)
    at
    com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilte
    r(Fi
    lterInstanceWrapper.java:201)
    .....
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Users of IBM WebSphere Application Server   *
    *                  Liberty and OpenID Connect                  *
    ****************************************************************
    * PROBLEM DESCRIPTION: java.lang.ClassCastException may occur  *
    *                      in OidcClientImpl.logout                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    A java.lang.ClassCastException error may occur in the OpenID
    Connect client at
    com.ibm.ws.security.openidconnect.client.internal.OidcClientImpl
    .logout(OidcClientImpl.java:565):
    
    java.lang.ClassCastException:
    com.ibm.bpm.servlet.filters.GenericSecurityServletRequestWrapper
    incompatible with
    com.ibm.wsspi.webcontainer.servlet.IExtendedRequest
    at
    com.ibm.ws.security.openidconnect.client.internal.OidcClientImpl
    .logout(OidcClientImpl.java:565)
    ..
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PH02750

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-09-14

  • Closed date

    2018-09-25

  • Last modified date

    2018-09-25

  • 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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 October 2021