-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.0.1 CE GA2
-
Fix Version/s: 7.0.1 CE GA2
-
Component/s: Portal Services, Portal Services > Scripting
-
Labels:
-
Story Points:1.5
-
Liferay Contributor's Agreement:Accept
-
Git Pull Request:
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
https://gist.github.com/dylan-rebelak/b352c04f2431052f8cdbc083bd6aa002
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.