1 Reply Latest reply on Nov 17, 2009 10:26 AM by Phil Wilson

    FacesContext is null - org.ajax4jsf.context.AjaxContext.getC

    Phil Wilson Apprentice

      This error is filling my Tomcat logs. Application seems to be fine..

      Anyone know what this error is from?

      Thanks
      Phil


      Nov 16, 2009 7:36:00 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NullPointerException: FacesContext is null
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:126)
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:111)
       at org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:576)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:104)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
       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:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
       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:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
       at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
       at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
       at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
       at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
       at java.lang.Thread.run(Thread.java:619)
      Nov 16, 2009 7:36:29 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.NullPointerException: FacesContext is null
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:126)
       at org.ajax4jsf.context.AjaxContext.getCurrentInstance(AjaxContext.java:111)
       at org.ajax4jsf.component.AjaxViewRoot.getViewId(AjaxViewRoot.java:576)
       at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:104)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
       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:154)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
       at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:265)
       at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:376)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:503)
       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:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
       at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
       at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
       at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
       at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
       at java.lang.Thread.run(Thread.java:619)
      



        • 1. Re: FacesContext is null - org.ajax4jsf.context.AjaxContext.
          Phil Wilson Apprentice

          My system is using.

          jsf-api_1_2.jar = ${maven.repo}/jsf/mojarra-1.2_09-b01-BETA1/lib/jsf-api.jar

          jsf-impl_1_2.jar = ${maven.repo}/jsf/mojarra-1.2_09-b01-BETA1/lib/jsf-impl.jar

          RichFaceApi_3_2.jar = ${maven.repo}/richFacesAjax/jars/rich_3_2_2_snap/richfaces-api-3.2.2-June_25.jar

          RichFaceImpl_3_2.jar = ${maven.repo}/richFacesAjax/jars/rich_3_2_2_snap/richfaces-impl-3.2.2-June_25.jar

          RichFaceUi_3_2.jar = ${maven.repo}/richFacesAjax/jars/rich_3_2_2_snap/richfaces-ui-3.2.2-June_25.jar


          tomcat.home60=C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps