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

The Scheduler plugin is modifying the cached documents

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 17.2.0-rc-1
    • 16.10.4
    • Scheduler
    • None
    • Unknown
    • N/A
    • N/A

    Description

      Since the changes made for XWIKI-22892 I started to obtain logs such as:

      2025-02-21 10:35:23,975 [XWiki Scheduler initialization] 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.setMetaDataDirty(XWikiDocument.java:2436)
      	at com.xpn.xwiki.objects.BaseElement.setDirty(BaseElement.java:133)
      	at com.xpn.xwiki.objects.BaseProperty.setDirty(BaseProperty.java:386)
      	at com.xpn.xwiki.objects.BaseProperty.setValueDirty(BaseProperty.java:380)
      	at com.xpn.xwiki.objects.BaseStringProperty.setValue(BaseStringProperty.java:61)
      	at com.xpn.xwiki.objects.BaseCollection.setStringValue(BaseCollection.java:337)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.prepareJobStubContext(SchedulerPlugin.java:215)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:383)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:327)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:320)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:305)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:177)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:129)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:71)
      	at java.base/java.lang.Thread.run(Thread.java:840)
      

      at startup of XWiki.

      I obtained those logs for the schedulers:

      xwiki:Mail.MailResender()
      xwiki:Mail.MailResender() (apparently got the log twice)
      xwiki:Scheduler.NotificationEmailDailySender()
      xwiki:Scheduler.NotificationEmailHourlySender()
      xwiki:Scheduler.NotificationEmailWeeklySender()
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: