Failed to initialize local extension [org.xwiki.contrib.numbered.content:application-numbered-content-headings-pdf/1.10.3]
org.xwiki.extension.ExtensionException: Failed to initialize dependency [org.xwiki.platform:xwiki-platform-export-pdf-api-14.10]
01-Mar-2025 18:11:14.668 SEVERE [main] org.apache.catalina.session.StandardManager.startInternal Exception loading sessions from persistent storage
Caused by: java.sql.SQLSyntaxErrorException: Unknown column ‘xwikidocum0_.XWD_ENFORCE_REQUIRED_RIGHTS’ in ‘field list’
this refers the subwiki techtest01localusers, which is well behind even 15.10.14 (I created a couple of subwikis for testing purposes, but are never accessed since more than a year - and several upgrades)
ERROR o.h.h.i.a.ErrorTracker - line 1:62: unexpected token: from
antlr.NoViableAltException: unexpected token: from
ERROR c.x.x.s.i.StatsUtil - Failed to search visit object in the database from uniqueID
org.xwiki.query.QueryException: Exception while executing query. Query statement = [from VisitStats as obj where obj.uniqueID=:fieldValue and obj.endDate > :date order by obj.endDate desc]
WARN o.x.j.i.DefaultJobStatusStore - Failed to load job status for id [extension, plan, null, wiki:xwiki]
java.lang.NullPointerException: Cannot invoke “String.getBytes()” because “fullIdElement” is null
Can’t comment on the rest, but judging from my fresh 17.0 installation, Required Rights is not built into XWiki. Its still an extension, however it was installed by default for us.
That’s expected I think, basically those extensions have been moved to the WAR so they’re no longer an actual extension but part of the core.
Error 1-2 seems to be a problem with org.xwiki.platform:xwiki-platform-export-pdf-api-14.10 being installed which definitely shouldn’t be the case. You should try cleaning up/uninstalling the old PDF export versions, maybe they come from the unused subwiki? If you don’t need those subwikis, maybe you could just delete them?
Error 3 seems to be Tomcat not being able to load a session from persistent storage, I doubt this has any real consequences, except that maybe a user has been logged out.
Error 4, the migration error is most likely harmless (but should still be fixed). The error java.sql.SQLSyntaxErrorException: Unknown column ‘xwikidocum0_.XWD_ENFORCE_REQUIRED_RIGHTS’ in ‘field list’ suggests that there is a problem with a migration on the main wiki accessing the subwiki database before the subwiki database has been migrated, cc @surli who wrote that migration.
Error 5-8: I suspect that a recent change broke the statistics feature. The stats feature is deprecated and not regularly tested by us as far as I know. This possibly breaks statistics and other features relying on it. You could disable stats and apart from that it might be something for us to fix.
Error 9-10 probably only affects storing and retrieving the job log for the migration, I don’t know if this has any further consequences. In any case, I guess that’s a bug to fix. This seems to be a regression caused by XCOMMONS-2387 cc @tmortagne.
@watery You should check all the release notes from the version after the one you’re moving from to the version you’re installing as they can contain important information. You can focus on the “backward compatibility” section. Note that this is indicated under Note2 on https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Upgrade/