Uploaded image for project: 'XWiki Commons'
  1. XWiki Commons
  2. XCOMMONS-1702

Replaying extension history records doesn't work anymore

    XMLWordPrintable

Details

    • High
    • Unknown
    • N/A

    Description

      Follow this steps to reproduce:

      • Upgrade CKEditor Integration extension to version 1.37 on the main wiki of an XWiki 11.6.1 instance
      • Go the the Extension History administration section, select the CKEditor Integration entry from the history and export it
      • Create a subwiki and go to its Extension History administration section
      • Upload the history file previously exported from the main wiki
      • Select the CKEditor Integration entry and click Replay
      • Leave the default options, click Continue then Start

      You get a message that looks like this:

      There is no replay job with id [1565779102368-892]. 
      

      and the server logs contain this stacktrace:

      2019-08-14 13:38:22,369 [org.xwiki.extension.job.history.internal.ReplayJob@35acf489([extension, history, 1565779102368-892])] ERROR o.x.e.j.h.i.ReplayJob          - Exception thrown during job execution 
      java.lang.NullPointerException: null
      	at org.xwiki.job.internal.DefaultJobContext.pushCurrentJob(DefaultJobContext.java:87)
      	at org.xwiki.job.AbstractJob.jobStarting(AbstractJob.java:250)
      	at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:234)
      	at org.xwiki.job.AbstractJob.run(AbstractJob.java:226)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      2019-08-14 13:38:22,369 [org.xwiki.extension.job.history.internal.ReplayJob@35acf489([extension, history, 1565779102368-892])] INFO  o.x.e.j.h.i.ReplayJob          - Finished job of type [replay] with identifier [[extension, history, 1565779102368-892]] 
      2019-08-14 13:38:22,370 [org.xwiki.extension.job.history.internal.ReplayJob@35acf489([extension, history, 1565779102368-892])] ERROR o.i.ObservationContextListener - Can't find any begin event corresponding to [INFO:Finished job of type [replay] with identifier [[extension, history, 1565779102368-892]]] 
      2019-08-14 13:38:22,370 [org.xwiki.extension.job.history.internal.ReplayJob@35acf489([extension, history, 1565779102368-892])] ERROR o.i.ObservationContextListener - Can't find any begin event corresponding to [org.xwiki.job.event.JobFinishedEvent@3515b979] 
      Exception in thread "Unused job pool thread" java.lang.NullPointerException
      	at org.xwiki.job.internal.DefaultJobContext.popCurrentJob(DefaultJobContext.java:93)
      	at org.xwiki.job.AbstractJob.jobFinished(AbstractJob.java:314)
      	at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:241)
      	at org.xwiki.job.AbstractJob.run(AbstractJob.java:226)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: