This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-da688293-e352-4597-b832-e9968f238698 XWIKI-24501 Open

Abusive modification of the cached document related to notification jobs when upgrading XWiki with a subwiki

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-59ba5e11-ff22-4037-8928-75c689ab04c8 Ilie Andriuta created this issue on 18/Jun/26 16:57
 
Summary: Abusive modification of the cached document related to notification jobs when upgrading XWiki with a subwiki
Issue Type: cid:jira-generated-image-avatar-da688293-e352-4597-b832-e9968f238698 Bug
Affects Versions: 18.4.1
Assignee: Unassigned
Components: Notifications
Created: 18/Jun/26 16:57
Environment: Windows 11 Pro, Chrome 149, using an instance of XWiki 18.4.1 on Jetty/ HSQL
Priority: cid:jira-generated-image-static-major-3ee7ee67-b93d-455b-8c29-8237a79e6295 Major
Reporter: Ilie Andriuta
Description:

Steps to reproduce

  1. Create an older instance of XWiki with Distribution Wizard (e.g. reproduced with 12.10.11 on Jetty/HSQL)
  2. Create a subwiki on this instance
  3. Close the instance
  4. Copy/move the data folder from the older instance into an 18.4.1 instance (reproduced  (replace the folder if it exists)
  5. Start the new XWiki instance
  6. Follow the Distribution Wizard to upgrade the Main Wiki
  7. Observe the logs

Expected results

No errors/ warnings are displayed.

Actual results

During the upgrade of the Main Wiki with DW, the following warnings are displayed in XWiki logs:

2026-06-18 16:58:41,656 [XWiki Reload Schedulers after classloader reload for namespace [null]] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [subwikiglobal:Scheduler.NotificationEmailWeeklySender()]
java.lang.IllegalStateException: Abusive modification of the cached document
        at com.xpn.xwiki.doc.XWikiDocument.warnWithStackTrace(XWikiDocument.java:9416)
        at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2459)
        at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:134)
        at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:448)
        at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:442)
        at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:77)
        at com.xpn.xwiki.objects.BaseCollection.setStringValue(BaseCollection.java:338)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:262)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.buildJobDetails(SchedulerPlugin.java:457)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.reloadJob(SchedulerPlugin.java:653)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.reloadScheduler(SchedulersClassLoaderManager.java:152)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.lambda$onClassLoaderReset$1(SchedulersClassLoaderManager.java:137)
        at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:71)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:456)
2026-06-18 16:58:41,689 [XWiki Reload Schedulers after classloader reload for namespace [null]] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [subwikiglobal:Scheduler.NotificationEmailHourlySender()]
java.lang.IllegalStateException: Abusive modification of the cached document
        at com.xpn.xwiki.doc.XWikiDocument.warnWithStackTrace(XWikiDocument.java:9416)
        at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2459)
        at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:134)
        at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:448)
        at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:442)
        at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:77)
        at com.xpn.xwiki.objects.BaseCollection.setStringValue(BaseCollection.java:338)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:262)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.buildJobDetails(SchedulerPlugin.java:457)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.reloadJob(SchedulerPlugin.java:653)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.reloadScheduler(SchedulersClassLoaderManager.java:152)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.lambda$onClassLoaderReset$1(SchedulersClassLoaderManager.java:137)
        at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:71)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:456)
2026-06-18 16:58:41,704 [XWiki Reload Schedulers after classloader reload for namespace [null]] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [subwikiglobal:Scheduler.NotificationEmailDailySender()]
java.lang.IllegalStateException: Abusive modification of the cached document
        at com.xpn.xwiki.doc.XWikiDocument.warnWithStackTrace(XWikiDocument.java:9416)
        at com.xpn.xwiki.doc.XWikiDocument.setMetaDataDirty(XWikiDocument.java:2459)
        at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:134)
        at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:448)
        at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:442)
        at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:77)
        at com.xpn.xwiki.objects.BaseCollection.setStringValue(BaseCollection.java:338)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:262)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.buildJobDetails(SchedulerPlugin.java:457)
        at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.reloadJob(SchedulerPlugin.java:653)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.reloadScheduler(SchedulersClassLoaderManager.java:152)
        at com.xpn.xwiki.plugin.scheduler.internal.SchedulersClassLoaderManager.lambda$onClassLoaderReset$1(SchedulersClassLoaderManager.java:137)
        at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:71)
        at java.base/java.lang.VirtualThread.run(VirtualThread.java:456)

I've tried several times to reproduce the issue with 18.4.0, but it seems I couldn't.