Announcement Announcement Module
Collapse
No announcement yet.
NPE at org.springframework.faces.ui.ProgressiveUICommand. isImmediate() Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • NPE at org.springframework.faces.ui.ProgressiveUICommand. isImmediate()

    A snippet of my xhtml:

    Code:
    <h:form id="contactUsForm">
    	<sf:commandLink id="contactUs" value="Fale Conosco" action="contactUs" />
    </h:form>
    When I click this button I get:

    Code:
    25/05/2010 19:35:34 org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Spring MVC Dispatcher Servlet threw exception
    java.lang.NullPointerException
    	at org.springframework.faces.ui.ProgressiveUICommand.isImmediate(ProgressiveUICommand.java:74)
    	at javax.faces.component.UICommand.queueEvent(UICommand.java:338)
    	at com.sun.faces.renderkit.html_basic.ButtonRenderer.decode(ButtonRenderer.java:88)
    	at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:790)
    	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1047)
    	at org.springframework.faces.ui.AjaxViewRoot$2.invokeContextCallback(AjaxViewRoot.java:125)
    	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1253)
    	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
    	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
    	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
    	at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:1262)
    	at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:672)
    	at org.springframework.faces.ui.DelegatingViewRoot.invokeOnComponent(DelegatingViewRoot.java:292)
    	at org.springframework.faces.ui.AjaxViewRoot.processDecodes(AjaxViewRoot.java:128)
    	at org.springframework.faces.webflow.FlowLifecycle.invokePhase(FlowLifecycle.java:113)
    	at org.springframework.faces.webflow.FlowLifecycle.execute(FlowLifecycle.java:65)
    	at org.springframework.faces.webflow.JsfView.processUserEvent(JsfView.java:116)
    	at org.springframework.webflow.engine.ViewState.handleEvent(ViewState.java:224)
    	at org.springframework.webflow.engine.ViewState.resume(ViewState.java:196)
    	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:169)
    	at org.springframework.webflow.mvc.servlet.FlowHandlerAdapter.handle(FlowHandlerAdapter.java:183)
    	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771)
    	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
    	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 org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:343)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:177)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:355)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:149)
    	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
    	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
    	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
    	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 com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:80)
    	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:293)
    	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    	at java.lang.Thread.run(Thread.java:619)
    This is the code:

    Code:
    public boolean isImmediate() {
    		RequestContext context = RequestContextHolder.getRequestContext();
    		if (context != null && getActionExpression().isLiteralText()
    				&& context.getCurrentState() instanceof TransitionableState) {
    			TransitionDefinition transition = context
    					.getMatchingTransition(getActionExpression().getExpressionString());
    			if (transition != null && transition.getAttributes().contains("bind")) {
    				return Boolean.FALSE.equals(transition.getAttributes().getBoolean("bind"));
    			}
    		}
    		return super.isImmediate();
    	}
    The method getActionExpression() is returning null.

    I am using Webflow 2.1 (hence Spring 3.0) and JSF 2.0.
Working...
X