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

SchedulerPlugin related errors when upgrading XWiki to 11.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 11.3-rc-1
    • 11.1
    • {Unused} Watchlist
    • None
    • Windows 10 Pro 64 bit, Chrome 72, IE11, Edge 18, Firefox 65, using a local instance XWiki 11.1 on HSQL 2.4.1, MySQL 5.7, PostgreSQL 10 and Oracle 11.2
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. Create an older instance of XWiki (e.g. 9.11.8)
      2. Close the instance
      3. Go to a newer instance (11.1) and copy/cut the
        [...]webapps\xwiki

        folder and replace it (first delete the old one) in the same location on the older version

      1. Start XWiki and follow the Distribution Wizard through the upgrade process

      EXPECTED RESULTS

      The upgrade process is completed successfully without errors.

      ACTUAL RESULTS

      On XWiki initialization, there are encountered some errors in console related to SchedulerPlugin. Stacktrace:

      2019-03-05 12:56:32,023 [XWiki Scheduler initialization] ERROR c.x.x.p.s.SchedulerPlugin      - Failed to restore job with in document [xwiki:Scheduler.WatchListDailyNotifier] and wiki [xwiki] 
      com.xpn.xwiki.plugin.scheduler.SchedulerPluginException: Error number 90006 in 5: Exception in plugin [com.xpn.xwiki.plugin.scheduler.SchedulerPlugin]: Error while loading job class for job : WatchList daily notifier
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:427)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:167)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:79)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:126)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.xwiki.watchlist.internal.job.WatchListJob
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:193)
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:176)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Unknown Source)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:362)
      	... 8 common frames omitted
      2019-03-05 12:56:32,037 [XWiki Scheduler initialization] ERROR c.x.x.p.s.SchedulerPlugin      - Failed to restore job with in document [xwiki:Scheduler.WatchListHourlyNotifier] and wiki [xwiki] 
      com.xpn.xwiki.plugin.scheduler.SchedulerPluginException: Error number 90006 in 5: Exception in plugin [com.xpn.xwiki.plugin.scheduler.SchedulerPlugin]: Error while loading job class for job : WatchList hourly notifier
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:427)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:167)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:79)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:126)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.xwiki.watchlist.internal.job.WatchListJob
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:193)
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:176)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Unknown Source)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:362)
      	... 8 common frames omitted
      2019-03-05 12:56:32,051 [XWiki Scheduler initialization] ERROR c.x.x.p.s.SchedulerPlugin      - Failed to restore job with in document [xwiki:Scheduler.WatchListWeeklyNotifier] and wiki [xwiki] 
      com.xpn.xwiki.plugin.scheduler.SchedulerPluginException: Error number 90006 in 5: Exception in plugin [com.xpn.xwiki.plugin.scheduler.SchedulerPlugin]: Error while loading job class for job : WatchList weekly notifier
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:427)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:317)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.register(SchedulerPlugin.java:310)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.restoreExistingJobs(SchedulerPlugin.java:295)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.initAsync(SchedulerPlugin.java:167)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.access$000(SchedulerPlugin.java:79)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin$1.run(SchedulerPlugin.java:126)
      	at org.xwiki.context.concurrent.ExecutionContextRunnable.run(ExecutionContextRunnable.java:70)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassNotFoundException: org.xwiki.watchlist.internal.job.WatchListJob
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:193)
      	at org.xwiki.classloader.URIClassLoader$1.run(URIClassLoader.java:180)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at org.xwiki.classloader.URIClassLoader.findClass(URIClassLoader.java:179)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at java.lang.ClassLoader.loadClass(Unknown Source)
      	at org.xwiki.classloader.xwiki.internal.ContextNamespaceURLClassLoader.loadClass(ContextNamespaceURLClassLoader.java:176)
      	at java.lang.Class.forName0(Native Method)
      	at java.lang.Class.forName(Unknown Source)
      	at com.xpn.xwiki.plugin.scheduler.SchedulerPlugin.scheduleJob(SchedulerPlugin.java:362)
      	... 8 common frames omitted

      The issue was reproduced on HSQL, MySQL, PostgreSQL and Oracle and could not be reproduced when upgrading to XWiki 11.0.3.

      Attachments

        1. 2019_03_05.output.log
          22 kB
          Ilie Andriuta
        2. DeletedPagesOfTheWatchlist.png
          78 kB
          Guillaume Delhumeau

        Issue Links

          Activity

            People

              gdelhumeau Guillaume Delhumeau
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: