IBM Support

PM13802: GENERATE A RESOURCE URL IN RESOURCE SERVING PHASE FAILS WITH WSR P

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When trying to generate a resource url (e.g.
    ResourceResponse.createResourceURL()) in the resource serving
    phase on a consumed Portlet it fails with the following
    exception on the consumer Portal:
    
    javax.portlet.PortletException: java.lang.ClassCastException:
    com.ibm.ws.portletcontainer.core.impl.ResourceResponseImpl
    incompatible with javax.portlet.RenderResponse
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet
    .doDispatch(PortletServlet.java:369)
    at com.ibm.ws.portletcontainer.invoker.impl
    .PortletServletCollaboratorChainImpl
    .doCollaborator(PortletServletCollaboratorChainImpl.java:82)
    at com.ibm.ws.portletcontainer.rrd
    .RRDServerPortletServletCollaborator
    .doDispatch(RRDServerPortletServletCollaborator.java:60)
    at com.ibm.ws.portletcontainer.invoker.impl
    .PortletServletCollaboratorChainImpl
    .doCollaborator(PortletServletCollaboratorChainImpl.java:74)
    ...
    Caused by: java.lang.ClassCastException:
    com.ibm.ws.portletcontainer.core.impl.ResourceResponseImpl
    incompatible with javax.portlet.RenderResponse
    at com.ibm.wps.wsrp.consumer.std.impl.URLGeneratorImpl
    .getResourceURL(URLGeneratorImpl.java:350)
    at com.ibm.wps.wsrp.consumer.std.impl
    .ResourceProxyRewriter$ResourceContentHandler
    .rewriteURL(ResourceProxyRewriter.java:206)
    at com.ibm.wps.wsrp.util.parser.ParserFilter
    .handleStopToken(ParserFilter.java:696)
    at com.ibm.wps.wsrp.util.parser.ParserFilter.close(ParserFilter
    .java:401)
    at com.ibm.wps.wsrp.consumer.std.impl.ResourceProxyRewriter
    .close(ResourceProxyRewriter.java:335)
    at com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet
    .rewriteMarkup(ProxyPortlet.java:1491)
    at com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet
    .processMimeResponse(ProxyPortlet.java:1203)
    at com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet
    .serveResource(ProxyPortlet.java:1032)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet
    .doDispatch(PortletServlet.java:548)
    at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet
    .doDispatch(PortletServlet.java:332)
    ... 105 more
    

Local fix

Problem summary

  • When trying to generate a resource url (e.g.
    ResourceResponse.createResourceURL()) in the resource serving
    phase on a consumed Portlet it fails with the following
    exception on the consumer Portal:
    
    javax.portlet.PortletException: java.lang.ClassCastException:
    com.ibm.ws.portletcontainer.core.impl.ResourceResponseImpl
    incompatible with javax.portlet.RenderResponse
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispat
    ch(PortletServlet.java:369)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollabora
    torChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.
    java:82)
    at
    com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollabora
    tor.doDispatch(RRDServerPortletServletCollaborator.java:60)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollabora
    torChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.
    java:74)
    ...
    Caused by: java.lang.ClassCastException:
    com.ibm.ws.portletcontainer.core.impl.ResourceResponseImpl
    incompatible with javax.portlet.RenderResponse
    at
    com.ibm.wps.wsrp.consumer.std.impl.URLGeneratorImpl.getResourceU
    RL(URLGeneratorImpl.java:350)
    at
    com.ibm.wps.wsrp.consumer.std.impl.ResourceProxyRewriter$Resourc
    eContentHandler.rewriteURL(ResourceProxyRewriter.java:206)
    at
    com.ibm.wps.wsrp.util.parser.ParserFilter.handleStopToken(Parser
    Filter.java:696)
    at
    com.ibm.wps.wsrp.util.parser.ParserFilter.close(ParserFilter.jav
    a:401)
    at
    com.ibm.wps.wsrp.consumer.std.impl.ResourceProxyRewriter.close(R
    esourceProxyRewriter.java:335)
    at
    com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet.rewriteMarkup(Pr
    oxyPortlet.java:1491)
    at
    com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet.processMimeRespo
    nse(ProxyPortlet.java:1203)
    at
    com.ibm.wps.wsrp.consumer.std.impl.ProxyPortlet.serveResource(Pr
    oxyPortlet.java:1032)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispat
    ch(PortletServlet.java:548)
    at
    com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispat
    ch(PortletServlet.java:332)
    ... 105 more
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM13802

  • Reported component name

    WEBSPHERE PORTA

  • Reported component ID

    5724E7600

  • Reported release

    61A

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-06

  • Closed date

    2010-05-27

  • Last modified date

    2010-05-27

  • 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

    WEBSPHERE PORTA

  • Fixed component ID

    5724E7600

Applicable component levels

  • R61A PSY

       UP

  • R61C PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSHRKX","label":"WebSphere Portal"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1.0.1","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
27 May 2010