There is 1 update.
 
 
Confluence / cid:jira-generated-image-avatar-20d3d351-d0f5-41d4-a532-9b6c42aa82bd CONFLUENCE-281 Closed

Bad ConfluencePageClass initialization prevents XWiki from starting

 
View issue   ·   Add comment
 

1 update

 
cid:jira-generated-image-avatar-d980c65f-7a6d-4c48-87ed-d3002447b095 Changes by Raphaël Jakse on 26/Sep/24 09:41
 
Description: This issue causes the following exception during XWiki initialization:

{code}
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)
{code}

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