Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Icesoft by kdean, 1 year ago
Must first call setPortletContext(PortletContext)
org.portletfaces.bridge.BridgeException: Must first call setPortletContext(PortletContext)	at org.portletfaces.bridge.BridgeFactoryFinder.getInstance(BridgeFactoryFinder.java:105)	at org.portletfaces.bridge.context.ExternalContextImpl.preInitializeObjects(ExternalContextImpl.java:465)	at org.portletfaces.bridge.context.ExternalContextImpl.(ExternalContextImpl.java:147)	at org.portletfaces.bridge.context.ExternalContextFactoryImpl.getExternalContext(ExternalContextFactoryImpl.java:52)	at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)	at org.icefaces.impl.context.IceFacesContextFactory.getFacesContext(IceFacesContextFactory.java:65)	at com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:121)	at com.liferay.faces.bridge.BridgePhaseBaseImpl.getFacesContext(BridgePhaseBaseImpl.java:350)	at com.liferay.faces.bridge.BridgePhaseBaseImpl.init(BridgePhaseBaseImpl.java:187)	at com.liferay.faces.bridge.BridgePhaseCompatImpl.init(BridgePhaseCompatImpl.java:46)	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:119)	at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:85)	at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:100)	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)	at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)	at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:100)	at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:64)	at com.liferay.portal.kernel.servlet.PortletServlet.service(PortletServlet.java:111)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)	at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)	at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1174)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:53)	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)	at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)	at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)	at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:496)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)	at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)