IBM Support

PM80589: JAVA.LANG.CLASSCASTEXCEPTION AFTER AN APPLICATION RESTART

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A ClassCastException occurs after an application restart
    because WebSphere Application Server continues to hold
    references to the application.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Version    *
    *                  8.5 Libery Profile users of JavaServer      *
    *                  Faces                                       *
    *                  (JSF) MyFaces.                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: After an application restart a          *
    *                      ClassCastException can occur.           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    An example of the exception is:
    Caused by: java.lang.ClassCastException:
    org.apache.myfaces.extensions.validator.core.storage.DefaultRend
    ererInterceptorPropertyStorage incompatible with
    org.apache.myfaces.extensions.validator.core.storage.RendererInt
    erceptorPropertyStorage
    at
    org.apache.myfaces.extensions.validator.core.interceptor.Abstrac
    tValidationInterceptor.getRendererInterceptorPropertyStorage(Abs
    tractValidationInterceptor.java:477)
    at
    org.apache.myfaces.extensions.validator.core.interceptor.Abstrac
    tValidationInterceptor.setRendererInterceptorProperties(Abstract
    ValidationInterceptor.java:456)
    at
    org.apache.myfaces.extensions.validator.core.interceptor.Abstrac
    tValidationInterceptor.beforeGetConvertedValue(AbstractValidatio
    nInterceptor.java:166)
    at
    org.apache.myfaces.extensions.validator.core.renderkit.ExtValRen
    dererWrapper.getConvertedValue(ExtValRendererWrapper.java:361)
    at
    javax.faces.component.UIViewParameter.getConvertedValue(UIViewPa
    rameter.java:248)
    The exception occurred because the
    javax.faces.component.UIViewParameter.java class was holding
    on to its renderer because it is a static variable. This
    causes a couple of problems:
    1) Since WebSphere Application Server ships MyFaces in the
    runtime more than one application can be using this Static
    variable, which means each application is using the same
    renderer.
    2) The renderer was not being released during a restart of the
    application so one from a different ClassLoader was being used
    which is causing the ClassCastException.
    

Problem conclusion

  • WebSphere Application server was updated to allow each
    application to have its own renderer for
    javax.faces.component.UIViewParameter.  The renderer is also
    not held onto any longer after the application
    has been restarted to avoid the ClassCastException.
    The following fix was pulled into WebSphere Application Server
    from the Apache MyFaces Open Source Community to resolve this
    problem:
    1) https://issues.apache.org/jira/browse/MYFACES-3594
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.0.2.  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

    PM80589

  • 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-01-14

  • Closed date

    2013-01-14

  • Last modified date

    2013-02-26

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

    PM65693

  • 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:
29 October 2021