groovy.lang.MissingMethodException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 79#161431217
    via GitHub by aaronjwood
    ,
  • {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-41].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Hi there, I've recently upgraded Jira to version 4.3.4 and I'm currently trying to release a new Project Model for our processes involving a lot of custom groovy scripts. However, I haven't been able to go through testing yet since I noticed a bug in the *Copy Project* build-in script. This is actually the first step of my process flow where a project template is copied to a new project. It seems that there is a class with no signature, probably deprecated in version 4.3.4 : .getUser() Here is a part of the exception stack trace (below in green) to get an idea of the error. I can send you the whole stack if you need it but I think you'll understand the problem right away. Thanks in advance Andteas Gounaris {color:green} 2011-07-06 17:40:07,356 http-8080-11 WARN agounaris 1060x445x1 9rda4d 10.9.13.151 /secure/admin/groovy/CannedScriptRunner.jspa [onresolve.jira.groovy.CannedScriptRunner] Class com.onresolve.jira.groovy.canned.admin.CopyProject failed to load: No signature of method: com.atlassian.jira.security.roles.actor.UserRoleActorFactory$UserRoleActor.getUser() is applicable for argument types: () values: [] Possible solutions: getUsers(), getId(), getType(), getAt(java.lang.String), use([Ljava.lang.Object;), use(java.util.List, groovy.lang.Closure) groovy.lang.MissingMethodException: No signature of method: com.atlassian.jira.security.roles.actor.UserRoleActorFactory$UserRoleActor.getUser() is applicable for argument types: () values: [] Possible solutions: getUsers(), getId(), getType(), getAt(java.lang.String), use([Ljava.lang.Object;), use(java.util.List, groovy.lang.Closure) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at com.onresolve.jira.groovy.canned.admin.CopyProject$_doCopyProject_closure5_closure9.doCall(com.onresolve.jira.groovy.canned.admin.CopyProject:376) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:885) at groovy.lang.Closure.call(Closure.java:405) at groovy.lang.Closure.call(Closure.java:418) ... ... {color}
    via by Andreas Gounaris,
  • GitHub comment 26#86188238
    via GitHub by echohack
    ,
  • How to configure fastReload?
    via GitHub by riceyeh
    ,
    • groovy.lang.MissingMethodException: No signature of method: hudson.plugins.cobertura.CoberturaBuildAction.getLineCoverage() is applicable for argument types: () values: [] at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at Script1.coverage(Script1.groovy:5) at Script1$coverage.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at Script1.run(Script1.groovy:19) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SecureGroovyScript.evaluate(SecureGroovyScript.java:166) at org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder.perform(GroovyPostbuildRecorder.java:362) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:736) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1040) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:685) at hudson.model.Run.execute(Run.java:1757) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234)

    Users with the same issue

    derprogger
    1 times, last one,
    musketyr
    2 times, last one,
    zbalint
    5 times, last one,
    stigkj
    1 times, last one,
    rlovtangen
    1 times, last one,
    26 more bugmates