0 Replies Latest reply on May 31, 2013 9:32 AM by Md Waseem Md

    <rich:tab> switching issue with <h:inputText> in Richfaces4.3.1,JBOSS6

    Md Waseem Md Newbie

      Hi All,

       

      We are facing below issue during our migration of Richfaces3.3.3 to Richfaces4.3.1.(Tech stack:Jboss6)

       

      When we are swiching from tab3(which is having <h:inputText> inside a <rich:dataTable> with more than 80 rows) to tab1/tab2 with switchtype ajax ,below error we are getting

      Note: If no of rows are less than 80 then fucntionality is working fine

               If we remove one <rich:column>  from <rich:dataTable> in 3rd tab then also workign fine

       

      Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException 

              at com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter(PartialViewContextImpl.java:441) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.context.PartialViewContextImpl.access$300(PartialViewContextImpl.java:71) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.context.PartialViewContextImpl$DelayedInitPartialResponseWriter.getWrapped(PartialViewContextImpl.java:582) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at javax.faces.context.PartialResponseWriter.startDocument(PartialResponseWriter.java:115) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]

              at org.richfaces.context.PartialResponseWriterWrapper.startDocument(PartialResponseWriterWrapper.java:32) [richfaces-core-impl-4.3.1.Final.jar:4.3.1.Final]

              at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:199) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:123) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.1.7-redhat-1.jar:2.1.7-redhat-1]

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593) [jboss-jsf-api_2.1_spec-2.0.2.Final-redhat-1.jar:2.0.2.Final-redhat-1]

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

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

              at com.geenergy.gees.crr.filter.GZIPFilter.doFilter(GZIPFilter.java:36) [classes:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1.jar:]

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

              at com.geenergy.gees.crr.filter.WebCRTLoginFilter.doFilter(WebCRTLoginFilter.java:99) [classes:]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.16.Final-redhat-1.jar:]

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

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.2.Final-redhat-1.jar:7.1.2.Final-redhat-1]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.16.Final-redhat-1.jar:]

              at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_01]

       

      Here is our xhtml code :

       

      <html xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:h="http://java.sun.com/jsf/html"

      xmlns:a4j="http://richfaces.org/a4j"

      xmlns:c="http://java.sun.com/jstl/core"

      xmlns:rich="http://richfaces.org/rich">

      <h:head></h:head>

      <h:body>

      <ui:composition template="template.xhtml">

      <ui:define name="content">

        <h:form id="tabForm">

         <rich:tabPanel id="newTab" switchType="ajax" itemChangeListener="#{myBean.tabChanged}"

          style="width:98%;border-width: 0px 0px 0px 0px;" activeItem="#{compBean.selectedTab}">

          <rich:tab id="tab1" header="tab1">

           My Tab1

          </rich:tab>

          <rich:tab id="tab2" header="tab2">

           My Tab2

          </rich:tab>

          <rich:tab id="tab3" header="tab3">

           <rich:dataTable id="enterSerDataPane" style= "width:100%;" value="#{compBean.serDataList}">

            <rich:column >

             <h:inputText id="del1"></h:inputText>

            </rich:column>

            <rich:column >

             <h:inputText id="del2"></h:inputText>

            </rich:column>

            <rich:column >

             <h:inputText id="del3"></h:inputText>

            </rich:column>

            <rich:column >

             <h:inputText id="del4"></h:inputText>

            </rich:column>

            <rich:column >

             <h:inputText id="del5"></h:inputText>

            </rich:column>

            <rich:column >

             <h:inputText id="del6"></h:inputText>

            </rich:column> 

            </rich:dataTable>

           </rich:tab>

         </rich:tabPanel>

        </h:form>

      </ui:define>

      </ui:composition>

      </h:body>

      </html>