• Community
  • Products
  • Jira
  • Questions
  • ScriptRunner activation failed (java.lang.NoClassDefFoundError: Could not initialize class com.onresolve.scriptrunner.runner.ScriptRunnerImpl)

ScriptRunner activation failed (java.lang.NoClassDefFoundError: Could not initialize class com.onresolve.scriptrunner.runner.ScriptRunnerImpl)

Hello,

I installed the ScriptRunner v3.0.16 version on a JIRA v6.2.7 (upload directly the jar scriptrunner-jira-3.0.16.jar).

I have an issue while trying to activate the ScriptRunner plugin:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scriptRunner' defined in URL [bundle://143.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.onresolve.scriptrunner.runner.ScriptRunnerImpl

(...)

The activation does not work at first and JIRA asks to check the logbooks.

When activating a second time there is no error message but the plugin is still not working.

If I try a third time I will have again the error message, etc...

 

I did not try to restart Jira.

Thanks in advance for your help.

Best regards.

3 answers

Hi Floran,

I suggest uninstall the add-on and then try installing it from the add-ons.

  • Browse to the add-ons page
  • Select Find new add-ons on the left
  • Search for Scriptrunner and click on install from the displayed add-on
  • It is the good way to install

and let us know if you still face problems

Thank you very much for your quick answer.

Unfortunately this JIRA instance is not connected to internet for security reasons, this is why I uploaded the .jar file.

I also tried to install an old groovyrunner-2.1.17.jar compatible with JIRA v6.2.7 (with and without Behaviours-0.5.12.jar "Jamie Echlin Plugin Info Plugin - Safe to remove") but I have the "out of space in CodeCache for adapters" error for groovyrunner.

Maybe I could try this to resolve it using https://jamieechlin.atlassian.net/browse/GRV-56:

"You could try setting: -XX:ReservedCodeCacheSize=64m

in your setenv.sh / setenv.bat script and restarting, which should fix it."

 

Unless you have another idea?

 

Thanks!

Setting -XX:ReservedCodeCacheSize=64min in setenv.sh works fine.

During JIRA restart the ScriptRunner (groovyrunner-2.1.17) was automatically activated.

It could be interesting to understand why it does not work with latest plugin version.

Anyway, thanks a lot for your support!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,329 views 14 20
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot