Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1083

Some exceptions make XStream go nuts

    XMLWordPrintable

    Details

    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      We need a way to make sure that some logged exception won't make XStream go nuts and crash the farm like it happen sometime.

      Some exceptions can be pretty weird (just look at XWikiException in XWiki 1.0...) but I guess the safest is to introduce a custom serializer for anything extending Throwable and serialize only the Throwable fields (message, cause, etc). If the unserialize custom Exception is missing some information then so be it (we could probably skip the special serializer for any Exception with @Serializable annotation).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tmortagne Thomas Mortagne
              Reporter:
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: