If you are getting any of the above errors in Grails then that means the scriptCache folder under your project in ‘.grails’ folder has been corrupted. There is a 2-step fix for this issue –
- STEP-1. Delete ‘scriptCache‘ folder in the location <HOME_PATH>/<GRAILS_VERSION>/projects/<PROJECT_NAME>/scriptCache
HOME_PATH – is the home folder of your user.
(In windows – this folder usually starts with your windows username)
GRAILS_VERSION – is your grails version e.g. 2.3.7
PROJECT_NAME – is the app name for your grails project
- STEP-2. Go the root folder of your project and run ‘grails clean‘ & ‘grails compile‘.