I can't uninstall an AMP from share.war, I'm using the module management tool (mmt.jar) and it gives me the next error
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1
at org.alfresco.repo.module.tool.InstalledFiles.load(InstalledFiles.java:96)
at org.alfresco.repo.module.tool.ModuleManagementTool.uninstallModule(ModuleManagementTool.java:475)
at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:886)
it happens too when I use the apply_amps.sh script.
Note: I don have an backup war of previous amps instalations
Solved! Go to Solution.
It looks like one of the modules (likely the one you want to uninstall) contains a modifications.install file which contains an invalid line of text. This does not look like a bug in the MMT tool, which creates the file in the first place, but like someone / something may have modified the modifications.install file incorrectly...
Just to confirm, are you saying that on a fresh installation of Alfresco, you cannot run apply_amps.sh to install an AMP that is known to work with the version you are using?
If that is the case, please share your exact Alfresco version, your JDK version, your OS, and a link to the AMP you are trying to install.
If this is a custom AMP you built, does it run okay in the SDK? What version of the SDK did you use to build it?
It looks like one of the modules (likely the one you want to uninstall) contains a modifications.install file which contains an invalid line of text. This does not look like a bug in the MMT tool, which creates the file in the first place, but like someone / something may have modified the modifications.install file incorrectly...
hi Jeff, is not a fresh installation, my AMP works fine in a fresh installation.
Hi Axel, I don't know how the modifications.install how file works, but i will take a look in that.
thanks
Thanks to both!
I solve the problem installing the AMP in a fresh installation of alfresco and using the generated share.war in my old installation.
I think that the problem was the modifications.install war
Greetings
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.