PDA

View Full Version : NullPointerException FlowExecutionImpl.resume



Forn
Feb 6th, 2011, 11:03 AM
Hello, All.
when my page generate first time all is ok. But when i try to click on any menu item i get the next error:

P.S. I'm using Sporing 3.0/5 and WebFlow 2.2.1 and RichFaces 4.0. How fix this error?


org.springframework.webflow.execution.FlowExecutio nException: Exception thrown in state 'main' of flow 'controlpanel'
at org.springframework.webflow.engine.impl.FlowExecut ionImpl.wrap(FlowExecutionImpl.java:569)
at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:263)
at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:169)
at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
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.p rocessRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.wrapRun(WebAppServletContext. java:3715)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3681)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :176)
Caused By: javax.faces.FacesException: java.lang.NullPointerException
at org.richfaces.component.UIDataAdaptor.invokeOnComp onent(UIDataAdaptor.java:1247)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)
at com.sun.faces.application.view.StateManagementStra tegyImpl.restoreView(StateManagementStrategyImpl.j ava:284)
at com.sun.faces.application.StateManagerImpl.restore View(StateManagerImpl.java:177)
at org.springframework.faces.webflow.FlowViewStateMan ager.restoreView(FlowViewStateManager.java:190)
at com.sun.faces.application.view.ViewHandlingStrateg y.restoreView(ViewHandlingStrategy.java:131)
at com.sun.faces.application.view.FaceletViewHandling Strategy.restoreView(FaceletViewHandlingStrategy.j ava:430)
at com.sun.faces.application.view.MultiViewHandler.re storeView(MultiViewHandler.java:143)
at org.springframework.faces.webflow.FlowViewHandler. restoreFlowView(FlowViewHandler.java:144)
at org.springframework.faces.webflow.FlowViewHandler. restoreView(FlowViewHandler.java:83)
at javax.faces.application.ViewHandlerWrapper.restore View(ViewHandlerWrapper.java:288)
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.g etView(JsfViewFactory.java:105)
at org.springframework.webflow.engine.ViewState.resum e(ViewState.java:215)
at org.springframework.webflow.engine.Flow.resume(Flo w.java:545)
at org.springframework.webflow.engine.impl.FlowExecut ionImpl.resume(FlowExecutionImpl.java:259)
at org.springframework.webflow.executor.FlowExecutorI mpl.resumeExecution(FlowExecutorImpl.java:169)
at org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:183)
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.p rocessRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:820)
at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(Tail Filter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.RequestEventsFilter.doFi lter(RequestEventsFilter.java:27)
at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.wrapRun(WebAppServletContext. java:3715)
at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3681)
at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread. java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java :176)
Caused By: java.lang.NullPointerException
at com.sun.faces.application.view.StateManagementStra tegyImpl$4.invokeContextCallback(StateManagementSt rategyImpl.java:289)
at org.richfaces.component.UIDataAdaptor.invokeOnComp onent(UIDataAdaptor.java:1200)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)
at javax.faces.component.UIComponent.invokeOnComponen t(UIComponent.java:1262)
at javax.faces.component.UIComponentBase.invokeOnComp onent(UIComponentBase.java:672)

Forn
Feb 6th, 2011, 11:03 AM
webflow

-config.xml:





<?


xmlversion


="1.0"encoding="UTF-8"?>


<


beans:beansxmlns="http://www.springframework.org/schema/webflow-config"


xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"


xmlns:beans="http://www.springframework.org/schema/beans"


xmlns:faces="http://www.springframework.org/schema/faces"


xsi:schemaLocation="http://www.springframework.org/schema/webflow-config


http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd


http://www.springframework.org/schema/beans


http://www.springframework.org/schema/beans/spring-beans-3.0.xsd


http://www.springframework.org/schema/faces


http://www.springframework.org/schema/faces/spring-faces-2.0.xsd"


>


 
<!-- Executes flows: the central entry point into the Spring Web Flow system -->


<


flow-executorid="flowExecutor">


<


flow-execution-listeners>


<


listenerref="facesContextListener"/>


</


flow-execution-listeners>


</


flow-executor>


 
<!-- The registry of executable flow definitions -->


<


flow-registryid="flowRegistry"flow-builder-services="flowBuilderServices"base-path="/WEB-INF/flows">


<


flow-location-patternvalue="/**/*-flow.xml"/>


</


flow-registry>


 
<!-- Configures the Spring Web Flow JSF integration -->


<


faces:flow-builder-servicesid="flowBuilderServices"development="true"/>


 
<


beans:beanid="facesContextListener"class="org.springframework.faces.webflow.FlowFacesContext LifecycleListener"/>


 
</


beans:beans>

dr_pompeii
Feb 6th, 2011, 11:38 AM
Hello


org.springframework.webflow.execution.FlowExecutio nException:
Exception thrown in state 'main' of flow 'controlpanel'
Post your flow definition



Caused By: javax.faces.FacesException: java.lang.NullPointerException
Be sure you have the respective jar included in your classpath and the most important, be sure you have properly configured the integration about SWF + RichFaces


when my page generate first time all is ok.

It is called directly from an URL?



But when i try to click on any menu item i get the next error:

Copy here the URL used in such Menu, perhaps your flow expect some attribute to start the flow process and you are not sending.