IBM Support

PM44167: A ClassCastException may occur while running a JSF portlet application migrated from WebSphere Portal v6 to v7

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using WebSphere Portal v7 the encodeActionURL() method is
    invoked during the action phase can fails while creating a
    PortletURL with the following error:
    
    [7/5/11 16:22:44:973 EDT] 00000057 EventQueueMan E
    com.ibm.wps.pe.pc.waspc.event.EventQueueManager processEventLoop
    EJPPG1122E: An error occurred during portlet event
    processing.javax.portlet.PortletException:
    com.ibm.faces.portlet.httpbridge.ActionResponseWrapper
    incompatible with javax.portlet.RenderResponse
    at
    com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.ja
    va:198)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.
    doFilter(PortletFilterChainImpl.java:77)
    at
    com.ibm.wps.engine.el.init.AttributeCopyFilter.doFilter(Attribut
    eCopyFilter.java:134)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletFilterChainImpl.
    doFilter(PortletFilterChainImpl.java:69)
    
    and is caused by the following exception:
    
    Caused by: java.lang.ClassCastException:
    com.ibm.faces.portlet.httpbridge.ActionResponseWrapper
    incompatible with javax.portlet.RenderResponse
        at
    com.ibm.faces.portlet.httpbridge.PortletExternalContextWrapper.e
    ncodeActionURL(PortletExternalContextWrapper.java:110)
        at
    com.sun.faces.application.NavigationHandlerImpl.handleNavigation
    (NavigationHandlerImpl.java:181)
        at
    com.sun.faces.application.ActionListenerImpl.processAction(Actio
    nListenerImpl.java:130)
        at
    javax.faces.component.UICommand.broadcast(UICommand.java:387)
        at
    javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java
    :458)
        at
    javax.faces.component.UIViewRoot.processApplication(UIViewRoot.j
    ava:763)
        at
    com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApp
    licationPhase.java:82)
        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
        at
    com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
    :118)
        at
    com.ibm.faces.portlet.FacesPortlet.processAction(FacesPortlet.ja
    va:202)
        ... 133 more
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When using JSF 1.2 and redirecting to an external Portal
    page the encodeActionURL is invoked in action phase and
    causes an execption during creation of action URL which
    happens during the render phase.
    

Problem conclusion

  • Handled the invocation of encodeActionURL during action
    phase and configured the absolute URL to portal page.
    
    The fix for this APAR is included in Rational Application
    Developer v8.0.4.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM44167

  • Reported component name

    RATL APP DEV WI

  • Reported component ID

    5724J1901

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-07-21

  • Closed date

    2011-11-17

  • Last modified date

    2011-11-17

  • 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

    RATL APP DEV WI

  • Fixed component ID

    5724J1901

Applicable component levels

  • R800 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
17 November 2011