1 Reply Latest reply on Sep 29, 2011 10:21 AM by Brendan Healey

    Problem with Richfaces4.x and Jsf2.1.2

    Devi S Newbie

      Hi all ,

                

                  I am getting following  error while using jsf2.0 with richfaces4.x. Any one tell me why this error occuring. I am getting this error while trying to select one item from "h:selectOneMenu" . This is my part of code

               

              

      <h:selectOneMenu id="campaign" value="#{dashboard.selectedCampaign}" style="width: 200px;">

                 <f:selectItems value="#{dashboard.categories}" />

                 <f:ajax event="change" render="targetgroup" limitRender="true" timeout="#{email['timeout']}" execute="@this"/>

      </h:selectOneMenu>

               

      INFO: java.lang.NullPointerException

      java.lang.NullPointerException

              at javax.faces.component.UIComponentBase.getRenderer(UIComponentBase.java:1402)

              at javax.faces.component.UIComponentBase.getClientId(UIComponentBase.java:321)

              at javax.faces.component.UIComponent.getClientId(UIComponent.java:656)

              at com.sun.faces.component.visit.PartialVisitContext.getSubtreeIdsToVisit(PartialVisitContext.java:154

      )

              at javax.faces.component.UIForm.visitTree(UIForm.java:338)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)

              at javax.faces.component.UIComponent.visitTree(UIComponent.java:1600)

              at com.sun.faces.context.PartialViewContextImpl.processComponents(PartialViewContextImpl.java:376)

              at com.sun.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:252)

              at org.richfaces.context.ExtendedPartialViewContextImpl.processPartial(ExtendedPartialViewContextImpl.

      java:211)

              at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:1229)

              at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:78)

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

              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.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

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

              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.LoggingFilter.doFilter(LoggingFilter.java:58)

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

              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 com.treselle.mtc.web.action.common.BadInputFilter.doFilter(BadInputFilter.java:234)

              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 com.treselle.mtc.web.action.common.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:90)

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

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

              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.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:662)

      17:04:54,046  WARN ExceptionFilter:68 - handling uncaught exception

      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.render(LifecycleImpl.java:139)

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

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

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

              at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)

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

              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.LoggingFilter.doFilter(LoggingFilter.java:58)

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

              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 com.treselle.mtc.web.action.common.BadInputFilter.doFilter(BadInputFilter.java:234)

              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 com.treselle.mtc.web.action.common.SessionTimeoutFilter.doFilter(SessionTimeoutFilter.java:90)

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

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

              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.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:662)