This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-3851e622-db00-4c43-a9c5-03ca7f2401df XWIKI-23924 Open

NPE warnings related to "com.xpn.xwiki.doc.XWikiDocument.getAuthorReference" in DW logs when upgrading to XWiki 17.10.2

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b9263f0c-dc38-402c-a0c2-0d148fdbbbcc Ilie Andriuta created this issue on 20/Jan/26 16:50
 
Summary: NPE warnings related to "com.xpn.xwiki.doc.XWikiDocument.getAuthorReference" in DW logs when upgrading to XWiki 17.10.2
Issue Type: cid:jira-generated-image-avatar-3851e622-db00-4c43-a9c5-03ca7f2401df Bug
Affects Versions: 17.10.2
Assignee: Unassigned
Attachments: Warns_Upgrading_11_10_13_to_17_10_2_Main_Wiki.png, Warns_Upgrading_11_10_13_to_17_10_2_SubWiki.png
Created: 20/Jan/26 16:50
Environment: Windows 11 Pro, Chrome 143, using an instance of XWiki 17.10.2 on MySQL 9.3, Tomcat 11.0.15, Java 21, reproducible also on Jetty/HSQL demo packaging
Priority: cid:jira-generated-image-static-blocker-c4ee9528-6511-435a-b46a-88309bee87a5 Blocker
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Create an older instance of XWiki (tested with 11.10.13 and 12.6.8)
  2. Start upgrading this instance to XWiki 17.10.2 by replacing the WAR
  3. Observe the logs from the Distribution Wizard

Expected results

No warnings/ errors are displayed.

Actual results

The following warning is displayed under some documents:

Failed to get the Database List values. Root cause is [NullPointerException: Cannot invoke "com.xpn.xwiki.doc.XWikiDocument.getAuthorReference()" because the return value of "com.xpn.xwiki.objects.classes.DBListClass.getOwnerDocument()" is null]. 

The documents under which the stacktrace occurred are:

  • XWiki > PDFExport > ConfigurationTemplate
  • Image > Style > Code > ImageStyleTemplateProvider
  • Help > Applications > Movies > Code > MoviesTemplateProvider

The issue seems to not be reproducing when upgrading to XWiki 17.4.8.

 
 

3 updates

 
cid:jira-generated-image-avatar-b9263f0c-dc38-402c-a0c2-0d148fdbbbcc Changes by Ilie Andriuta on 20/Jan/26 16:50
 
Fix Version: 18.0.0
Fix Version: 17.10.3
Labels: regression