• 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

This widget could not be displayed.

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

This widget could not be displayed.

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!

This widget could not be displayed.

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 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...

165 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