Announcement Announcement Module
Collapse
No announcement yet.
filter chain causing NullPointerException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • filter chain causing NullPointerException

    If anyone could send some tips my way, I'd greatly appreciate it. I know this seems really silly, but I'm having trouble debugging a null pointer exception. It occurs on a webflow definition eval. I'm pretty sure this is spring security related, but I can't see it. I suspect my filter chains are causing this.

    Code:
    2011-12-05 16:30:02.256 [DEBUG] org.springframework.webflow.engine.impl.FlowExecutionImpl:590 - Attempting to handle [org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@1f8bb212 targetAction = [EvaluateAction@2d81b8cd expression = lookupSystemConverter.setItems(adminService.getlookupSystems()), resultExpression = [null]], attributes = map[[empty]]] in state 'edit' of flow 'system/registration' -- action execution attributes were 'map[[empty]]'] with root cause [java.lang.NullPointerException]
    2011-12-05 16:30:02.257 [DEBUG] org.springframework.webflow.engine.impl.FlowExecutionImpl:611 - Rethrowing unhandled flow execution exception
    2011-12-05 16:30:02.257 [DEBUG] org.springframework.webflow.conversation.impl.SessionBindingConversationManager:99 - Unlocking conversation 1
    2011-12-05 16:30:02.258 [ERROR] org.ajax4jsf.webapp.BaseXMLFilter:227 - Exception in the filter chain
    org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@1f8bb212 targetAction = [EvaluateAction@2d81b8cd expression = lookupSystemConverter.setItems(adminService.getlookupSystems()), resultExpression = [null]], attributes = map[[empty]]] in state 'edit' of flow 'system/registration' -- action execution attributes were 'map[[empty]]'
    	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:656)
    	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
    	at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
    	at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
    	at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:391)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	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:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:116)
    	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:182)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:125)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at com.abc.inventory.web.security.SingleSignOutFilter.doFilter(SingleSignOutFilter.java:121)
    	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
    	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:173)
    	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:243)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
    	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:269)
    	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    	at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1773)
    	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:662)
    Caused by: org.springframework.webflow.execution.ActionExecutionException: Exception thrown executing [AnnotatedAction@1f8bb212 targetAction = [EvaluateAction@2d81b8cd expression = lookupSystemConverter.setItems(adminService.getlookupSystems()), resultExpression = [null]], attributes = map[[empty]]] in state 'edit' of flow 'system/registration' -- action execution attributes were 'map[[empty]]'
    	at org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
    	at org.springframework.webflow.engine.ActionList.execute(ActionList.java:155)
    	at org.springframework.webflow.engine.State.enter(State.java:193)
    	at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    	at org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
    	at org.springframework.webflow.engine.State.enter(State.java:194)
    	at org.springframework.webflow.engine.Flow.start(Flow.java:535)
    	at org.springframework.webflow.engine.impl.FlowExecutionImpl.start(FlowExecutionImpl.java:366)
    	at org.springframework.webflow.engine.impl.RequestControlContextImpl.start(RequestControlContextImpl.java:234)
    	at org.springframework.webflow.engine.SubflowState.doEnter(SubflowState.java:101)
    	at org.springframework.webflow.engine.State.enter(State.java:194)
    	at org.springframework.webflow.engine.Transition.execute(Transition.java:227)
    	at org.springframework.webflow.engine.impl.FlowExecutionImpl.execute(FlowExecutionImpl.java:393)
    	at org.springframework.webflow.engine.impl.RequestControlContextImpl.execute(RequestControlContextImpl.java:214)
    	at org.springframework.webflow.engine.Flow.handleEvent(Flow.java:560)
    	at org.springframework.webflow.engine.impl.FlowExecutionImpl.handleEvent(FlowExecutionImpl.java:388)
    	at
    Last edited by blicket; Dec 5th, 2011, 10:59 PM.

  • #2
    What makes you think it is a Spring Security issue? The NullPointerException is in a DEBUG log so you should be able to ignore that. I would focus on the ERROR log which states there is a problem with WebFlow. Since all the logs come from web flow, you should probably post to the WebFlow forum with your configuration if you are having problems figuring this out.

    Comment


    • #3
      I've tested the same page using a CAS authenticated user which works, but not my UsernameAuthenticatedForm user with the same authorities. I 'think' i'm almost certain that my spring security is not configured correctly. This is related to my other post in the forum.

      Comment

      Working...
      X