5 Replies Latest reply on Jan 30, 2009 7:44 AM by Ilya Shaikovsky

    NullPoinet exception in UITabPanel

    kanwar sangha Newbie

      java.lang.NullPointerException
      at org.richfaces.component.UITabPanel.queueEvent(UITabPanel.java:265)
      at javax.faces.event.FacesEvent.queue(FacesEvent.java:119)
      at org.richfaces.renderkit.TabPanelRendererBase.doDecode(TabPanelRendererBase.java:104)
      at org.ajax4jsf.renderkit.RendererBase.decode(RendererBase.java:76)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:764)
      at javax.faces.component.UIInput.decode(UIInput.java:719)
      at org.richfaces.component.UISwitchablePanel.processDecodes(UISwitchablePanel.java:173)
      at org.richfaces.component.UITabPanel.processDecodes(UITabPanel.java:154)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:203)
      at org.ajax4jsf.component.AjaxViewRoot$1.invokeContextCallback(AjaxViewRoot.java:392)
      at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:238)
      at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:101)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
      at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
      at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:90)
      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.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:522)
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at com.mavenir.sps.SPSWebFilter.doFilter(SPSWebFilter.java:50)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
      at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
      at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.process(SSLReadTask.java:440)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLReadTask.doTask(SSLReadTask.java:228)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      |#]

        • 1. Re: NullPoinet exception in UITabPanel
          Nick Belaevski Master

          Hello,

          Can you please provide some more information:

          1. RF version
          2. How to reproduce?

          Thank you in advance!

          • 2. Re: NullPoinet exception in UITabPanel
            kanwar sangha Newbie

            RF Version - 3.2.0 SR1

            Is not reproducible always.But once it happens, the system is filled with these errors and we have to restart the server...

            • 3. Re: NullPoinet exception in UITabPanel
              Ilya Shaikovsky Master

              please try to check with 3.3.0 GA. RF passed through stabilization development between the 3.2.0 and 3.3.0.

              if not helps which app server you using? also please show you application web.xml. And provide information about any third parties used.

              • 4. Re: NullPoinet exception in UITabPanel
                kanwar sangha Newbie

                appserver - glassfish

                web.xml -

                <?xml version="1.0" encoding="UTF-8"?>
                <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                <context-param>
                <param-name>org.richfaces.SKIN</param-name>
                <param-value>blueSky</param-value>
                </context-param>
                <!-- JSF and Facelets -->
                <context-param>
                <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                <param-value>.xhtml</param-value>
                </context-param>
                <context-param>
                <param-name>facelets.DEVELOPMENT</param-name>
                <param-value>false</param-value>
                </context-param>
                <!-- Ajax4jsf -->

                <display-name>Ajax4jsf Filter</display-name>
                <filter-name>ajax4jsf</filter-name>
                <filter-class>org.ajax4jsf.Filter</filter-class>
                <init-param>
                <param-name>createTempFiles</param-name>
                <param-value>false</param-value>
                </init-param>


                <filter-name>Management Filter</filter-name>
                <filter-class>com.test.SPSWebFilter</filter-class>


                <filter-name>Seam Filter</filter-name>
                <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class>

                <filter-mapping>
                <filter-name>ajax4jsf</filter-name>
                <url-pattern>*.seam</url-pattern>
                </filter-mapping>
                <filter-mapping>
                <filter-name>Management Filter</filter-name>
                <url-pattern>/*</url-pattern>
                </filter-mapping>
                <filter-mapping>
                <filter-name>Seam Filter</filter-name>
                <url-pattern>/*</url-pattern>
                </filter-mapping>
                <!-- Seam -->

                <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>


                <servlet-name>Seam Resource Servlet</servlet-name>
                <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>

                <!-- Faces Servlet -->

                <servlet-name>Faces Servlet</servlet-name>
                <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                <load-on-startup>1</load-on-startup>


                initailzes the application
                <display-name>InitializerServlet</display-name>
                <servlet-name>InitializerServlet</servlet-name>
                <servlet-class>com.initializer.InitializerLoader</servlet-class>
                <load-on-startup>1</load-on-startup>

                <servlet-mapping>
                <servlet-name>Seam Resource Servlet</servlet-name>
                <url-pattern>/seam/resource/*</url-pattern>
                </servlet-mapping>
                <servlet-mapping>
                <servlet-name>Faces Servlet</servlet-name>
                <url-pattern>*.seam</url-pattern>
                </servlet-mapping>
                <session-config>
                <session-timeout>10</session-timeout>
                </session-config>
                <login-config>
                <auth-method>BASIC</auth-method>
                </login-config>
                <!-- SPS EJB3 names -->

                <ejb-local-ref>
                <ejb-ref-name>sps/EjbSynchronizations/local</ejb-ref-name>
                <ejb-ref-type>Session</ejb-ref-type>
                <local-home/>
                org.jboss.seam.transaction.LocalEjbSynchronizations
                <ejb-link>EjbSynchronizations</ejb-link>
                </ejb-local-ref>
                </web-app>




                third party - jboss seam , hibernate

                • 5. Re: NullPoinet exception in UITabPanel
                  Ilya Shaikovsky Master

                  If you defined seam filter - no need to define Rich Faces one. try to remove a4j filter and put Seam filter and its mapping first in web.xml

                  Also please try to define your filters mappings to faces servlet by name instead of using url pattern for all of them.