Affects Version/s: 7.0.1 CE GA2
Fix Version/s: 7.0.1 CE GA2
When a module has a script that gets run upon deployment, redeploying the module causes a large stacktrace of exceptions.
- Create module with folder resources/META_INF/resources/scripts
- Add script to folder
- Deploy module
- Script runs without errors
- Redeploy module
- Expected: Script runs without errors
- Actual: Repeating exception and then the script runs
This seems to be tied with the osgi/state folder. It seems to be looking for the folder of the last deployment. This exception can also be replicated when the module is removed from the server.
Note: Default log level may be too low to see exception. Set log level for "com.liferay.portal.scripting.executor" to ALL
EDIT: This error seems to happen because the script tries to run when the bundle is stopped, which it can't find because it gets removed in the redeployment process.