6 Replies Latest reply on Jun 3, 2009 9:45 PM by Nick Belaevski

    NPE after upgrade to Richfaces 3.3.1

    Michael Litherland Newbie

      Hi,

      I'm running on JBoss 4.2.2.GA and recently upgraded from RF 3.3.0 to 3.3.1 and I'm getting unexpected exceptions:



      java.lang.NullPointerException
       org.jboss.web.jsf.integration.config.Log4JConversionFilter.isConfigStartupMessage(Log4JConversionFilter.java:60)
       org.jboss.web.jsf.integration.config.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:73)


      it seems the LogRecord is null or its .getMessage() method is returning null.

      This is sort of a big deal, as I'm trying to upgrade to correct a production problem on IE8 (hopefully it'll fix it, modalPanel isn't behaving consistently), and the upgrade itself is giving me an awfully hard time. I did make sure that the requisite libraries were updated in the project.

      Any idea how to fix this? Thanks for the help,
      Mike

        • 1. Re: NPE after upgrade to Richfaces 3.3.1
          Michael Litherland Newbie

          I forgot to mention... this seems to happen when clicking on rich:menuItem elements.

          • 2. Re: NPE after upgrade to Richfaces 3.3.1
            Nick Belaevski Master

            Hi Mike,

            Can you please post full stack trace?

            • 3. Re: NPE after upgrade to Richfaces 3.3.1
              Michael Litherland Newbie

              I think this is all of it...

              3:24:06,656 WARN [lifecycle] executePhase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@4792618d) threw
               exception
              java.lang.NullPointerException
               at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isConfigStartupMessage(Log4JConversionFilter.java:60)
               at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:73)
               at java.util.logging.Logger.log(Logger.java:444)
               at java.util.logging.Logger.doLog(Logger.java:480)
               at java.util.logging.Logger.log(Logger.java:569)
               at com.sun.faces.renderkit.ResponseStateManagerImpl.getTreeStructureToRestore(ResponseStateManagerImpl.java:184)
               at javax.faces.render.ResponseStateManager.getState(ResponseStateManager.java:215)
               at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:419)
               at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
               at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
               at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
               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.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
               at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
               at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
               at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               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:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
               at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
               at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
               at java.lang.Thread.run(Thread.java:619)
              13:24:06,658 ERROR [BaseXMLFilter] Exception in the filter chain
              javax.servlet.ServletException
               at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
               at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
               at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
               at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               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:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
               at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
               at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
               at java.lang.Thread.run(Thread.java:619)
              Caused by: java.lang.NullPointerException
               at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isConfigStartupMessage(Log4JConversionFilte
              r.java:60) at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:73)
               at java.util.logging.Logger.log(Logger.java:444)
               at java.util.logging.Logger.doLog(Logger.java:480)
               at java.util.logging.Logger.log(Logger.java:569)
               at com.sun.faces.renderkit.ResponseStateManagerImpl.getTreeStructureToRestore(ResponseStateManagerImpl.ja
              va:184)
               at javax.faces.render.ResponseStateManager.getState(ResponseStateManager.java:215)
               at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:419)
               at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
               at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
               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)
              ...
              13:24:06,659 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
              java.lang.NullPointerException
               at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isConfigStartupMessage(Log4JConversionFilter.java:60)
               at org.jboss.web.jsf.integration.config.Log4JConversionFilter.isLoggable(Log4JConversionFilter.java:73)
               at java.util.logging.Logger.log(Logger.java:444)
               at java.util.logging.Logger.doLog(Logger.java:480)
               at java.util.logging.Logger.log(Logger.java:569)
               at com.sun.faces.renderkit.ResponseStateManagerImpl.getTreeStructureToRestore(ResponseStateManagerImpl.java:184)
               at javax.faces.render.ResponseStateManager.getState(ResponseStateManager.java:215)
               at org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:419)
               at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:290)
               at org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:107)
               at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:141)
               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.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
               at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
               at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
               at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               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:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
               at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)
               at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:366)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
               at java.lang.Thread.run(Thread.java:619)
              


              • 5. Re: NPE after upgrade to Richfaces 3.3.1
                Michael Litherland Newbie

                I posted in that thread. It doesn't really contain an answer to the subject. To me saying "don't use target="" because it's broken" doesn't really help.

                Thanks,
                Mike

                • 6. Re: NPE after upgrade to Richfaces 3.3.1
                  Nick Belaevski Master

                  Mike,

                  Check JIRA issue for possible workaround.