1 Reply Latest reply on Sep 29, 2011 7:13 AM by bharathic

    java.lang.NullPointerException at com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter(PartialViewContextImpl.java:441)

    devisambandhan

      Hi all,

       

               I did one sample application using  Seam 2.0+JSF 2.1.2+Richfaces 4.x . While giving ajax related request using a4j:commandButton i am getting the Java.lang.NullPointerException with following stack trace.

       

      can any one tell me why its happening:

       

       

      java.lang.NullPointerException

              at com.sun.faces.context.PartialViewContextImpl.createPartialResponseWriter(PartialViewContextImpl.jav

      a:441)

              at com.sun.faces.context.PartialViewContextImpl.access$300(PartialViewContextImpl.java:71)

              at com.sun.faces.context.PartialViewContextImpl$DelayedInitPartialResponseWriter.getWrapped(PartialVie

      wContextImpl.java:582)

              at javax.faces.context.PartialResponseWriter.startDocument(PartialResponseWriter.java:115)

              at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.

      java:199)

              at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:123)

              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)

              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)

              at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40)

              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.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

              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:175)

              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:263)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:662)

       

       

      also i get the following WARNINGS while starting the tomcat server,

       

      WARNING: JSF1029:  Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.

      xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.jboss.seam.ui.handler.CommandButtonParamete

      rComponentHandler' depends on a legacy facelet class.  The facelet artifact represented by this class will not

      be registered.

      Sep 13, 2011 2:16:13 PM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent

      WARNING: JSF1029:  Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.

      xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.jboss.seam.ui.handler.CommandButtonParamete

      rComponentHandler' depends on a legacy facelet class.  The facelet artifact represented by this class will not

      be registered.

      Sep 13, 2011 2:16:13 PM com.sun.faces.config.processor.FaceletTaglibConfigProcessor processComponent

      WARNING: JSF1029:  Application is versioned at 2.0 (either explicitly by the version of /WEB-INF/faces-config.

      xml or the lack of a /WEB-INF/faces-confg.xml), however class 'org.jboss.seam.ui.handler.DecorateHandler' depe

      nds on a legacy facelet class.  The facelet artifact represented by this class will not be registered.

      Sep 13, 2011 2:16:15 PM org.richfaces.javascript.ClientServiceConfigParser parse

      WARNING: Found JavaScript function definition for class org.hibernate.validator.constraints.NotEmpty, but that

      class is not presented