Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
S P
while forwarding response page got error in jsf2,liferay faces bridge
September 21, 2012 10:04 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi All,
I have tried demo code using jsf2-ipc-events-bookings-portlet-3.1.0-ga1-sources,its very good ,working fine in weblogic10.3.5 ,similarly i have written sample code ,everything is working fine while forwading the page (from faces-config.xml) to jsf2 page ,i am getting following errors.
Please give me some ideas how to resolve this.
Here are the depenedencies jars i am using:
liferay-faces-bridge-api-3.1.0-ga1.jar
liferay-faces-bridge-impl-3.1.0-ga1.jar
jsf-api-2.1.3-b02.jar
jsf-impl-2.1.3-b02.jar
liferay-faces-util-3.1.0-ga1.jar
jboss-el-2.0.0.GA.jar
in weblogic10.3.5 app server.
  1
  2java.lang.NullPointerException
  3    at com.liferay.faces.bridge.renderkit.html_basic.HeadResponseWriterLiferayImpl.endElement(HeadResponseWriterLiferayImpl.java:70)
  4    at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:112)
  5    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
  6    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
  7    at com.liferay.faces.bridge.renderkit.html_basic.HeadRendererBridgeImpl.encodeBegin(HeadRendererBridgeImpl.java:222)
  8    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
  9    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
 10    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
 11    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
 12    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
 13    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
 14    at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:35)
 15    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
 16    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
 17    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
 18    at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
 19    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:227)
 20    at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
 21    at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:100)
 22    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
 23    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 24    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
 25    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
 26    at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
 27    at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
 28    at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
 29    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 30    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 31    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 32    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 33    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 34    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 35    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 36    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 37    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 38    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
 39    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 40    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 41    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 42    at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
 43    at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
 44    at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
 45    at jsp_servlet._html._portal.__render_portlet._jspService(__render_portlet.java:1255)
 46    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
 47    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 48    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 49    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 50    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 51    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 52    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 53    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 54    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 55    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 56    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 57    at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4735)
 58    at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1455)
 59    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:213)
 60    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:148)
 61    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:309)
 62    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
 63    at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:106)
 64    at jsp_servlet._html._portal._layout._view.__portlet._jspService(__portlet.java:528)
 65    at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
 66    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 67    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 68    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 69    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 70    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 71    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 72    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
 73    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 74    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
 75    at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
 76    at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:412)
 77    at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:680)
 78    at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
 79    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 80    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 81    at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
 82    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 83    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 84    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 85    at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
 86    at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
 87    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 88    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
 89    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
 90    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
 91    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
 92    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
 93    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 94    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
 95    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
 96    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
 97    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
 98    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
 99    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
100    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
101    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
102    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
103    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
104    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
105    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
106    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
107    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
108    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
109    at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
110    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
111    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
112    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
113    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
114    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
115    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
116    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
117    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
118    at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
119    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
120    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
121    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
122    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
123    at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
124    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
125    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
126    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
127    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
128    at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
129    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
130    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
131    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
132    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:113)
133    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
134    at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
135    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
136    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
137    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
138    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
139    at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
140    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
141    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
142    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
143    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
144    at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
145    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
146    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
147    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
148    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
149    at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
150    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
151    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
152    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
153    at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
154    at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
155    at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
156    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
157    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
158    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
159    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
160    at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
161    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
162    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
163    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
164    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
165    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
166    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
167    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
168    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
169    at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
170    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
171    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
172    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
173    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
174    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
175    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
176    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
177    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
178    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
179    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

Appriciate your help.
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 21, 2012 10:23 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

When you try the jsf2-ipc-events-customers-portlet along with the jsf2-ipc-events-bookings-portlet, do you run into the same problem? Or is the problem only in the sample code that you have written?

Thanks,

Neil
S P
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 24, 2012 7:05 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Thanks for the reply.
I have written Custom Portlet as per the template on jsf2-ipc-events-customers-portlet.war file.
Everything looks good,i have fixed almost all the errors but finally when its forwarding to a page after sucessfull rendering ,i got the following error.

My ManageBean is in @RequestScope,Please let me know if any additional configuration required.

 1
 2
 3SEVERE: Error Rendering View[/html/portlet/liferay-test-project/custom-portletViewMode.xhtml]
 4java.lang.NullPointerException
 5        at com.liferay.faces.bridge.renderkit.html_basic.HeadResponseWriterLiferayImpl.endElement(HeadResponseWriterLiferayImpl.java:70)
 6        at com.sun.faces.renderkit.html_basic.StylesheetRenderer.encodeEnd(StylesheetRenderer.java:112)
 7        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
 8        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
 9        at com.liferay.faces.bridge.renderkit.html_basic.HeadRendererBridgeImpl.encodeBegin(HeadRendererBridgeImpl.java:222)
10        at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
11        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
12        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
13        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:402)
14        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
15        at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
16        at com.liferay.faces.bridge.application.ViewHandlerCompatImpl.renderView(ViewHandlerCompatImpl.java:35)
17        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
18        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
19        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
20        at com.liferay.faces.bridge.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:45)
21        at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:227)
22        at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)
23        at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:100)
24        at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
25        at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
26        at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
27        at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
28        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)
29        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)
30        at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:93)
31        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
32        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
33        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
34        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
35        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
36        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
37        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
38        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
39        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
40        at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
41        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
42        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
43        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
44        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
45        at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
46        at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
47        at jsp_servlet._html._portal.__render_portlet._jspService(__render_portlet.java:1255)
48        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
49        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
50        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
51        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
52        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
53        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
54        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
55        at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
56        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
57        at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
58        at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:444)
59        at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4735)
60        at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1455)
61        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:213)
62        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:148)
63        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:309)
64        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
65        at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:106)
66        at jsp_servlet._html._portal._layout._view.__portlet._jspService(__portlet.java:528)
67        at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)


Thanks in Advance.
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 24, 2012 9:14 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

When you get a chance, please download and try the WARs for the jsf2-ipc-events-customers-portlet and the jsf2-ipc-events-bookings-portlet and let me know if the problem happens there too.
S P
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 26, 2012 4:50 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
I have downloaded
http://central.maven.org/maven2/com/liferay/faces/demos/jsf2-ipc-pub-render-params-portlet/3.1.0-ga1/jsf2-ipc-pub-render-params-portlet-3.1.0-ga1-sources.war
and deployed into weblogic 10.3.5,its working fine.
i just want add additional field call cancel which should redirect to another page,which i have specified in faces-config.xml.
Could you please suggest if this is the correct or do i need to configure different way for liferay-bridge.

 1
 2in the booking.xhtml i have added
 3<h:commandButton action="#{bookingsBackingBean.cancel}" value="#{i18n['cancel']}" />
 4in BookingsBackingBean.java i have added following method
 5public String  cancel() {
 6        logger.debug("Submitting booking changes.");
 7        return "test2";
 8    }
 9
10faces-config.xml
11<?xml version="1.0" encoding="UTF-8"?>
12<faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
14    xmlns:bridge="http://www.liferay.com/xml/ns/liferay-faces-bridge-2.0-extension" version="2.0">
15
16    <application>
17        <application-extension>
18            <bridge:public-parameter-mappings>
19                <bridge:public-parameter-mapping>
20                    <parameter>customersPortlet:selectedCustomerId</parameter>
21                    <model-el>#{customersModelBean.selectedCustomerId}</model-el>
22                </bridge:public-parameter-mapping>
23                <bridge:public-parameter-mapping>
24                    <parameter>bookingsPortlet:selectedCustomerId</parameter>
25                    <model-el>#{bookingsModelBean.selectedCustomerId}</model-el>
26                </bridge:public-parameter-mapping>
27            </bridge:public-parameter-mappings>
28        </application-extension>
29        <message-bundle>i18nFaces</message-bundle>
30        <resource-bundle>
31            <base-name>i18n</base-name>
32            <var>i18n</var>
33        </resource-bundle>
34    </application>
35   
36    <navigation-rule>
37   <from-view-id>/views/bookings.xhtml</from-view-id>
38   <navigation-case>
39       <from-outcome>test1</from-outcome>
40       <to-view-id>/views/test1.xhtml</to-view-id>
41   </navigation-case>
42   <navigation-case>
43       <from-outcome>test2</from-outcome>
44       <to-view-id>/views/test2.xhtml</to-view-id>
45   </navigation-case>
46</navigation-rule>
47   
48   
49    <lifecycle>
50        <phase-listener>com.liferay.faces.util.lifecycle.DebugPhaseListener</phase-listener>
51    </lifecycle>
52</faces-config>


Please suggest as i need to fix a urgent issue.

Thanks in Advance.
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 26, 2012 8:11 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

Hi SP,

I'm a little confused by your last post on two points:

1) The link that you specified was for a "sources" WAR, which really isn't a WAR -- it's more like a ZIP that simply contains some Java source code. In other words, it's not a binary portlet WAR that you can deploy.

2) The link that you specified was for Portlet 2.0 IPC Public Render Params, but your original question was regarding Portlet 2.0 Events.

Which type of IPC are you working with?

Thanks,

Neil
S P
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 26, 2012 8:59 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
I am sorry,i have tried with events then as i thought i can manage by render mechanism so i tried other sample war source code zip and locally developed maven pom file and created war file and deployed into server.

So i am working with now IPC public render params by taking the example from liferay,its running fine,i am trying to add additonal functionlity to forward.

Please suggest.

Thanks again for your reply.
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
September 27, 2012 11:36 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

I tried your changes locally and noticed that I had to add immediate="true" to the cancel button in order to make it work:
1<h:commandButton action="#{bookingsBackingBean.cancel}" immediate="true" value="#{i18n['cancel']}" />
S P
RE: while forwarding response page got error in jsf2,liferay faces bridge
October 5, 2012 2:00 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Thanks for the reply.
yes i have tried same line but its not forwarding.
<h:commandButton action="#{bookingsBackingBean.cancel}" immediate="true" value="#{i18n['cancel']}" />
emoticon
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
October 5, 2012 7:52 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

Not sure what to tell you -- I started with the jsf2-ipc-pub-render-params-portlet and added the code you mentioned above. All I had to do was add immediate="true" and it started working.
S P
RE: while forwarding response page got error in jsf2,liferay faces bridge
October 15, 2012 1:29 AM
Answer

S P

Rank: Junior Member

Posts: 65

Join Date: August 6, 2012

Recent Posts

Hi Neil,
Sorry for my late reply.
I am able to get work around the solution by using h:command instead of p:command

It works fine.

Thanks a lot for your help.
Neil Griffin
RE: while forwarding response page got error in jsf2,liferay faces bridge
October 15, 2012 12:55 PM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2352

Join Date: July 26, 2005

Recent Posts

OK great, I'm very glad to hear that it's working. emoticon