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

Execution context should be initialized in Scheduler threads

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 1.8.3, 1.9 M2
    • {Unused} Core
    • None
    • High
    • Unknown

    Description

      When a job is supposed to be executed, it fails with :

      java.lang.NullPointerException
              at org.xwiki.context.DefaultExecution.getContext(DefaultExecution.java:62)
              at com.xpn.xwiki.doc.DefaultDocumentNameFactory.getContext(DefaultDocumentNameFactory.java:168)
              at com.xpn.xwiki.doc.DefaultDocumentNameFactory.getDefaultWikiName(DefaultDocumentNameFactory.java:141)
              at com.xpn.xwiki.doc.DefaultDocumentNameFactory.createDocumentName(DefaultDocumentNameFactory.java:97)
              at com.xpn.xwiki.doc.XWikiDocument.setFullName(XWikiDocument.java:3552)
              at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1368)
              at com.xpn.xwiki.plugin.scheduler.GroovyJob.execute(GroovyJob.java:72)
              at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
              at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              jerome Jerome Velociter
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: