Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dave F
ClassCastException when attempting to deploy new custom portlet
February 26, 2013 1:25 PM
Answer

Dave F

Rank: Junior Member

Posts: 30

Join Date: January 29, 2013

Recent Posts

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:
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
Brian Scott Schupbach
RE: ClassCastException when attempting to deploy new custom portlet
February 26, 2013 1:46 PM
Answer

Brian Scott Schupbach

Rank: Expert

Posts: 331

Join Date: October 23, 2008

Recent Posts

seems like the error is in your .jsp and deploying isn't your issue. Use some debug statements to track down the line that is causing the issue.
Neil Griffin
RE: ClassCastException when attempting to deploy new custom portlet
February 26, 2013 4:33 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1971

Join Date: July 26, 2005

Recent Posts

The error indicates that you might have multiple versions of the ICEfaces JARs in your classpath.

Example#1:
tomcat/lib/icefaces.jar
tomcat/webapps/my-portlet/WEB-INF/lib/icefaces.jar

Example#2:
tomcat/webapps/my-portlet/WEB-INF/lib/icefaces-3.1.0.jar
tomcat/webapps/my-portlet/WEB-INF/lib/icefaces-3.2.0.jar
Dave F
RE: ClassCastException when attempting to deploy new custom portlet
February 27, 2013 7:39 AM
Answer

Dave F

Rank: Junior Member

Posts: 30

Join Date: January 29, 2013

Recent Posts

Thanks for the responses

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

Just to add a bit more information: 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:
  1java.lang.ClassCastException: org.icefaces.impl.application.WindowScopeManager$State cannot be cast to org.icefaces.impl.application.WindowScopeManager$State
  2    at org.icefaces.impl.application.WindowScopeManager.getPortletState(WindowScopeManager.java:390)
  3    at org.icefaces.impl.application.WindowScopeManager.getState(WindowScopeManager.java:370)
  4    at org.icefaces.impl.application.WindowScopeManager.lookupWindowScope(WindowScopeManager.java:85)
  5    at org.icefaces.impl.application.WindowELResolver.getScope(WindowELResolver.java:66)
  6    at org.icefaces.impl.application.WindowELResolver.getValue(WindowELResolver.java:36)
  7    at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
  8    at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
  9    at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
 10    at org.jboss.el.parser.AstValue.getValue(AstValue.java:63)
 11    at org.jboss.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
 12    at com.sun.faces.facelets.el.TagValueExpression.getValue(TagValueExpression.java:109)
 13    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:194)
 14    at javax.faces.component.ComponentStateHelper.eval(ComponentStateHelper.java:182)
 15    at javax.faces.component.UIData.getValue(UIData.java:731)
 16    at org.icefaces.ace.component.datatable.DataTable.getValue(DataTable.java:151)
 17    at org.icefaces.ace.component.datatable.DataTable.getDataModel(DataTable.java:179)
 18    at javax.faces.component.UIData.setRowIndexWithoutRowStatePreserved(UIData.java:484)
 19    at javax.faces.component.UIData.setRowIndex(UIData.java:473)
 20    at org.icefaces.ace.component.datatable.DataTable.setRowIndex(DataTable.java:450)
 21    at org.icefaces.ace.component.datatable.DataTable.visitTree(DataTable.java:1442)
 22    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 23    at javax.faces.component.UIForm.visitTree(UIForm.java:344)
 24    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 25    at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)
 26    at org.icefaces.impl.event.RestoreResourceDependencies.processEvent(RestoreResourceDependencies.java:24)
 27    at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
 28    at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2129)
 29    at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2105)
 30    at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:300)
 31    at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:244)
 32    at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:670)
 33    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:812)
 34    at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:962)
 35    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1754)
 36    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
 37    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
 38    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
 39    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
 40    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 41    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 42    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
 43    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:280)
 44    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:92)
 45    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:99)
 46    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
 47    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 48    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
 49    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 50    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 51    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 52    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 53    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 54    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 55    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 56    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 57    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 58    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 59    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 60    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 61    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 62    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 63    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 64    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)
 65    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)
 66    at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1207)
 67    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 68    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 69    at com.liferay.portal.servlet.DirectRequestDispatcher.include(DirectRequestDispatcher.java:97)
 70    at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
 71    at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
 72    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5166)
 73    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
 74    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
 75    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
 76    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
 77    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
 78    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
 79    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
 80    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
 81    at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:507)
 82    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 83    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 84    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
 85    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
 86    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
 87    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 88    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 89    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 90    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 91    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 92    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 93    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 94    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 95    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 96    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 97    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 98    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)
 99    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:735)
100    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
101    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
102    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
103    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
104    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
105    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
106    at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
107    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
108    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
109    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
110    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
111    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
112    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
114    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
118    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
119    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
120    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
123    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
124    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
125    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
126    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
127    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
128    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
129    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
130    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
131    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
132    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
133    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
134    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
135    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
136    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
137    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
138    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
139    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
140    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
141    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
142    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
143    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
144    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
145    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
146    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
148    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
149    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
150    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
151    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
153    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
154    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
155    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
156    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
157    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
158    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
159    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
160    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
161    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
162    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:239)
163    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
164    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
165    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
166    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
167    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
168    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
169    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
170    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
171    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
172    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
173    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
174    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
175    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
176    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
177    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
178    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
179    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
180    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
181    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
182    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
183    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
184    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
185    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
186    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
187    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
188    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
189    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
190    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
191    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
192    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
193    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
194    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
195    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
196    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
197    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
198    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
199    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
200    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
201    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
202    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
203    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
204    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
205    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
206    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
207    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
208    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
209    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
210    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
211    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
212    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
213    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
214    at java.lang.Thread.run(Thread.java:662)
Neil Griffin
RE: ClassCastException when attempting to deploy new custom portlet
February 28, 2013 6:59 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1971

Join Date: July 26, 2005

Recent Posts

Did you happen to specify the private-request-attributes option in the WEB-INF/liferay-portlet.xml descriptor? Setting that to false could cause problems like this.
Dave F
RE: ClassCastException when attempting to deploy new custom portlet
March 4, 2013 2:21 PM
Answer

Dave F

Rank: Junior Member

Posts: 30

Join Date: January 29, 2013

Recent Posts

I did have that set to false, but I was under the impression (perhaps mistakenly?) that it was necessary for IPC using Ajax Push (which was the eventual goal of the POC I was working on).

FWIW we have decided on using another UI framework, so I won't have the opportunity to test this out further.

I appreciate the assistance, though!
Jason Flores
RE: ClassCastException when attempting to deploy new custom portlet
June 18, 2014 1:38 PM
Answer

Jason Flores

Rank: New Member

Posts: 1

Join Date: June 18, 2014

Recent Posts

Neil Griffin:
Did you happen to specify the private-request-attributes option in the WEB-INF/liferay-portlet.xml descriptor? Setting that to false could cause problems like this.



How is session sharing achieved without this property set?