Migration from richfaces 3.3 to 4.3 not working

Version 1

    We are using an application with following configuration:

     

     

     

     

     

     

     

     

    JSF: 2.0

     

     

    MyFaces :2.1.16

     

     

    Richfaces : 3.3

     

     

    Spring Web Flow : 2.3.0.RELEASE

     

     

    Tomcat 6.0

     

     

     

     

     

     

     

     

    While migrating from Richfaces 3.3 to 4.3.7, we are getting exceptions . Pages containing <rich:dataTable> , <a4j:ajax>,<a4j:autoComplete> tags are not working. Its showing following exceptions and after this exception , clicking on any other option from the menu is also showing the same exception.

     

     

     

     

    SEVERE: Error 1: org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'Test' of flow 'Test'

    org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'Test' of flow 'Test'

    at org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:571)

    at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:265)

    at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:169)

    at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)

    at org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)

    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)

    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)

    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)

    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)

    at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

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

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

    at com.daimler.xdis.xap.adapters.servlet.SiteminderAuthenticationFilter.doFilter(SiteminderAuthenticationFilter.java:31)

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

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

    at com.daimler.xdis.xap.adapters.servlet.DisableBrowserCachingFilter.doFilter(DisableBrowserCachingFilter.java:27)

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

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

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

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

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)

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

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

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

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

    Caused by: java.lang.NullPointerException

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

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

    at javax.faces.component.UIComponent.getContainerClientId(UIComponent.java:450)

    at javax.faces.component.UIForm.getContainerClientId(UIForm.java:465)

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

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

    at org.richfaces.component.UIDataAdaptor.subscribeToPreRenderViewEventOncePerRequest(UIDataAdaptor.java:1465)

    at org.richfaces.component.UIDataAdaptor.processEvent(UIDataAdaptor.java:1450)

    at org.richfaces.component.UIDataAdaptor.processEvent(UIDataAdaptor.java:1442)

    at javax.faces.component.UIComponent$EventListenerWrapper.processEvent(UIComponent.java:1579)

    at javax.faces.event.SystemEvent.processListener(SystemEvent.java:43)

    at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2493)

    at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:586)

    at org.springframework.faces.webflow.Jsf2FlowApplication.publishEvent(Jsf2FlowApplication.java:90)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:235)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:254)

    at javax.faces.component.UIComponentBase.setParent(UIComponentBase.java:215)

    at javax.faces.component._ComponentChildrenList.updateParent(_ComponentChildrenList.java:132)

    at javax.faces.component._ComponentChildrenList.add(_ComponentChildrenList.java:82)

    at javax.faces.component._ComponentChildrenList.add(_ComponentChildrenList.java:33)

    at org.springframework.faces.webflow.TreeStructureManager.internalRestoreTreeStructure(TreeStructureManager.java:109)

    at org.springframework.faces.webflow.TreeStructureManager.restoreTreeStructure(TreeStructureManager.java:86)

    at org.springframework.faces.webflow.FlowViewStateManager.restoreTreeStructure(FlowViewStateManager.java:99)

    at org.springframework.faces.webflow.FlowViewStateManager.restoreView(FlowViewStateManager.java:197)

    at org.apache.myfaces.shared.view.ViewDeclarationLanguageBase.restoreView(ViewDeclarationLanguageBase.java:106)

    at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.restoreView(FaceletViewDeclarationLanguage.java:2118)

    at org.apache.myfaces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:328)

    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)

    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:83)

    at org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:144)

    at org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:83)

    at org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:105)

    at org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)

    at org.springframework.webflow.engine.Flow.resume(Flow.java:545)

    at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:261)

    ... 31 more

     

     

     

     

     

     

     

     

    We tried removing  richfaces tags from the .xhtml files then it's working fine. But we have to retain rich functionality.

    Any idea regarding this issue.