Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-4165

HttpSessionDataStore uses asynchronous saving by default

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.5.0, 1.5.1, 1.5.2
    • 1.5.3
    • wicket
    • None
    • Apache Tomcat 6.0.x and jetty

    Description

      HttpSessionDataStore uses asynchronous saving and store itself expects saving thread to be a "wicket thread". There is no need for asynchronous saving as HttpSessionDataStore saves all data to HTTPSession and therefore data is held in memory. HttpSessionDataStore should default to synchronous action.

      There is a lot of errors like this on log with default setting:

      "ERROR - HttpSessionDataStore - Cannot store the data for page with id '0' in session with id '1x6veaq6f0b23trchiio53f3g'"

      When setting "getStoreSettings().setAsynchronous(false);" in application's init everything seems to work ok.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mpukki Mikko Pukki
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified