2 Replies Latest reply on Nov 8, 2013 3:53 AM by Immo Benjes

    NullPointer in Encoding ExtendedDataTableHeader

    Immo Benjes Newbie

      Hi

       

      one of our users reported a NullPointer when going to a page with a rich:extendedDataTable which used a tableState. We use RF 4.3.3.

       

      java.lang.NullPointerException

        at org.richfaces.renderkit.ExtendedDataTableRenderer.encodeHeaderOrFooterCell(ExtendedDataTableRenderer.java:254)

        at org.richfaces.renderkit.ExtendedDataTableRenderer.encodeHeaderOrFooter(ExtendedDataTableRenderer.java:369)

        at org.richfaces.renderkit.ExtendedDataTableRenderer.encodeHeader(ExtendedDataTableRenderer.java:487)

        at org.richfaces.renderkit.ExtendedDataTableRenderer.doEncodeChildren(ExtendedDataTableRenderer.java:745)

        at org.richfaces.renderkit.RendererBase.encodeChildren(RendererBase.java:157)

        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

        at org.richfaces.renderkit.RendererBase.renderChildren(RendererBase.java:276)

        at org.richfaces.renderkit.html.AjaxOutputPanelRenderer.encodeChildren(AjaxOutputPanelRenderer.java:57)

        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)

        at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)

        at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:851)

        at org.primefaces.renderkit.CoreRenderer.renderChild(CoreRenderer.java:70)

        at org.primefaces.renderkit.CoreRenderer.renderChildren(CoreRenderer.java:57)

        at org.primefaces.component.layout.LayoutUnitRenderer.encodeEnd(LayoutUnitRenderer.java:51)

        at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:881)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)

        at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:439)

        at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:124)

        at org.jboss.seam.jsf.SeamViewHandler.renderView(SeamViewHandler.java:188)

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

        at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:120)

        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

        at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)

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

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

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

        at org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:98)

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

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

        at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

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

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

        at com.locuslive.odyssey.filter.IE9Filter.doFilter(IE9Filter.java:114)

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

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

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

        at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)

        at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73)

        at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

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

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

        at com.locuslive.odyssey.filter.UTF8Filter.doFilter(UTF8Filter.java:21)

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

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

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

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

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:389)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

        at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:169)

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

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

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

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

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

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

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

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

       

      After I've reset the table state the page rendered again for that user.

      I've tried the same table state in my local system but that didn't cause any problems

      {"columnsOrderState":["selected","action","scStatus","frNo","j_idt596","shipper","orig","loadP","dischargeP","dest","dateEffective","dateExpiry","references","desc","suba","createdByUser","createdDate","dateLastUpdated"],"columnsWidthState":{"loadP":"120px","dischargeP":"135px","desc":"120px","frNo":"54.337493896484375px","suba":"120px","dateEffective":"120px","shipper":"201.5374755859375px","j_idt596":"44.137481689453125px","dateExpiry":"120px","scStatus":"70px","orig":"42.125px","createdByUser":"200px","references":"100px","selected":"27px","dest":"120px","dateLastUpdated":"100px","action":"71px","scFreightContractId":"50px","createdDate":"100px"},"columnsFilterState":{"loadP":null,"dischargeP":null,"desc":null,"frNo":null,"suba":null,"dateEffective":null,"shipper":null,"j_idt596":null,"dateExpiry":null,"scStatus":null,"orig":null,"createdByUser":null,"references":null,"selected":null,"dest":null,"dateLastUpdated":null,"action":null,"scFreightContractId":null,"createdDate":null}}