Steps to reproduce
- Create a subwiki
- Install any extension on Main wiki (e.g. JWPlayer Macro)
- Install the same extension on the subwiki
- 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. |