3 Replies Latest reply on Mar 17, 2011 4:13 AM by Nick Belaevski

    upgrade to cr1 returns Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException

    nimo stephan Master

      I upgraded to rf 4cr1 and now this error occurs when page is first loaded:

       

       

      09:31:16,904 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/test].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: java.lang.NullPointerException

      at com.sun.faces.lifecycle.RestoreViewPhase.notifyAfter(RestoreViewPhase.java:288) [:2.0.3-]

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

      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:114) [:2.0.3-]

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:308) [:2.0.3-]

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

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

      at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.1.0-SNAPSHOT]

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:]

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

      at org.apache.catalina.core.StandardWrapperValve.__invoke(StandardWrapperValve.java:275) [:]

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

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

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0-SNAPSHOT]

      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]

      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0-SNAPSHOT]

      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0-SNAPSHOT]

      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:158) [:6.1.0-SNAPSHOT]

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

      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0-SNAPSHOT]

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

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

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

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

      at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

       

       

       

       

       

       

       

      What should I do? However, the site is rendered normally, I guess, but the stacktrace occurs everytime the page is loaded.

       

       

       

      In my pom, I have these jsf-api included:

       

      <dependency>

      <groupId>com.sun.faces</groupId>

      <artifactId>jsf-api</artifactId>

      <version>2.0.2</version>

      <scope>provided</scope>

      </dependency>

       

      <dependency>

      <groupId>com.sun.faces</groupId>

      <artifactId>jsf-impl</artifactId>

      <version>2.0.2</version>

      <scope>provided</scope>

      </dependency