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

NotSerializableException of the field "pageMarkup" in BaseWicketTester$StartComponentInPage

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.8, 6.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      If you enable the RequestLogger in your application and if you use the "startComponentInPage" Method on the WicketTester you could get NotSerializableExceptions if the session gets serialized:

      WARN org.apache.wicket.util.lang.WicketObjects Unable to determine object size of Session
      java.io.NotSerializableException: org.apache.wicket.markup.Markup

      • field (class "org.apache.wicket.util.tester.BaseWicketTester$StartComponentInPage", name: "pageMarkup", type: "interface org.apache.wicket.markup.IMarkupFragment")
      • object (class "org.apache.wicket.util.tester.BaseWicketTester$StartComponentInPage", [Page class = org.apache.wicket.util.tester.BaseWicketTester$StartComponentInPage, id = 1, render count = 2])
      • field (class "org.apache.wicket.Component", name: "parent", type: "class org.apache.wicket.MarkupContainer")

        Activity

        Hide
        mgrigorov Martin Grigorov added a comment -

        Why this page is serialized ?
        I think WicketTester do not serialize the page at all.
        Do you use custom IPageManager for WicketTester ?

        Show
        mgrigorov Martin Grigorov added a comment - Why this page is serialized ? I think WicketTester do not serialize the page at all. Do you use custom IPageManager for WicketTester ?
        Hide
        cwellekoetter Christian Wellekötter added a comment -

        No, I do not use a custom IPageManager. I only enabled the RequestLogger in the application.

        Show
        cwellekoetter Christian Wellekötter added a comment - No, I do not use a custom IPageManager. I only enabled the RequestLogger in the application.

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            cwellekoetter Christian Wellekötter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development