1 Reply Latest reply: Mar 22, 2012 3:52 AM by Thomas Heute RSS

RichFaces Sample Portlet on GateIn 3.2 AS7 Preview

uwew Newbie

Hi there!

 

I downloaded the GateIn 3.2 AS7 Preview bundle and was able to start it without an error.

 

Next step was to download the Richfaces Portlet Example from Jboss Central. Deployment of this portlet works without an error, but when i try to access the portlet, i get the following error:

 

Caused by: javax.portlet.PortletException: Error process faces request

    at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:600)

    at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:486)

    at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328) [portlet-api-2.0.jar:]

    at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:457)

    at javax.portlet.GenericPortlet.render(GenericPortlet.java:233) [portlet-api-2.0.jar:]

    at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl$Invoker.doFilter(PortletContainerImpl.java:569) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.exoplatform.portal.application.ApplicationMonitoringFilter.doFilter(ApplicationMonitoringFilter.java:77) [exo.portal.webui.portal-3.2.0-GA.jar:3.2.0-GA]

    at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:159) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.impl.jsr168.api.FilterChainImpl.doFilter(FilterChainImpl.java:80) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.impl.jsr168.PortletContainerImpl.dispatch(PortletContainerImpl.java:506) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.container.ContainerPortletDispatcher.invoke(ContainerPortletDispatcher.java:42) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.EventPayloadInterceptor.invoke(EventPayloadInterceptor.java:197) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.RequestAttributeConversationInterceptor.invoke(RequestAttributeConversationInterceptor.java:119) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.CCPPInterceptor.invoke(CCPPInterceptor.java:65) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.bridge.BridgeInterceptor.invoke(BridgeInterceptor.java:49) [pc-bridge-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.SessionInvalidatorInterceptor.invoke(SessionInvalidatorInterceptor.java:55) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.access$001(ContextDispatcherInterceptor.java:49) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor$1.doCallback(ContextDispatcherInterceptor.java:123) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.wci.command.CommandDispatcher$CallbackCommand.execute(CommandDispatcher.java:82) [wci-wci-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source) [:1.7.0_03]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_03]

    at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_03]

    at org.gatein.wci.command.CommandServlet.doGet(CommandServlet.java:135) [wci-wci-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.10.Final.jar:]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.10.Final.jar:]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [jbossweb-7.0.10.Final.jar:]

    at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:639) [jbossweb-7.0.10.Final.jar:]

    at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:576) [jbossweb-7.0.10.Final.jar:]

    at org.gatein.wci.command.CommandServlet.include(CommandServlet.java:84) [wci-wci-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at org.gatein.wci.command.CommandDispatcher.include(CommandDispatcher.java:58) [wci-wci-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at org.gatein.wci.jboss.JB7ServletContainerContext.include(JB7ServletContainerContext.java:111) [wci-jboss7-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at org.gatein.wci.impl.DefaultServletContainer.include(DefaultServletContainer.java:271) [wci-wci-2.1.1-Beta03-AS7-Beta03.jar:2.1.1-Beta03-AS7-Beta03]

    at org.gatein.pc.portlet.impl.spi.AbstractServerContext.dispatch(AbstractServerContext.java:69) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.ContextDispatcherInterceptor.invoke(ContextDispatcherInterceptor.java:77) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.SecureTransportInterceptor.invoke(SecureTransportInterceptor.java:69) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.ValveInterceptor.invoke(ValveInterceptor.java:75) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.container.ContainerPortletInvoker.invoke(ContainerPortletInvoker.java:131) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.state.producer.ProducerPortletInvoker.invoke(ProducerPortletInvoker.java:249) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.federation.impl.FederatedPortletInvokerService.invoke(FederatedPortletInvokerService.java:163) [pc-federation-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.federation.impl.FederatingPortletInvokerService.invoke(FederatingPortletInvokerService.java:244) [pc-federation-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.PortletCustomizationInterceptor.invoke(PortletCustomizationInterceptor.java:76) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.aspects.ConsumerCacheInterceptor.invoke(ConsumerCacheInterceptor.java:165) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.gatein.pc.portlet.PortletInvokerInterceptor.invoke(PortletInvokerInterceptor.java:93) [pc-portlet-2.3.1-Beta02.jar:2.3.1-Beta02]

    at org.exoplatform.portal.webui.application.UIPortlet.invoke(UIPortlet.java:1045) [exo.portal.webui.portal-3.2.0-GA.jar:3.2.0-GA]

    at org.exoplatform.portal.webui.application.UIPortletLifecycle.processRender(UIPortletLifecycle.java:229) [exo.portal.webui.portal-3.2.0-GA.jar:3.2.0-GA]

    ... 163 more

Caused by: javax.portlet.faces.BridgeException: java.lang.NullPointerException

    at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:179)

    at org.jboss.portletbridge.richfaces.RichFacesStrategy.afterRenderRequest(RichFacesStrategy.java:260)

    at org.jboss.portletbridge.BridgeStrategyWrapper.afterRenderRequest(BridgeStrategyWrapper.java:105)

    at org.jboss.portletbridge.BridgeStrategyWrapper.afterRenderRequest(BridgeStrategyWrapper.java:105)

    at org.jboss.portletbridge.AjaxPortletBridge.doFacesRequest(AjaxPortletBridge.java:720)

    at javax.portlet.faces.GenericFacesPortlet.doFacesDispatch(GenericFacesPortlet.java:598)

    ... 223 more

Caused by: java.lang.NullPointerException

    at org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:401)

    at org.jboss.portletbridge.richfaces.RichFacesStrategy.finishResponse(RichFacesStrategy.java:162)

    ... 228 more

 

Is this example intended to work on GateIn 3.2?

 

Are there any speciel settings for the deployment to AS7?

 

Are there any other (working) RichFaces Portlet Examples for GateIn 3.2 available?

 

Regards,

Uwe