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

Preserve the NotSerializableException if an error occur while using the IObjectCheckers

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 6.16.0
    • 7.0.0-M3, 6.17.0
    • wicket
    • None

    Description

      From the mailing list (http://markmail.org/message/eqrtl73zf2buh76u):

      I have a not serializable object X stored in a page. It leads to an
      NotSerializableException during page storing. The problem is that this
      page contains also a DetachableArrayList (from WicketStuff minis)
      which raises an exception when is stored as attached.

      1. JavaSerializer tries to serialize page and calls:
      SerializationCheckerObjectOutputStream.writeObjectOverride(...)
      2. NotSerializableException is catched for object X and
      SerializableChecker is called:
      new SerializableChecker(outputStream, nsx).writeObject(obj);
      3. During that call exception is raised from
      AbstractDetachableCollection.writeObject and this new exception is
      logged.

      The original NotSerializableException from step 2 is lost and we don't
      know what really causes problem.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            mgrigorov Martin Tzvetanov Grigorov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: