Open ehtulhaq opened 4 years ago
Hi @ehtulhaq, what version of AEM as well as AEM Groovy Console are you using? I suspect you may be using an incompatible version of the AEM Groovy Console with your AEM instance. If using AEM 6.3 or later, please try installing the latest version of the AEM Groovy Console as found here: https://github.com/icfnext/aem-groovy-console/releases.
If you are still facing issues after this, please share the script you are trying to execute which results in this error.
@ericvangeem I'm on AEM 6.3 and the version of groovy console is 11.3.0 and groovy extension plugin 4.x.x. The console works fine as almost all the scripts I run execute without any problem. This problem happens intermittently after a package install and especially after the 'groovy extensions' package restarts. Example code that throws error -
resource.adaptTo(Page).recurse { page ->
....
}
@ehtulhaq I recommend first uninstalling both the groovy extension bundle and groovy console bundle, then try installing groovy console v12.1.0 to see if that helps.
If that fixes your issue, then I would lastly recommend installing the latest version of groovy console. Just note that as of v13.0.0, the path to the console changes from /etc/groovyconsole.html to /var/groovyconsole.html, and you will have to manually add the 'administrator' group to the list of Allowed Groups in the Groovy Console Configuration Service in /system/console/configMgr
I'm writing a script that uses recurse on a page. However at times i encounter the following error. Not sure whats going wrong.
aem-groovy-extension version 4.0.0