Announcement Announcement Module
No announcement yet.
Facing strange issue with Spring Webflow 2 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Facing strange issue with Spring Webflow 2

    I am facing a strange issue with the Spring webflow2 where if we keep a page open for some time (let's say 10 minutes) and then try to submit the page after entering some data to the fields, then page gets blanked out having all the data entered previously as wiped out.

    When i debug it , i found that the form bean has all the properties as null when it comes to my custom controller.

    Then again if i enter the data and submit it immediately it successfully submits the data, rech to the my custom controller class with all the form properties populated correctly.

    We are fetching this bean from flow scope.

    Anybody has any idea about it?

  • #2
    What's your session timeout set to?


    • #3
      15 minutes.


      • #4
        Anyone, please throw some ideas.


        • #5
          Sorry, if it's not a session timeout issue, then I'm out of ideas. I'm not using Spring MVC with Webflow, so I've never run into that particular issue.


          • #6
            It's definitely not a session timeout issue. I set the session timeout to such that it never expires. Still i faced the same issue.

            Looks like something related to flowscope expiry. When does the flow scope expires?

            Can someone from the Spring Webflow Core team can throw a light on this one?

            It's very important for us. Our major production release halted because of this issue.


            • #7
              As far as I know, flow scope (and conversation scope, etc) will only expire when the session expires. I don't think it has its own independent timeout. Can you post your flow definition? It might provide some insight.


              • #8
                <?xml version="1.0" encoding="UTF-8"?>

                <flow xmlns=""

                <var name="registrationForm" class=" " />
                <var name="fullyyyForm" class="" />
                <var name="paymentInfo" class="" />

                <action-state id="registerUserFormAction">
                <evaluate expression="registerUserFormAction" />
                <transition on="registrationForm" to="registrationFormView" />
                <transition on="success" to="termsAndConditionsView" />
                <transition on="yyyCheckFailed" to="enterFullyyyView" />
                <transition on="duplicateyyy" to="duplicateyyyView"/>
                <transition on="duplicateEmail" to="registrationFormView"/>
                <transition on="duplicateUserName" to="registrationFormView"/>
                <transition on="inprogress" to="intermittentFlow" />

                <view-state id="registrationFormView" model="registrationForm">
                <transition on="submit" to="registerUserFormAction" />

                <view-state id="termsAndConditionsView" model="registrationForm">
                <transition on="submit" to="termsAndConditionsAction" />

                <action-state id="termsAndConditionsAction">
                <evaluate expression="termsAndConditionsAction" />
                <transition on="success" to="paymentForm" />

                <view-state id="enterFullyyyView" model="fullyyyForm">
                <transition on="submit" to="enterFullyyyAction" />

                <action-state id="enterFullyyyAction">
                <evaluate expression="enterFullyyyAction" />
                <transition on="success" to="termsAndConditionsView" />
                <transition on="duplicateyyy" to="duplicateyyyView" />

                <view-state id="paymentForm" model="paymentInfo">
                <evaluate expression="paymentAction.prePopulate()" result="flowScope.paymentInfo" />
                <transition on="notLoggedIn" to="askLogin" />
                <transition on="next" to="payment" />

                <view-state id="intermittentFlow">
                <transition on="next" to="end" />

                <action-state id="payment">
                <evaluate expression="paymentAction" />
                <transition on="notLoggedIn" to="askLogin" />
                <transition on="success" to="end" />
                <transition on="failure" to="paymentForm" />

                <end-state id="askLogin" view="flowRedirect:login" />
                <end-state id="cancel" view="flowRedirect:index" />
                <end-state id="duplicateyyyView" view="flowRedirect:login" />
                <end-state id="end" view="flowRedirect:registerzzz" />


                • #9
                  In the above flow defeinition we get, RegisterationForm model properties as null (After certain interval passes) when the flow reaches RegisterationUserFormAction even though in the view we populated all the values correctly


                  • #10
                    We are experiencing the same thing except our flowscope variables are null after the page is idle for 10 minutes.


                    • #11
                      Did anyone got a solution for this issue?
                      I'm facing the same problem on submits of idle pages which uses conversation scope variables. All of them are null.

                      Any help?