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

"Exception thrown job execution" error which prevents installation of extensions when they are installed on farm if already installed on Main and subwiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 16.4.0, 15.10.11
    • None
    • Windows 11 Pro, Edge 127, using an instance of XWiki 16.4.1 on MariaDB 11.3 Tomcat 9.0.91, reproducible also on Jetty/HSQLDB
    • Unknown

    Description

      Steps to reproduce

      1. Create a subwiki
      2. Install any extension on Main wiki (e.g. JWPlayer Macro)
      3. Install the same extension on the subwiki
      4. On Main Wiki, install the same extension on farm (search for the name of application in Extension Manager, click the drop-down arrow from the 'Uninstall' button and click 'Install on farm')

      Expected results

      The respective extension is installed successfully on farm without errors.

      Actual results

      In Extension Manager logs, there is the following error displayed:

      Exception thrown during job execution
      class org.xwiki.extension.InstallException: Failed to resolve extension
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:913)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:365)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:333)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:312)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:74)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
          at java.base/java.lang.Thread.run(Thread.java:842)
      Caused by: class java.lang.IllegalStateException: null
          at java.base/java.util.LinkedHashMap$LinkedHashIterator.remove(LinkedHashMap.java:767)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:1095)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:910)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:365)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.installExtension(AbstractInstallPlanJob.java:333)
          at org.xwiki.extension.job.internal.AbstractInstallPlanJob.start(AbstractInstallPlanJob.java:312)
          at org.xwiki.extension.job.internal.InstallPlanJob.runInternal(InstallPlanJob.java:74)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:246)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:223)
          at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
          at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
          at java.base/java.lang.Thread.run(Thread.java:842)

      The installation process is not finished ('Install on farm' button still available, but when clicked it leads to the error from the EM logs).

      The issue was reproduced also on XWiki 15.10.11, 16.4.1 and 16.5.0, but it seems could not be reproduced on XWiki 14.10.21 or 16.6.0 (from my tests).

      The issue was discovered initially when just trying to install some extensions like: Active Directory Pro or Diagram Pro and this prevented the installation of those apps when it occurred.

      However, the error seems to not occur every single time when just installing one of above mentioned apps, but it seems it reproduces more consistently by following the provided steps to reproduce.

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: