ScriptRunner: BUG! exception in phase 'semantic analysis' in source unit 'Script40.groovy' Bundle is uninstalled

Hi,

I am using Jira 6.3.3 and ScriptRunner 3.0.4. When I'm trying to run a little script using the script console I get the following error:

BUG! exception in phase 'semantic analysis' in source unit 'Script41.groovy' Bundle is uninstalled at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:927)

I found out that it must have something to do with the imports. For example:

import com.atlassian.jira.issue.Issue;

println "test"
log.error "test"

will bring up the error message whereas:

println "test"
log.error "test"

runs without any issue. Maybe someone knows whats wrong here.

Best regards
Mathias

6 answers

1 accepted

This widget could not be displayed.

That's a bit weird... try disabling and enabling the plugin?

Got the same thing but cycling the addon is not resolving the problem, which is happening since we installed the service desk add-on This stack trace is raised when you have a 'commentvalidator' script in your workflow transition. The full stack trace is http://pastebin.com/B4Sj2Ak1

So when SD is disabled, no problem, as soon as you re-enable, problem?

This is a production system - so I can't experiment. I removed the commentvalidator from the workflow, which obviously resolved the symptom. Will try to reproduce on test system.

Disabling and then re-enabling fixed the problem for me; thank you for the suggestion.

Same for me, disabling and then re-enabling the Script Runner add-on, worked for me !! Thanks Jamie

This widget could not be displayed.

Thank you, your hint solved the problem.

This widget could not be displayed.

I got the same error After upgrading to JIRA 6.3.12.  This occured when user was trying to access an issue.  Nothing else, just access

Referer URL: Unknown
BUG! exception in phase 'semantic analysis' in source unit 'bundle://152.0:0/com/onresolve/scriptrunner/canned/jira/workflow/conditions/SimpleScriptedCondition.groovy' Bundle is uninstalled
BUG! exception in phase 'semantic analysis' in source unit 'bundle://152.0:0/com/onresolve/scriptrunner/canned/jira/workflow/conditions/SimpleScriptedCondition.groovy' Bundle is uninstalled

I upgraded a number of plugins at the same time as upgrading, but not script runner.  I disabled/enabled and this problem went away.  Just thought I would add this in case people see similar.

Hello Roy. Accessing an issue will check the conditions, in your case your workflow must use Simple Scripted Condition. So try the solution...

This widget could not be displayed.

I am getting a similar error after upgrading:

BUG! exception in phase 'semantic analysis' in source unit 'bundle://158.0:0/com/onresolve/scriptrunner/canned/jira/workflow/conditions/CustomScriptCondition.groovy' Bundle is uninstalled

This groovy script doesn't even exist in the plugin jar.

This widget could not be displayed.

We had the same issue, we disabled/re-enabled the ScriptRunner plugin and it fixed our issue.

This widget could not be displayed.

Disabling , Re enabling the plugin. (in my case updating also) fixed the issue.

This bug really should be adressed as it's the 2nd time it has happened in our production system, unpredictably.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

155 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you