Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

ScriptRunner REST endpoint - delete endpoint manually (can't get endpoint id)

Vasil'ev Nickolay October 18, 2018

Good day, everyone!

After update from JIRA Server 7.6.1 to 7.12.1 we have an issue with ScriptRunner REST endpoint page - it just throws an error, and we can't delete erroneous endpoint, because it won't show any. Is there a way to remove endpoints via database or Script console?

Stack trace of error:

 ... ERROR ... /rest/scriptrunner/latest/custom/customadmin [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: Ambiguous method overloading for method com.onresolve.scriptrunner.runner.ScriptRunnerImpl#convertGroovyClassNameToResourcePath.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Class]
[class java.lang.String]
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method com.onresolve.scriptrunner.runner.ScriptRunnerImpl#convertGroovyClassNameToResourcePath.
Cannot resolve which method to invoke for [null] due to overlapping prototypes between:
[class java.lang.Class]
[class java.lang.String]
at groovy.lang.MetaClassImpl.doChooseMostSpecificParams(MetaClassImpl.java:3251)
at groovy.lang.MetaClassImpl.chooseMostSpecificParams(MetaClassImpl.java:3228)
at groovy.lang.MetaClassImpl.chooseMethodInternal(MetaClassImpl.java:3217)
at groovy.lang.MetaClassImpl.chooseMethod(MetaClassImpl.java:3160)
at groovy.lang.MetaClassImpl.pickStaticMethod(MetaClassImpl.java:1528)
at groovy.lang.MetaClassImpl.retrieveStaticMethod(MetaClassImpl.java:1424)
at groovy.lang.MetaClassImpl.createStaticSite(MetaClassImpl.java:3419)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallStaticSite(CallSiteArray.java:76)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.createCallSite(CallSiteArray.java:161)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at com.onresolve.scriptrunner.runner.RestEndpointManager$_getResourcesByScript_closure3$_closure8.doCall(RestEndpointManager.groovy:107)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at groovy.lang.Closure.call(Closure.java:418)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForMapEntry(DefaultGroovyMethods.java:5361)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2202)
at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at com.onresolve.scriptrunner.runner.RestEndpointManager$_getResourcesByScript_closure3.doCall(RestEndpointManager.groovy:104)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:264)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)
at groovy.lang.Closure.call(Closure.java:418)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForMapEntry(DefaultGroovyMethods.java:5361)
at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2202)
at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:128)
at com.onresolve.scriptrunner.runner.RestEndpointManager.getResourcesByScript(RestEndpointManager.groovy:102)
at com.onresolve.scriptrunner.runner.RestEndpointManager.getEndpointsForDisplay(RestEndpointManager.groovy:54)
at com.onresolve.scriptrunner.runner.rest.common.UserCustomScriptEndpoint.listUserEndpoints(UserCustomScriptEndpoint.groovy:89)
... 3 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
... 19 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter$JerseyOsgiServletContainer.doFilter(RestDelegatingServletFilter.java:154)
... 1 filtered
at com.atlassian.plugins.rest.module.RestDelegatingServletFilter.doFilter(RestDelegatingServletFilter.java:68)
... 41 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 53 filtered
at com.atlassian.jira.security.JiraSecurityFilter.lambda$doFilter$0(JiraSecurityFilter.java:66)
... 1 filtered
at com.atlassian.jira.security.JiraSecurityFilter.doFilter(JiraSecurityFilter.java:64)
... 16 filtered
at com.atlassian.plugins.rest.module.servlet.RestSeraphFilter.doFilter(RestSeraphFilter.java:37)
... 3 filtered
at ru.andreymarkelov.atlas.plugins.promjiraexporter.servlet.AllEndpointFilter$1.run(AllEndpointFilter.java:44)
at ru.andreymarkelov.atlas.plugins.promjiraexporter.service.MetricCollectorImpl.requestDuration(MetricCollectorImpl.java:256)
at ru.andreymarkelov.atlas.plugins.promjiraexporter.servlet.AllEndpointFilter.doFilter(AllEndpointFilter.java:39)
... 19 filtered
at com.atlassian.jira.servermetrics.CorrelationIdPopulatorFilter.doFilter(CorrelationIdPopulatorFilter.java:30)
... 5 filtered
at com.valiantys.jira.plugins.sql.service.servletcontext.ContextListenerServletFilter.doFilter(ContextListenerServletFilter.java:24)
... 8 filtered
at com.atlassian.web.servlet.plugin.request.RedirectInterceptingFilter.doFilter(RedirectInterceptingFilter.java:21)
... 4 filtered
at com.atlassian.web.servlet.plugin.LocationCleanerFilter.doFilter(LocationCleanerFilter.java:36)
... 26 filtered
at com.atlassian.jira.servermetrics.MetricsCollectorFilter.doFilter(MetricsCollectorFilter.java:25)
... 24 filtered
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)

 

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Fran_Pedreira
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2020

Same issue here editing a "Rest Endpoint" with JIRA Server v7.9.2

I am stuck because I can't edit the script anymore. Any idea?

 

Edit:

Problem answered here (works for me):

https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Remove-manually-a-scriptrunner-REST-Endpoint/qaq-p/868872

by Claudio Signorini

 

 

0 votes
Matt B June 19, 2019

I'm having this same issue, except it came from executing a SQL insert into another plugin (playSQL)...Cannot see anything of my endpoints...

TAGS
AUG Leaders

Atlassian Community Events