Upgrade from 15.10.14 to 16.10.4 errors in log (Tomcat 9)

Just done it.

catalina.out contains several errors, e.g.:

  1. Failed to initialize local extension [org.xwiki.contrib.numbered.content:application-numbered-content-headings-pdf/1.10.3]
  2. org.xwiki.extension.ExtensionException: Failed to initialize dependency [org.xwiki.platform:xwiki-platform-export-pdf-api-14.10]
  3. 01-Mar-2025 18:11:14.668 SEVERE [main] org.apache.catalina.session.StandardManager.startInternal Exception loading sessions from persistent storage
  4. 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)
  5. ERROR o.h.h.i.a.ErrorTracker - line 1:62: unexpected token: from
  6. antlr.NoViableAltException: unexpected token: from
  7. ERROR c.x.x.s.i.StatsUtil - Failed to search visit object in the database from uniqueID
  8. 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]
  9. WARN o.x.j.i.DefaultJobStatusStore - Failed to load job status for id [extension, plan, null, wiki:xwiki]
  10. java.lang.NullPointerException: Cannot invoke “String.getBytes()” because “fullIdElement” is null

Full log attached: catalina.out.txt (154.5 KB)

Are they ok or has something gone broken?

Moreover, these dependencies have been uninstalled:

Is it fine?
Has the Required Rights been integrated into XWiki? I saw there’s an extension published:https://extensions.xwiki.org/xwiki/bin/view/Extension/Security/RequiredRights/Default/

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.

Maybe here’s the same, I can’t see it under Installed extensions, but it’s listed like this under Available:


(and can’t be upgraded, so I guess its version is paired with XWiki one)

Sorry to bump so early, but this is the only instance we run :grimacing:

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.

For the Message Stream Application, it’s because it’s been removed from the XS flavor and is now a contrib extension (it’s been deprecated, see https://extensions.xwiki.org/xwiki/bin/view/Extension/Message%20Stream%20Application/).

@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/

Regarding the removal of the Message Stream app, it’s in https://www.xwiki.org/xwiki/bin/view/ReleaseNotes/Data/XWiki/16.8.0/#HIssuesspecificto

PS: In the future I’d like to automatically compute a “backward compat” item list by just indicating the start and end version. See Loading...

For error 5-8, I’ve reported bug XWIKI-22953

For error 9-10, that’s bug XWIKI-22871

For the record I opened Loading... for that one. As Michael said it’s harmless here: your migration has been properly executed.