This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-319a8197-62a0-4324-9fcd-0869af989376 XWIKI-22375 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0ecd4440-25ed-4886-a854-9a03133172f3 Ilie Andriuta created this issue on 31/Jul/24 15:04
 
Summary: "Exception thrown job execution" error which prevents installation of extensions when they are installed on farm if already installed on Main and subwiki
Issue Type: cid:jira-generated-image-avatar-319a8197-62a0-4324-9fcd-0869af989376 Bug
Affects Versions: 15.10.11, 16.4.0
Assignee: Unassigned
Attachments: Error_JWPlayer_EM_15_10_11.png
Created: 31/Jul/24 15:04
Environment: 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
Priority: cid:jira-generated-image-static-blocker-00807075-241f-4102-a6bf-128b9d99e3c4 Blocker
Reporter: Ilie Andriuta
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.

 
 

3 updates

 
cid:jira-generated-image-avatar-0ecd4440-25ed-4886-a854-9a03133172f3 Changes by Ilie Andriuta on 31/Jul/24 15:04
 
Fix Version: 16.4.2
Fix Version: 15.10.12
Labels: regression