[MGNLGROOVY-144] GroovyBugError: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' null – might occur when using MgnlContext to acquire session Created: 09/Mar/16 Updated: 07/Apr/16 Resolved: 01/Apr/16 |
|
| Status: | Closed |
| Project: | Magnolia Groovy Module |
| Component/s: | None |
| Affects Version/s: | 2.4.3 |
| Fix Version/s: | 2.4.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip Mundt | Assignee: | Ilgun Ilgun |
| Resolution: | Fixed | Votes: | 4 |
| Labels: | regression, support | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 1d | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Sprint: | Basel 37 | ||||||||||||||||
| Story Points: | 3 | ||||||||||||||||
| Description |
| Comments |
| Comment by Sergio Vidangos [ 23/Mar/16 ] |
|
We are experiencing the same problem with all our scripts after the upgrade from Magnolia 5.4.4 to 5.4.5 One easy way to reproduce the problem is to run the example script "createAppScript" in the demo project. The script will run successfully Only the first time after a fresh restart from the server. Very simple scripts, like printing out some string, will still run successfully tough. |
| Comment by Federico Grilli [ 31/Mar/16 ] |
|
A possible workaround is to use the ctx variable (instead of MgnlContext) which the Magnolia Groovy console makes available to all scripts and which seems to be always correctly initialised. |