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

This widget could not be displayed.

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

79 views 1 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