Jsf 2 com.sun.faces.context.StateContext.startTrackViewModifications上的java.lang.NullPointerException(StateContext.java:172)

Jsf 2 com.sun.faces.context.StateContext.startTrackViewModifications上的java.lang.NullPointerException(StateContext.java:172),jsf-2,jboss,primefaces,spring-webflow,Jsf 2,Jboss,Primefaces,Spring Webflow,应用程序已成功地被删除,但当我尝试访问我的第一页时,我遇到以下异常 JSF2.0 SWF2.0 primefaces 2.2.1 JBossAS 7.1.1最终版 org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Except

应用程序已成功地被删除,但当我尝试访问我的第一页时,我遇到以下异常

JSF2.0 SWF2.0 primefaces 2.2.1 JBossAS 7.1.1最终版

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'startPage' of flow 'main'
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:583)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)


root cause 

org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'startPage' of flow 'main'
    org.springframework.webflow.engine.impl.FlowExecutionImpl.wrap(FlowExecutionImpl.java:569)
    org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:263)
    org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
    org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
    org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)


root cause 

java.lang.NullPointerException
    com.sun.faces.context.StateContext.startTrackViewModifications(StateContext.java:172)
    com.sun.faces.application.view.FaceletViewHandlingStrategy.restoreView(FaceletViewHandlingStrategy.java:456)
    com.sun.faces.application.view.MultiViewHandler.restoreView(MultiViewHandler.java:142)
    org.springframework.faces.webflow.FlowViewHandler.restoreFlowView(FlowViewHandler.java:128)
    org.springframework.faces.webflow.FlowViewHandler.restoreView(FlowViewHandler.java:75)
    org.springframework.faces.webflow.JsfViewFactory.getView(JsfViewFactory.java:93)
    org.springframework.webflow.engine.ViewState.resume(ViewState.java:193)
    org.springframework.webflow.engine.Flow.resume(Flow.java:545)
    org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
    org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
    org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
    org.springframework.webflow.mvc.servlet.FlowController.handleRequest(FlowController.java:174)
    org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
在使用JSF2.1时获得不同的异常

java.lang.UnsupportedOperationException
    at javax.faces.context.ExternalContext.encodePartialActionURL(ExternalContext.java:1909)
    at com.sun.faces.renderkit.html_basic.FormRenderer.encodeBegin(FormRenderer.java:170)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:820)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1777)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1782)
    at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:594)
    at org.springframework.faces.webflow.JsfView.render(JsfView.java:88)
    at org.springframework.webflow.engine.ViewState.render(ViewState.java:282)
    at org.springframework.webflow.engine.ViewState.refresh(ViewState.java:241)
    at org.springframework.webflow.engine.ViewState.resume(ViewState.java:219)
    at org.springframework.webflow.engine.Flow.resume(Flow.java:545)
    at org.springframework.webflow.engine.impl.FlowExecutionImpl.resume(FlowExecutionImpl.java:259)
    at org.springframework.webflow.executor.FlowExecutorImpl.resumeExecution(FlowExecutorImpl.java:163)
    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:875)
    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
    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:368)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
    at java.lang.Thread.run(Thread.java:619)

有人能帮我解决这个问题吗

这可能是SpringWebflow的一个问题。我在Oracle Weblogic 12上使用SpringWebFlow 2.3.1和Mojarra 2.1.13也会遇到同样的异常


已经有了一个解决方案。

这可能是SpringWebFlow的一个问题。我在Oracle Weblogic 12上使用SpringWebFlow 2.3.1和Mojarra 2.1.13也会遇到同样的异常


已经有了一个解决方案。

您可以提供有关您的应用程序配置的信息吗?您打算使用什么版本的jboss、jsf、spring等?我看您已经提供了这些信息。有一个问题,您是如何在JBoss7.1上配置jsf2的?使用war_bundle_jsf_impl描述符??是的,mukul,但是没有人回答这个问题。我正在使用jboss as 7.1.1 jsf 2.0、springwebflow 2.0,并且我没有在我的web.xml中配置war_bundle_jsf_impl_描述符首先,要在jboss 7.1.1上使用jsf 2.0,您必须从standalone.xml和domain.xml中删除jsf子系统,将jsf 2.0 jar打包到war库中。并在web.xml中将WAR\u BUNDLES\u JSF\u IMPL设置为TRUE。这些类型的错误有时是版本问题。参考这一点,让我们首先在那里获得正确的配置,然后我们可以看到它显示了什么错误并解决它。Regards@mukul:我在standalone.xml和domain.xml中没有找到任何jsf子系统,我已经附加了这些子系统,请推荐。谢谢你的帮助。你能提供关于你的应用程序配置的信息吗?您打算使用什么版本的jboss、jsf、spring等?我看您已经提供了这些信息。有一个问题,您是如何在JBoss7.1上配置jsf2的?使用war_bundle_jsf_impl描述符??是的,mukul,但是没有人回答这个问题。我正在使用jboss as 7.1.1 jsf 2.0、springwebflow 2.0,并且我没有在我的web.xml中配置war_bundle_jsf_impl_描述符首先,要在jboss 7.1.1上使用jsf 2.0,您必须从standalone.xml和domain.xml中删除jsf子系统,将jsf 2.0 jar打包到war库中。并在web.xml中将WAR\u BUNDLES\u JSF\u IMPL设置为TRUE。这些类型的错误有时是版本问题。参考这一点,让我们首先在那里获得正确的配置,然后我们可以看到它显示了什么错误并解决它。Regards@mukul:我在standalone.xml和domain.xml中没有找到任何jsf子系统,我已经附加了这些子系统,请推荐。谢谢你的帮助