Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24506

Abusive modification of cached document after installing a scheduler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 17.10.10, 18.4.2, 18.5.0
    • 17.10.9, 18.4.1
    • Old Core
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Observed on XWiki 18.4.1 after upgrading an extension that provides a new scheduler:

      2026-06-22 09:27:57,011 [XWiki Reload Schedulers after classloader reload for namespace [null]] WARN  c.x.x.d.XWikiDocument          - Abusive modification of the cached document [xwiki:Mail.MailResender()] 
      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:255)
      	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:329)
      

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: