Remove extension "Groovy Console Application" manual

Hi,
can some body help me, to remove the extension?
Because it breaks the xwiki installation so, that the normal way over the extension manager don’t work.
On every click of “remove from all wikis” nothing happens and in the log I only see this:
2020-11-24 07:17:14,659 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 47, column 14: invalid property id. Caused by: [ , class: “xuake-console hidden”]
2020-11-24 07:17:14,660 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 48, column 6: syntax error. Caused by: [ });]
2020-11-24 07:17:14,660 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 51, column 14: invalid property id. Caused by: [ , class: “consoleInput”]
2020-11-24 07:17:14,660 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 52, column 6: syntax error. Caused by: [ })]
2020-11-24 07:17:14,661 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 53, column 10: syntax error. Caused by: [ this.executeButton = new Element(“input”, {]
2020-11-24 07:17:14,661 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 54, column 12: syntax error. Caused by: [ id: “xuake-execute-button”]
2020-11-24 07:17:14,661 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 55, column 14: identifier is a reserved word. Caused by: [ , class: “btn btn-info button”]
2020-11-24 07:17:14,662 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 57, column 15: missing ; before statement. Caused by: [ , value: “Execute (CTRL + E)” ]
2020-11-24 07:17:14,662 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 58, column 6: syntax error. Caused by: [ })]
2020-11-24 07:17:14,662 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Error at line 59, column 10: syntax error. Caused by: [ this.console.insert(this.input);]
2020-11-24 07:17:14,663 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] ERROR c.x.x.w.s.JsExtension - Runtime error minimizing JSX object: Compilation produced 10 syntax errors.
2020-11-24 07:17:14,663 [https://foo.foo.foo/xwiki/bin/jsx/XWiki/Xuake?language=de&docVersion=1.1] WARN c.x.x.w.s.JsExtension - Failed to compress JS extension: null

Thanks.

In my case I have luck, using another browser I was able to remove the extension.
But in general how can I remove an extensions, which bricks an installation?

It all depends on the type of extension or what exactly “bricks” means.

The easiest last resort to remove a JAR (or WEBJAR) extension if your wiki is totally unusable is to remove it from <permdir>/extension/repository and restart. But the problem might come from a dependency of the extension and not the extension itself so you will have to check what are those on https://extensions.xwiki.org or directly in the Maven pom.xml file of this extension.

For a XAR it’s more complicated since it’s actually wiki pages imported in the wiki so even if you remove the xar file from the local repository the wiki pages will still be there kicking (except worst this time because you would have no idea they are associated with a specific extension). But normally unless the XAR extension override XWiki.Extensions page you should always be able to uninstall it, at worst if the issue is some rogue javascript breaking everything you can disable it since EM can be used without javascript AFAIK (you will just need to refresh manually from time to time to see the progress move and get uninstall related questions).

1 Like

Thanks for the hints how to do this,