ClassCastExceptions after upgrading plugins when trying to click on "Configure"

XMLWordPrintable

      After upgrading plugins using the Plugin Repository in Confluence Admin, I get ClassCastExceptions when I click on the "Configure" link next to the plugin once the upgrade is completed. The exception states that casting from a class to itself is not possible.

      After a restart of Confluence, the link works as expected. I also get ClassCastExceptions randomly for macros that are provided by updated plugins until I restart the Confluence instance. My assumption is that this is connected to the switch of OSGi as plugin framework because of the fact that the cast from a class to itself fails. This indicates a classloader issue where the class is loaded by two different classloaders as is the case when an OSGi bundle is deployed/undeployed - apparently some classloaders are retained that contain a different version of the class to be loaded or the newly deployed bundle does not get a referenced to the correct class, probably because two other bundles export the same package (just my thoughts, I may be completely wrong here).

              Assignee:
              Unassigned
              Reporter:
              Sven Panko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: