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

JavaSerializer using CheckingObjectOutputStream fails in conjunction with PageSizeDebugPanel

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 7.2.0
    • None
    • None
    • None

    Description

      I've overridden JavaSerializer in the following way. When my application is in development mode, the PageSizeDebugPanel attempts to serialize my components to calculate their size. Unfortunately it does this before detach() has been called, so of course the NotDetachedModelChecker() fails.

      JavaSerializer serializer = new JavaSerializer(getApplicationKey()) {
          @Override
          protected ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException {
              List<IObjectChecker> checkers = Lists.newArrayList(
                      new NotDetachedModelChecker(),
                      new ObjectSerializationChecker());
              return new CheckingObjectOutputStream(out, checkers.toArray(new IObjectChecker[checkers.size()]));
          }
      };
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              blakeday Michael Day
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: