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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment