voyent
ClassCastException when attempting to deploy new custom portlet  XML
Forum Index -> Portals & Portlets
Author Message
dfardoe

Joined: 05/Feb/2013 15:37:03
Messages: 3
Offline


I am working with Liferay to develop a few proof-of-concept portlets in order to evaluate which Java UI Framework to use. Currently I am working with IceFaces, but I am frequently running into issues with deploying my portlets.

I have created a simple portlet which displace an ace:dataTable component.

When I attempt to deploy it, I get the following exception:
Code:
org.icefaces.impl.application.WindowScopeManager$State cannot be cast to org.icefaces.impl.application.WindowScopeManager$State


I don't see this error in the log file, but it is displayed in the portlet when it fails to load.

I appreciate any advice regarding what the cause and possible fixes/workarounds might be.

For some background, I am using:
Liferay Developer Studio with Tomcat 7 (built-in)
IceFaces 3.2.0
JDK version 1.6.0_38
JRE version 1.6.0_38
Windows 7 Enterprise
dfardoe

Joined: 05/Feb/2013 15:37:03
Messages: 3
Offline


Just to add some additional information:

I've taken a look for duplicate instances of the icefaces jar files, but I did not find any.

I am trying to implement IPC between two portlets on the same page. One portlet has a drop down list. When a selection is made, and the submit button is clicked, the datatable in a second portlet should update with the data matching the selection from the first portlet.

Both portlets have the icefaces jar files (icefaces-ace.jar, icefaces-compat.jar, icefaces.jar, and icepush.jar) in their /docroot/WEB-INF/lib folder. No icefaces jar files are present in <tomcat install dir>/lib

After some troubleshooting, it seems like either portlet works if they are deployed and added to the page on their own. When the other portlet is deployed and added to the page, that is when the exception occurs.

For completeness, here is the full stack trace produced:
Code:
java.lang.ClassCastException: org.icefaces.impl.application.WindowScopeManager$State cannot be cast to org.icefaces.impl.application.WindowScopeManager$State
 	at org.icefaces.impl.application.WindowScopeManager.getPortletState(WindowScopeManager.java:390)
 	at org.icefaces.impl.application.WindowScopeManager.getState(WindowScopeManager.java:370)
 	at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:85)
 	at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
 	at org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36)
 	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
 	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
 	at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
 	at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
 	at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
 	at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
 	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
 	at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
 	at javax.faces.component.UIData.getValue(UIData.java:731)
 	at org.icefaces.ace.component.datatable.DataTable.getValue(DataTable.java:151)
 	at org.icefaces.ace.component.datatable.DataTable.getDataModel(DataTable.java:179)
 	at javax.faces.component.UIData.setRowIndexWithoutRowStatePreserved(UIData.java:484)
 	at javax.faces.component.UIData.setRowIndex(UIData.java:473)
 	at org.icefaces.ace.component.datatable.DataTable.setRowIndex(DataTable.java:450)
 	at org.icefaces.ace.component.datatable.DataTable.visitTree(DataTable.java:1442)
 	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 	at javax.faces.component.UIForm.visitTree(UIForm.java:344)
 	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 	at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 	at org.icefaces.impl.event.RestoreResourceDependencies.processEvent(RestoreResourceDependencies.java:24)
 	at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
 	at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
 	at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
 	at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:244)
 	at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:670)
 	at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:812)
 	at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:962)
 	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1754)
 	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
 	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
 	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 	at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
 	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:280)
 	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:92)
 	at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:99)
 	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
 	at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 	at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)
 	at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)
 	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1207)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
 	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
 	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
 	at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5166)
 	at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
 	at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 	at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)
 	at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:735)
 	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 	at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
 	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 	at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:239)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
 	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
 	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
 	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
 	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
 	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 	at java.lang.Thread.run(Thread.java:662)
 
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


Are these portlets in the same .war file or different .war files? From your description it seems like they are in different .war files. What happens if you configure both portlets in the same .war? Do you see the same issue?
dfardoe

Joined: 05/Feb/2013 15:37:03
Messages: 3
Offline


They are in different WAR files. I tried your suggestion, and put them in same WAR to see if that made a difference, but I got the same result.
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


That seems odd. Are you using a window-scoped bean in you application? Would it be possible to send me a simple version of your .war that shows the issue?

Looking at the code that's likely reporting the problem:

Code:
State state = (State) portletSession.getAttribute(WindowScopeManager.class.getName(), javax.portlet.PortletSession.APPLICATION_SCOPE);
 


I'm not sure why it would have problems storing and retrieving the state from the session.

When you were originally running them as two different portlets, were you using the exact same version of the ICEfaces libraries? Perhaps they were different and the serialized State instances don't match.
 
Forum Index -> Portals & Portlets
Go to:   
Powered by JForum 2.1.7ice © JForum Team