Uploaded image for project: 'Confluence'
  1. Confluence
  2. CONFLUENCE-281

Bad ConfluencePageClass initialization prevents XWiki from starting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 9.53.2
    • 9.53.1
    • XML
    • None
    • Unknown

    Description

      This issue causes the following exception during XWiki initialization:

      class com.xpn.xwiki.objects.LargeStringProperty cannot be cast to class com.xpn.xwiki.objects.BaseCollection (com.xpn.xwiki.objects.LargeStringProperty and com.xpn.xwiki.objects.BaseCollection are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4ced35ed)
      class java.lang.ClassCastException: class com.xpn.xwiki.objects.LargeStringProperty cannot be cast to class com.xpn.xwiki.objects.BaseCollection (com.xpn.xwiki.objects.LargeStringProperty and com.xpn.xwiki.objects.BaseCollection are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @4ced35ed)
          at com.xpn.xwiki.objects.classes.BaseClass.addField(BaseClass.java:195)
          at com.xpn.xwiki.objects.BaseCollection.safeput(BaseCollection.java:266)
          at com.xpn.xwiki.objects.classes.BaseClass.put(BaseClass.java:252)
          at wiki:xwiki//org.xwiki.contrib.confluence.filter.internal.ConfluencePageClassDocumentInitializer.createClass(ConfluencePageClassDocumentInitializer.java:71)
          at com.xpn.xwiki.doc.AbstractMandatoryClassInitializer.updateDocument(AbstractMandatoryClassInitializer.java:75)
          at com.xpn.xwiki.XWiki.initializeMandatoryDocument(XWiki.java:1460)
          at com.xpn.xwiki.XWiki.initializeMandatoryDocuments(XWiki.java:1425)
          at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1353)
          at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:1290)
          at com.xpn.xwiki.XWiki.<init>(XWiki.java:1263)
          at com.xpn.xwiki.internal.XWikiInitializerJob.runInternal(XWikiInitializerJob.java:103)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
          at java.base/java.lang.Thread.run(Thread.java:840)
      

      This can be fixed by removing the most recent folder of data/extension/repository/org%2Exwiki%2Econtrib%2Econfluence%3Aconfluence-xml (or the whole confluence-xml folder altogether) and then reinstalling confluence-xml.

      See also https://forum.xwiki.org/t/error-at-start-of-xwiki-16-7-1/15601/3

      Attachments

        Issue Links

          Activity

            People

              rjakse Raphaël Jakse
              rjakse Raphaël Jakse
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: