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

NPE when creating multiple subwikis at the same time

    XMLWordPrintable

Details

    • N/A
    • N/A

    Description

      While creating multiple wikis at the same time, we've reached a state that had:
      1.

      Exception thrown during job execution
      class java.lang.NullPointerException: null
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.applyInstallExtension(DefaultInstalledExtensionRepository.java:449)
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.installExtension(DefaultInstalledExtensionRepository.java:691)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:257)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:204)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:151)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:150)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at org.xwiki.platform.wiki.creationjob.internal.ExtensionInstaller.installExtension(ExtensionInstaller.java:73)
          at org.xwiki.platform.wiki.creationjob.internal.steps.ProvisionWikiStep.execute(ProvisionWikiStep.java:78)
          at org.xwiki.platform.wiki.creationjob.internal.WikiCreationJob.runInternal(WikiCreationJob.java:80)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      

      2.

      Exception thrown during job execution
      class java.lang.NullPointerException: null
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.applyInstallExtension(DefaultInstalledExtensionRepository.java:449)
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.installExtension(DefaultInstalledExtensionRepository.java:691)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:257)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:204)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:151)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:150)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at org.xwiki.platform.wiki.creationjob.internal.ExtensionInstaller.installExtension(ExtensionInstaller.java:73)
          at org.xwiki.platform.wiki.creationjob.internal.steps.ProvisionWikiStep.execute(ProvisionWikiStep.java:78)
          at org.xwiki.platform.wiki.creationjob.internal.WikiCreationJob.runInternal(WikiCreationJob.java:80)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      

      It was odd that in the first case the wiki asked us to clean and delete, but but in the second case, wiki was accessible.

      On local jetty:

      Exception thrown during job execution
      class java.lang.NullPointerException: null
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.applyInstallExtension(DefaultInstalledExtensionRepository.java:449)
          at org.xwiki.extension.repository.internal.installed.DefaultInstalledExtensionRepository.installExtension(DefaultInstalledExtensionRepository.java:691)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:257)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:204)
          at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:151)
          at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:150)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at org.xwiki.platform.wiki.creationjob.internal.ExtensionInstaller.installExtension(ExtensionInstaller.java:73)
          at org.xwiki.platform.wiki.creationjob.internal.steps.ProvisionWikiStep.execute(ProvisionWikiStep.java:78)
          at org.xwiki.platform.wiki.creationjob.internal.WikiCreationJob.runInternal(WikiCreationJob.java:80)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:205)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:188)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
      

      Clean and delete the wiki as the creation result.

      Attachments

        1. status2.xml
          1.69 MB
        2. status1.xml
          1.73 MB

        Activity

          People

            tmortagne Thomas Mortagne
            iinsuratelu Iustin Insuratelu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: