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
- relates to
-
XWIKI-22530 A broken document initializer can prevent XWiki from starting at all
- Closed