Announcement Announcement Module
Collapse
No announcement yet.
Integration with spring web flow Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Integration with spring web flow

    I created Defect domain model and made it a service.
    I passed a parameter named defectId to the following flow.xml file to show the content of the Defect in each page of web flow. But exception occurred. Please help me out.

    <<flow.xml>>
    <input name="defectId" required="true" />
    <on-start>
    <evaluate expression="DefectService.findDefect('defectId')" result="flowScope.defect" />
    </on-start>

    <<exception>>
    Exception thrown executing [AnnotatedAction@5889dee2 targetAction = [EvaluateAction@4387f4d7 expression = DefectService.findDefect('defectId'), resultExpression = flowScope.defect], attributes = map[[empty]]] in state 'null' of flow 'defectflow' -- action execution attributes were 'map[[empty]]'

    org.springframework.webflow.execution.ActionExecut or.execute(ActionExecutor.java:60)
    org.springframework.webflow.engine.ActionList.exec ute(ActionList.java:155)
    org.springframework.webflow.engine.Flow.start(Flow .java:534)
    org.springframework.webflow.engine.impl.FlowExecut ionImpl.start(FlowExecutionImpl.java:366)
    org.springframework.webflow.engine.impl.FlowExecut ionImpl.start(FlowExecutionImpl.java:225)
    org.springframework.webflow.executor.FlowExecutorI mpl.launchExecution(FlowExecutorImpl.java:140)
    org.springframework.webflow.mvc.servlet.FlowHandle rAdapter.handle(FlowHandlerAdapter.java:193)
    org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:900)
    org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:827)
    org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:882)
    org.springframework.web.servlet.FrameworkServlet.d oPost(FrameworkServlet.java:789)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:641)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
    org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:305)
    org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    org.springframework.orm.jpa.support.OpenEntityMana gerInViewFilter.doFilterInternal(OpenEntityManager InViewFilter.java:147)
    org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 311)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:116)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:113)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:101)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:113)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:45)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.authentication.http://www.BasicAuthenticationFilter...lter.java:150)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:182)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:87)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 323)
    org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:173)
    org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:346)
    org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:259)
    org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    org.springframework.web.filter.HiddenHttpMethodFil ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
    org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    org.springframework.web.filter.CharacterEncodingFi lter.doFilterInternal(CharacterEncodingFilter.java :88)
    org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)
    org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:243)
    org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
    org.apache.catalina.core.StandardWrapperValve.invo ke(StandardWrapperValve.java:224)
    org.apache.catalina.core.StandardContextValve.invo ke(StandardContextValve.java:169)
    org.apache.catalina.authenticator.AuthenticatorBas e.invoke(AuthenticatorBase.java:472)
    org.apache.catalina.core.StandardHostValve.invoke( StandardHostValve.java:168)
    org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:98)
    org.apache.catalina.valves.AccessLogValve.invoke(A ccessLogValve.java:927)
    org.apache.catalina.core.StandardEngineValve.invok e(StandardEngineValve.java:118)
    org.apache.catalina.connector.CoyoteAdapter.servic e(CoyoteAdapter.java:407)
    org.apache.coyote.http11.AbstractHttp11Processor.p rocess(AbstractHttp11Processor.java:987)
    org.apache.coyote.AbstractProtocol$AbstractConnect ionHandler.process(AbstractProtocol.java:579)
    org.apache.tomcat.util.net.NioEndpoint$SocketProce ssor.run(NioEndpoint.java:1600)
    java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:662)

  • #2
    Sorry but I can't find where there's a mistake...
    ____________________
    blackberry development
    Last edited by Carmomiller; Apr 11th, 2012, 10:04 AM.

    Comment


    • #3
      You are only using the incorrect syntax. You can't call static methods this way.
      The correct syntax is:
      HTML Code:
      <evaluate expression="T([fully qualified name of DefectService]).findDefect(defectId)" result="flowScope.defect" />
      Hope this helps,
      Stefano
      Last edited by zakhrim; Apr 5th, 2012, 02:53 AM.

      Comment

      Working...
      X