Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Gaurav Sharma
Primefaces DataExporter not working
12 febbraio 2013 7.46
Risposta

Gaurav Sharma

Punteggio: Junior Member

Messaggi: 38

Data di Iscrizione: 1 novembre 2012

Messaggi recenti

I set up a simple portlet example along the lines of http://www.primefaces.org/showcase/ui/exporter.jsf.

Clicking the Export to PDF link causes the following error:

  1Feb 12, 2013 3:41:20 PM org.apache.catalina.core.ApplicationDispatcher invoke
  2SEVERE: Servlet.service() for servlet primecampaignadmin Servlet threw exception
  3javax.portlet.faces.BridgeException: javax.faces.FacesException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
  4    at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:106)
  5    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:68)
  6    at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:152)
  7    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
  8    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
  9    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
 10    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 11    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 12    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 13    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 14    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 15    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 16    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 17    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 18    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
 19    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
 20    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 21    at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
 22    at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
 23    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
 24    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
 25    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 26    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 27    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 28    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
 29    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 30    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 31    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
 32    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 33    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 34    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 35    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 36    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 37    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 38    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 39    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 40    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 41    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 42    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 43    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 44    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 45    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 46    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 47    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 48    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 49    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
 50    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 51    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
 52    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
 53    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
 54    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
 55    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 56    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
 57    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
 58    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
 59    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 60    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 61    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 62    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 63    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
 64    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 65    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 66    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 67    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 68    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 69    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
 70    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 71    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 72    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 73    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 74    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 75    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 76    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 77    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 78    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 79    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 80    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 81    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 82    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 83    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 84    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 85    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 86    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 87    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
 88    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 89    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 90    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 91    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 92    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 93    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 94    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 95    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 96    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 97    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
 98    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 99    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
100    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
101    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
102    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
103    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
104    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
105    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
106    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
107    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
108    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
109    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
110    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
111    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
112    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
113    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
114    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
115    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
117    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
118    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
119    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
120    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
122    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
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.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
127    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
128    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
129    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
130    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
131    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
132    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
133    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
134    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
135    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
136    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
137    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
138    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
139    at java.lang.Thread.run(Thread.java:619)
140Caused by: javax.faces.FacesException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
141    at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:141)
142    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
143    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
144    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:35)
145    at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:87)
146    ... 135 more
147Caused by: java.lang.ClassCastException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
148    at org.primefaces.component.export.CSVExporter.export(CSVExporter.java:40)
149    at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:102)
150    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
151    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
152    at javax.faces.component.UICommand.broadcast(UICommand.java:300)
153    at javax.faces.component.UIData.broadcast(UIData.java:1093)
154    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
155    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
156    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
157    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
158    ... 138 more
15915:41:21,478 ERROR [http-bio-8080-exec-3][status_jsp:665] javax.portlet.faces.BridgeException: javax.faces.FacesException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
160javax.portlet.faces.BridgeException: javax.faces.FacesException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
161    at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:106)
162    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:68)
163    at javax.portlet.faces.GenericFacesPortlet.processAction(GenericFacesPortlet.java:152)
164    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
165    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
166    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)
167    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
168    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
169    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
170    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
171    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
172    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
173    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
174    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
175    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:593)
176    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:530)
177    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
178    at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
179    at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
180    at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
181    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
182    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
183    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
184    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
185    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
186    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
187    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
188    at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
189    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
190    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
191    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
192    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
193    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
194    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
195    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
196    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
197    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
198    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
199    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
200    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
201    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
202    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
203    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
204    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
205    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
206    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
207    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
208    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
209    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
210    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
211    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
212    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
213    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
214    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
215    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
216    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
217    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
218    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
219    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
220    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
221    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
222    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
223    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
224    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
225    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
226    at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
227    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
228    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
229    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
230    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
231    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
232    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
233    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
234    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
235    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
236    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
237    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
238    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
239    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
240    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
241    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
242    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
243    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
244    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
245    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
246    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
247    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
248    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
249    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
250    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
251    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
252    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
253    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
254    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
255    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
256    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
257    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
258    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
259    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
260    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
261    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
262    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
263    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
264    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
265    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
266    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
267    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
268    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
269    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
270    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
271    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
272    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
273    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
274    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
275    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
276    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
277    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
278    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
279    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
280    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
281    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
282    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
283    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
284    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
285    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
286    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
287    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
288    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
289    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
290    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
291    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
292    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
293    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
294    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
295    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
296    at java.lang.Thread.run(Thread.java:619)
297Caused by: javax.faces.FacesException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
298    at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:141)
299    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
300    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
301    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.execute(LifecycleWrapper.java:35)
302    at com.liferay.faces.bridge.BridgePhaseActionImpl.execute(BridgePhaseActionImpl.java:87)
303    ... 135 more
304Caused by: java.lang.ClassCastException: com.liferay.portlet.ActionResponseImpl cannot be cast to javax.servlet.http.HttpServletResponse
305    at org.primefaces.component.export.CSVExporter.export(CSVExporter.java:40)
306    at org.primefaces.component.export.DataExporter.processAction(DataExporter.java:102)
307    at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
308    at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:769)
309    at javax.faces.component.UICommand.broadcast(UICommand.java:300)
310    at javax.faces.component.UIData.broadcast(UIData.java:1093)
311    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
312    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
313    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
314    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
315    ... 138 more


Clicking Export to Excel, PDF and XML also throw similar errors. Is this a know bug or am I doing something wrong?
Marjan Mitev
RE: Primefaces DataExporter not working
12 febbraio 2013 12.33
Risposta

Marjan Mitev

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 23 dicembre 2012

Messaggi recenti

Which liferay version you are using, and what server you are using with it ?

If you are using ligeray portal 6.0.6 version it is bundled with glassfish 3.0.1 that already have jsf-impl and jsf-api that
causes errors using ajax ( it is bug in the implementation of com.sun.faces.util.OnOffResponseWrapper), so you need to change jsf-impl jar files to 2.0 or 2.1 and i think you solve the problem.

I got the same error but mine was: cant cast ResourceResponseImpl to HttpServletResponse, so i changed the jar files (version 3.1.2-ga3)
which are found in liferay-portal/glassfish/modules/ and now i dont get that error anymore but still got error accessing the ManagedBean
in the background that is null.

Hint for the jar files:
3.1.2-ga3 version of jar files is from examples on the site - liferay faces, just go there to the git link and change the master branch to 3.0.x it is modular project with primefaces (for liferay 6.0.6) examples then download the master and if u like to get this working u must build project with maven and go into .m2 local maven repository on your PC an copy the jsf-impl jars from there to the glassfish server)

See if this helps...
Marjan Mitev
RE: Primefaces DataExporter not working
12 febbraio 2013 12.35
Risposta

Marjan Mitev

Punteggio: New Member

Messaggi: 15

Data di Iscrizione: 23 dicembre 2012

Messaggi recenti

Marjan Mitev:
Which liferay version you are using, and what server you are using with it ?

If you are using ligeray portal 6.0.6 version it is bundled with glassfish 3.0.1 that already have jsf-impl and jsf-api that
causes errors using ajax ( it is bug in the implementation of com.sun.faces.util.OnOffResponseWrapper), so you need to change jsf-impl jar files to 2.0 or 2.1 and i think you solve the problem.

I got the same error but mine was: cant cast ResourceResponseImpl to HttpServletResponse, so i changed the jar files (version 3.1.2-ga3)
which are found in liferay-portal/glassfish/modules/ and now i dont get that error anymore but still got error accessing the ManagedBean
in the background that is null.

Hint for the jar files:
3.1.2-ga3 version of jar files is from examples on the site - liferay faces, just go there to the git link and change the master branch to 3.0.x it is modular project with primefaces (for liferay 6.0.6) examples then download the master and if u like to get this working u must build project with maven and go into .m2 local maven repository on your PC an copy the jsf-impl jars from there to the glassfish server)

See if this helps...



btw if you are using liferay 6.1.1 change branch of the git to 3.1.2 or sometin you see there more versions...
Gaurav Sharma
RE: Primefaces DataExporter not working
12 febbraio 2013 12.39
Risposta

Gaurav Sharma

Punteggio: Junior Member

Messaggi: 38

Data di Iscrizione: 1 novembre 2012

Messaggi recenti

I'm using Liferay version 6.1 with Tomcat 7 server.
Vernon Singleton
RE: Primefaces DataExporter not working
12 febbraio 2013 16.02
Risposta

Vernon Singleton

LIFERAY STAFF

Punteggio: Expert

Messaggi: 278

Data di Iscrizione: 14 gennaio 2013

Messaggi recenti

Hi Guarav,

This is a known isses, which you can find reference to here:
http://code.google.com/p/primefaces/issues/detail?id=1109

We are targetting a fix for this issue this year.
It may require our contribution to the primefaces project.

Vernon Singleton
Gaurav Sharma
RE: Primefaces DataExporter not working
13 febbraio 2013 7.41
Risposta

Gaurav Sharma

Punteggio: Junior Member

Messaggi: 38

Data di Iscrizione: 1 novembre 2012

Messaggi recenti

Thanks Vernon.