1 2 Previous Next 19 Replies Latest reply on Aug 23, 2012 3:10 AM by ba3999 Go to original post
      • 15. Re: Richfaces generates exceptions while navigating to pages
        nbelaevski

        Hi,

         

        4.0.0.Final should be including the fix as well... can you please provide more information: JSF version, page code? Small runnable example will be an ideal source of necessary information.

        • 16. Re: Richfaces generates exceptions while navigating to pages
          dcpatton

          Nick,

           

          Below is the full stack trace. I will work to put together a simple page to reproduce it. This is JBoss AS 6.0.0.Final, RichFaces 4.0.0.Final, JSF[Mojarra-2.0] Thanks.

           

          06:05:15,193 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException

                    at com.sun.faces.application.view.StateManagementStrategyImpl$4.invokeContextCallback(StateManagementStrategyImpl.java:289) [:2.0.1-FCS]

                    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1250) [:2.0.1-FCS]

                    at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672) [:2.0.1-FCS]

                    at com.sun.faces.application.view.StateManagementStrategyImpl.restoreView(StateManagementStrategyImpl.java:284) [:2.0.1-FCS]

                    at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:177) [:2.0.1-FCS]

                    at com.sun.faces.application.view.ViewHandlingStrategy.restoreView(ViewHandlingStrategy.java:131) [:2.0.1-FCS]

                    at com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:429) [:2.0.1-FCS]

                    at com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:143) [:2.0.1-FCS]

                    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:288) [:2.0.1-FCS]

                    at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:199) [:2.0.1-FCS]

                    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [:2.0.1-FCS]

                    at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:110) [:2.0.1-FCS]

                    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [:2.0.1-FCS]

                    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310) [:2.0.1-FCS]

                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]

                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]

                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]

                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]

                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]

                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]

                    at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]

                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]

                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]

                    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]

                    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]

                    at java.lang.Thread.run(Thread.java:680) [:1.6.0_26]

          • 17. Re: Richfaces generates exceptions while navigating to pages
            nbelaevski

            Looks like you are using Mojarra 2.0.1. Please try a later version.

            • 18. Re: Richfaces generates exceptions while navigating to pages
              dcpatton

              Nick.

               

              Thanks. I upgraded to Mojarra 2.0.6 and that fixed the issue.

               

              Really nice work!

              • 19. Re: Richfaces generates exceptions while navigating to pages
                ba3999

                I was having  the same error message like you: NullPointerException...I resolve the problem delete components from code,and see from were is comming the tricky error.For me was a <rich:message>,he broke my navigation on the pages.Probably you resolve the problem for the moment,but for all who have the same error,see the first if you have a rich:message(or rich:messages) and erase it.Find an alternative for this.

                All the best,

                Alex

                1 2 Previous Next