[gatein-issues] [JBoss JIRA] Updated: (GTNWSRP-160) CCE 'B cannot be cast to org.exoplatform.portal.pom.spi.wsrp.WSRP'

Matt Wringe (JIRA) jira-events at lists.jboss.org
Mon Nov 15 13:12:43 EST 2010


     [ https://jira.jboss.org/browse/GTNWSRP-160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Wringe updated GTNWSRP-160:
--------------------------------

    Attachment: wsrp-UIPortletActionListener.patch


The attached file will fix this issue (if the portlet's state is currently wsrp, then it will update the byte array of the current wsrp state and update that).

The problem is that this should not be placed in this location. The creation of the cloned wsrp context is right below this code in the UIPortletActionListener (the other choice for a if/else condition), which is also the wrong place to have this.

We need to reconfigure how this is used and add these elements into proper locations.

> CCE 'B cannot be cast to org.exoplatform.portal.pom.spi.wsrp.WSRP'
> ------------------------------------------------------------------
>
>                 Key: GTNWSRP-160
>                 URL: https://jira.jboss.org/browse/GTNWSRP-160
>             Project: GateIn WSRP
>          Issue Type: Bug
>    Affects Versions: 2.0.0-CR02
>            Reporter: Matt Wringe
>            Assignee: Matt Wringe
>             Fix For: 2.0.0-GA
>
>         Attachments: wsrp-UIPortletActionListener.patch
>
>
> Netunity Portlet State Portlet over wsrp 2.0
> Steps to reproduce:
> 1) load the NetUnity Portlet State portlet on a page
> 2) put something into the consumer portlet state field
> 3) submit
> 4) this should work
> 5) add something into the consumer portlet state field again
> 6) click submit
> This will result in the following error:
> 16:30:10,440 ERROR [portal:UIPortletLifecycle] Error processing the action: [B cannot be cast to org.exoplatform.portal.pom.spi.wsrp.WSRP
> java.lang.ClassCastException: [B cannot be cast to org.exoplatform.portal.pom.spi.wsrp.WSRP
> 	at org.exoplatform.portal.webui.application.ModelAdapter$3.update(ModelAdapter.java:208)
> 	at org.exoplatform.portal.webui.application.UIPortlet.update(UIPortlet.java:991)
> 	at org.exoplatform.portal.webui.application.UIPortletActionListener$ProcessActionActionListener.execute(UIPortletActionListener.java:125)
> 	at org.exoplatform.webui.event.Event.broadcast(Event.java:89)
> 	at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:127)
> 	at org.exoplatform.portal.webui.application.UIPortletLifecycle.processAction(UIPortletLifecycle.java:62)
> 	at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:133)
> 	at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:73)
> 	at org.exoplatform.portal.webui.workspace.UIPortalApplicationLifecycle.processAction(UIPortalApplicationLifecycle.java:37)
> 	at org.exoplatform.webui.core.UIComponent.processAction(UIComponent.java:133)
> 	at org.exoplatform.webui.core.UIApplication.processAction(UIApplication.java:120)
> 	at org.exoplatform.portal.application.PortalRequestHandler.execute(PortalRequestHandler.java:110)
> 	at org.exoplatform.web.WebAppController.service(WebAppController.java:139)
> 	at org.exoplatform.portal.application.PortalController.onService(PortalController.java:127)
> 	at org.exoplatform.container.web.AbstractHttpServlet.service(AbstractHttpServlet.java:132)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the gatein-issues mailing list