Error from JIRA Script runner v3.0.12

Trying to create a sub task.
Left Condition as blank
Set the target issue type
Entered text as Subtask summry
Let subtask action blank

java.lang.OutOfMemoryError: PermGen space
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2300)
at java.lang.Class.getDeclaredFields(Class.java:1745)
at org.codehaus.groovy.reflection.CachedClass$1$1.run(CachedClass.java:50)
at java.security.AccessController.doPrivileged(Native Method)
at org.codehaus.groovy.reflection.CachedClass$1.initValue(CachedClass.java:47)
at org.codehaus.groovy.reflection.CachedClass$1.initValue(CachedClass.java:45)
at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
at org.codehaus.groovy.reflection.CachedClass.getFields(CachedClass.java:261)
at groovy.lang.MetaClassImpl.addFields(MetaClassImpl.java:2374)
at groovy.lang.MetaClassImpl.inheritStaticInterfaceFields(MetaClassImpl.java:2351)
at groovy.lang.MetaClassImpl.setupProperties(MetaClassImpl.java:2255)
at groovy.lang.MetaClassImpl.addProperties(MetaClassImpl.java:3299)
at groovy.lang.MetaClassImpl.initialize(MetaClassImpl.java:3263)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:251)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:282)
at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:292)
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:259)
at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:868)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createPojoMetaClassGetPropertySite(AbstractCallSite.java:348)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.createGetPropertySite(AbstractCallSite.java:324)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.acceptGetProperty(AbstractCallSite.java:309)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:293)
at com.onresolve.scriptrunner.runner.WithPluginCompilationCustomiser.call(WithPluginCompilationCustomiser.groovy:32)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1052)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:588)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:297)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
at groovy.util.GroovyScriptEngine$ScriptClassLoader.doParseClass(GroovyScriptEngine.java:271)

1 answer

Quick update

I am trying to replace the Metro plugin.  I had 16 post steps, such as

Type: class

Class: com.telenor.jira.plugin.workflow.createsubissue.CreateSubIssueFunction
Arguments:
field.subIssueDescription =
field.subIssueAssignTo = 3
field.subIssueOverview = Functional Requirement Analysis for %.Key%
field.subIssueTypeId = 21
field.subIssuePriorityId = 0

Immediately after I got this error JIRA became unusable (out of memory).  I stopped and started and removed the 16 post steps and managed to re-add now

Roy - check your permgen settings. If your machine has enough memory I recommend 512m.

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,231 views 14 19
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