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

AsynchronousPageStore with NotDetachedModelChecker - "Not detached model found" exception on several fast sequential Ajax calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.5.0, 9.0.0
    • 9.1.0, 8.10.0
    • wicket-core
    • None

    Description

      Preconditions: Application uses AsynchronousPageStore (as it is by default).

      When there are several fast sequential Ajax calls to a component, then a component's LoadableDetachableModel gets attached and detached several times before real async serialization takes place. And at times the serialization is initiated when the model has been already attached once again by a subsequent Ajax call, and not detached yet as the request is still in progress. This causes NotDetachedModelChecker() to throw "Not detached model found!" exception

      Disabling async serialization fixes the problem.

      A test-case and a log attached.

      Attachments

        1. QuickStart.zip
          49 kB
          Sergei Tkachuk

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sergio_tkachuk Sergei Tkachuk
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: