Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-6655

Cannot serialise custom objects defined in plugins using Bandana

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: None
    • Labels:
      None

      Description

      Bandana does not currently search the plugin classloader when serialising.

      An error similar to this results if a plugin author tries to save custom objects using bandana:

      [ConfluenceBandanaPersister] Error loading stream for context :
      [com.atlassian.confluence.setup.bandana.ConfluenceBandanaContext@13fe9,
      spaceKey='SBX']
      com.thoughtworks.xstream.converters.ConversionException:
      com.host.com.TestObject :
      com.host.com.TestObject
      ---- Debugging information ----
      required-type : java.util.HashMap
      cause-message : com.host.com.TestObject :
      com.host.com.TestObject
      class :
      com.atlassian.confluence.setup.bandana.ConfluenceBandanaConfigMap
      message : com.host.com.TestObject :
      com.host.com.TestObject
      line number : 17
      path :
      /confluence-config-map/values/entry[2]/com.host.com.TestObject
      cause-exception :
      com.thoughtworks.xstream.alias.CannotResolveClassException
      -------------------------------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dave@atlassian.com dave (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: