2 Replies Latest reply on Aug 3, 2014 7:20 PM by Brett Williamson

    RichFaces 4.5.0.Alpha3 ExtendedPartialViewContext

    Brett Williamson Newbie

      .Hello,

      I am trying to move from Richfaces 4.3.0 to test Richface 4.5 and my application is falling over with the simplest page.  Please help.  My environment is as follows:

      Java7

      Tomcat6

      RichFaces 4.5.0.Alpha3

      Myfaces 2.1.15

       

      My Simple page code:

       

       

      <ui:composition
      
       template="/farmconnect/components/layout/layoutSimple.xhtml">
      
       <ui:define name="content">
      
       <script type="text/javascript">  
      
        function realFunction () {
      
       alert("real function");
        
        </script>
      
       <!-- Navigation bar rendered for non waterportal fc installation -->
      
       <h:form>
      
       <a4j:region>
      
       <a4j:commandButton id="fullPageRefreshButton_inputButton3"
      
       rendered="true" ajaxSingle="false" value="test"
      
       oncomplete="realFunction()">
      
       </a4j:commandButton>
      
       </a4j:region>
      
       </h:form>
      
       </ui:define>
      
      </ui:composition>
      
      
      
      
      
      
      
      
      
      

       

       

      The Exception thrown on server side:

       

       

      java.lang.NullPointerException

       

      at org.richfaces.context.ExtendedPartialViewContext.detectRenderAll(ExtendedPartialViewContext.java:341)

       

      at org.richfaces.context.ExtendedPartialViewContext.isRenderAll(ExtendedPartialViewContext.java:329)

       

      at javax.faces.context.PartialViewContextWrapper.isRenderAll(PartialViewContextWrapper.java:82)

       

      at javax.faces.context.PartialViewContextWrapper.isRenderAll(PartialViewContextWrapper.java:82)

       

      at org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartialRendering(PartialViewContextImpl.java:462)

       

      at org.apache.myfaces.context.servlet.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:405)

       

      at org.richfaces.context.ExtendedPartialViewContext.processPartial(ExtendedPartialViewContext.java:255)

       

      at javax.faces.context.PartialViewContextWrapper.processPartial(PartialViewContextWrapper.java:88)

       

      at org.primefaces.context.PrimePartialViewContext.processPartial(PrimePartialViewContext.java:57)

       

      at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:421)

       

      at javax.faces.component.UIComponentBase.encodeAll(UIComponentBase.java:532)

       

      at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:1981)

       

      at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:305)

       

      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)

       

      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)

       

      at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:169)

       

      at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)

       

      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:116)

       

      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:241)

       

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:199)

       

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

       

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

       

      at org.omnifaces.filter.FacesExceptionFilter.doFilter(FacesExceptionFilter.java:56)

       

      at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:75)

       

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

       

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

       

      at rubiconx.farmconnect.authenticator.FarmconnectAuthenticateFilter.doFilter(FarmconnectAuthenticateFilter.java:159)

       

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

       

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

       

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

       

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

       

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

       

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

       

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

       

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

       

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

       

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

       

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

       

      at java.lang.Thread.run(Thread.java:745)




      Thanks for any feedback.

      Brett